GDB (API)
Defines | Typedefs | Functions
/home/stan/gdb/src/gdb/python/py-symtab.c File Reference
#include "defs.h"
#include "charset.h"
#include "symtab.h"
#include "source.h"
#include "python-internal.h"
#include "objfiles.h"
#include "block.h"

Go to the source code of this file.

Defines

#define STPY_REQUIRE_VALID(symtab_obj, symtab)
#define SALPY_REQUIRE_VALID(sal_obj, sal)

Typedefs

typedef struct stpy_symtab_object symtab_object
typedef struct salpy_sal_object sal_object

Functions

PyObjectsymtab_to_symtab_object (struct symtab *symtab)
PyObjectsymtab_and_line_to_sal_object (struct symtab_and_line sal)
struct symtab_and_linesal_object_to_symtab_and_line (PyObject *obj)
struct symtabsymtab_object_to_symtab (PyObject *obj)
int gdbpy_initialize_symtabs (void)

Define Documentation

#define SALPY_REQUIRE_VALID (   sal_obj,
  sal 
)
Value:
do {                                                                    \
    sal = sal_object_to_symtab_and_line (sal_obj);                      \
    if (sal == NULL)                                                    \
      {                                                                 \
          PyErr_SetString (PyExc_RuntimeError,                          \
                           _("Symbol Table and Line is invalid."));     \
          return NULL;                                                  \
        }                                                               \
  } while (0)

Definition at line 77 of file py-symtab.c.

#define STPY_REQUIRE_VALID (   symtab_obj,
  symtab 
)
Value:
do {                                                     \
    symtab = symtab_object_to_symtab (symtab_obj);       \
    if (symtab == NULL)                                  \
      {                                                  \
        PyErr_SetString (PyExc_RuntimeError,             \
                         _("Symbol Table is invalid.")); \
        return NULL;                                     \
      }                                                  \
  } while (0)

Definition at line 46 of file py-symtab.c.


Typedef Documentation

typedef struct salpy_sal_object sal_object
typedef struct stpy_symtab_object symtab_object

Function Documentation

Definition at line 485 of file py-symtab.c.

Definition at line 420 of file py-symtab.c.

Definition at line 399 of file py-symtab.c.

struct symtab* symtab_object_to_symtab ( PyObject obj) [read]

Definition at line 429 of file py-symtab.c.

PyObject* symtab_to_symtab_object ( struct symtab symtab)

Definition at line 385 of file py-symtab.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines