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

Go to the source code of this file.

Defines

#define SYMPY_REQUIRE_VALID(symbol_obj, symbol)

Typedefs

typedef struct sympy_symbol_object symbol_object

Functions

PyObjectsymbol_to_symbol_object (struct symbol *sym)
struct symbolsymbol_object_to_symbol (PyObject *obj)
PyObjectgdbpy_lookup_symbol (PyObject *self, PyObject *args, PyObject *kw)
PyObjectgdbpy_lookup_global_symbol (PyObject *self, PyObject *args, PyObject *kw)
int gdbpy_initialize_symbols (void)

Variables

PyTypeObject symbol_object_type

Define Documentation

#define SYMPY_REQUIRE_VALID (   symbol_obj,
  symbol 
)
Value:
do {                                                    \
    symbol = symbol_object_to_symbol (symbol_obj);      \
    if (symbol == NULL)                                 \
      {                                                 \
        PyErr_SetString (PyExc_RuntimeError,            \
                         _("Symbol is invalid."));      \
        return NULL;                                    \
      }                                                 \
  } while (0)

Definition at line 42 of file py-symbol.c.


Typedef Documentation

typedef struct sympy_symbol_object symbol_object

Function Documentation

Definition at line 478 of file py-symbol.c.

PyObject* gdbpy_lookup_global_symbol ( PyObject self,
PyObject args,
PyObject kw 
)

Definition at line 422 of file py-symbol.c.

PyObject* gdbpy_lookup_symbol ( PyObject self,
PyObject args,
PyObject kw 
)

Definition at line 355 of file py-symbol.c.

struct symbol* symbol_object_to_symbol ( PyObject obj) [read]

Definition at line 324 of file py-symbol.c.

Definition at line 311 of file py-symbol.c.


Variable Documentation

PyTypeObject symbol_object_type

Definition at line 580 of file py-symbol.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines