GDB (xrefs)
|
#include "defs.h"
#include "block.h"
#include "dictionary.h"
#include "symtab.h"
#include "python-internal.h"
#include "objfiles.h"
Go to the source code of this file.
Classes | |
struct | blpy_block_object |
struct | block_syms_iterator_object |
Macros | |
#define | BLPY_REQUIRE_VALID(block_obj, block) |
#define | BLPY_ITER_REQUIRE_VALID(block_obj) |
Typedefs | |
typedef struct blpy_block_object | block_object |
Functions | |
PyTypeObject block_syms_iterator_object_type | CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("block_syms_iterator_object") |
static PyObject * | blpy_iter (PyObject *self) |
static PyObject * | blpy_get_start (PyObject *self, void *closure) |
static PyObject * | blpy_get_end (PyObject *self, void *closure) |
static PyObject * | blpy_get_function (PyObject *self, void *closure) |
static PyObject * | blpy_get_superblock (PyObject *self, void *closure) |
static PyObject * | blpy_get_global_block (PyObject *self, void *closure) |
static PyObject * | blpy_get_static_block (PyObject *self, void *closure) |
static PyObject * | blpy_is_global (PyObject *self, void *closure) |
static PyObject * | blpy_is_static (PyObject *self, void *closure) |
static void | blpy_dealloc (PyObject *obj) |
static void | set_block (block_object *obj, const struct block *block, struct objfile *objfile) |
PyObject * | block_to_block_object (const struct block *block, struct objfile *objfile) |
const struct block * | block_object_to_block (PyObject *obj) |
static PyObject * | blpy_block_syms_iter (PyObject *self) |
static PyObject * | blpy_block_syms_iternext (PyObject *self) |
static void | blpy_block_syms_dealloc (PyObject *obj) |
static PyObject * | blpy_is_valid (PyObject *self, PyObject *args) |
static PyObject * | blpy_iter_is_valid (PyObject *self, PyObject *args) |
PyObject * | gdbpy_block_for_pc (PyObject *self, PyObject *args) |
static void | del_objfile_blocks (struct objfile *objfile, void *datum) |
int | gdbpy_initialize_blocks (void) |
Variables | |
static const struct objfile_data * | blpy_objfile_data_key |
static PyMethodDef | block_object_methods [] |
static PyGetSetDef | block_object_getset [] |
PyTypeObject | block_object_type |
static PyMethodDef | block_iterator_object_methods [] |
PyTypeObject | block_syms_iterator_object_type |
#define BLPY_ITER_REQUIRE_VALID | ( | block_obj | ) |
Definition at line 71 of file py-block.c.
Referenced by blpy_block_syms_iter(), and blpy_block_syms_iternext().
#define BLPY_REQUIRE_VALID | ( | block_obj, | |
block | |||
) |
Definition at line 58 of file py-block.c.
Referenced by blpy_get_end(), blpy_get_function(), blpy_get_global_block(), blpy_get_start(), blpy_get_static_block(), blpy_get_superblock(), blpy_is_global(), blpy_is_static(), and blpy_iter().
typedef struct blpy_block_object block_object |
Definition at line 284 of file py-block.c.
References block_object_type.
Referenced by blpy_is_valid(), frapy_read_var(), gdbpy_lookup_symbol(), gdbpy_lookup_type(), and typy_template_argument().
Definition at line 271 of file py-block.c.
References block_object_type, and set_block().
Referenced by blpy_get_global_block(), blpy_get_static_block(), blpy_get_superblock(), frapy_block(), gdbpy_block_for_pc(), stpy_global_block(), and stpy_static_block().
|
static |
Definition at line 331 of file py-block.c.
References block_syms_iterator_object::source.
|
static |
Definition at line 293 of file py-block.c.
References BLPY_ITER_REQUIRE_VALID, and block_syms_iterator_object::source.
|
static |
Definition at line 306 of file py-block.c.
References _, block_syms_iterator_object::block, block_iterator_first(), block_iterator_next(), BLPY_ITER_REQUIRE_VALID, block_syms_iterator_object::initialized_p, block_syms_iterator_object::iter, block_syms_iterator_object::source, and symbol_to_symbol_object().
|
static |
Definition at line 229 of file py-block.c.
References blpy_block_object::block, blpy_objfile_data_key, blpy_block_object::next, blpy_block_object::objfile, and blpy_block_object::prev.
|
static |
Definition at line 117 of file py-block.c.
References BLOCK_END, BLPY_REQUIRE_VALID, and gdb_py_object_from_ulongest().
|
static |
Definition at line 127 of file py-block.c.
References BLOCK_FUNCTION, BLPY_REQUIRE_VALID, and symbol_to_symbol_object().
|
static |
Definition at line 160 of file py-block.c.
References block_global_block(), block_to_block_object(), BLPY_REQUIRE_VALID, and blpy_block_object::objfile.
|
static |
Definition at line 107 of file py-block.c.
References BLOCK_START, BLPY_REQUIRE_VALID, and gdb_py_object_from_ulongest().
|
static |
Definition at line 179 of file py-block.c.
References block_static_block(), BLOCK_SUPERBLOCK, block_to_block_object(), BLPY_REQUIRE_VALID, and blpy_block_object::objfile.
|
static |
Definition at line 142 of file py-block.c.
References BLOCK_SUPERBLOCK, block_to_block_object(), BLPY_REQUIRE_VALID, and blpy_block_object::objfile.
|
static |
Definition at line 199 of file py-block.c.
References BLOCK_SUPERBLOCK, and BLPY_REQUIRE_VALID.
|
static |
Definition at line 215 of file py-block.c.
References BLOCK_SUPERBLOCK, and BLPY_REQUIRE_VALID.
|
static |
Definition at line 342 of file py-block.c.
References block_object_to_block().
|
static |
Definition at line 86 of file py-block.c.
References block_syms_iterator_object::block, block_syms_iterator_object_type, BLPY_REQUIRE_VALID, block_syms_iterator_object::initialized_p, and block_syms_iterator_object::source.
|
static |
Definition at line 357 of file py-block.c.
References blpy_block_object::block, and block_syms_iterator_object::source.
PyTypeObject block_syms_iterator_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "block_syms_iterator_object" | ) |
|
static |
Definition at line 412 of file py-block.c.
References blpy_block_object::block, blpy_block_object::next, compunit_symtab::next, blpy_block_object::objfile, and blpy_block_object::prev.
Referenced by gdbpy_initialize_blocks().
PyObject* gdbpy_block_for_pc | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 371 of file py-block.c.
References _, block_for_pc(), block_to_block_object(), CATCH, COMPUNIT_OBJFILE, END_CATCH, find_pc_compunit_symtab(), GDB_PY_HANDLE_EXCEPTION, GDB_PY_LLU_ARG, RETURN_MASK_ALL, and TRY.
int gdbpy_initialize_blocks | ( | void | ) |
Definition at line 430 of file py-block.c.
References block_object_type, block_syms_iterator_object_type, blpy_objfile_data_key, del_objfile_blocks(), gdb_module, and gdb_pymodule_addobject().
Referenced by _initialize_python().
|
static |
Definition at line 251 of file py-block.c.
References blpy_block_object::block, blpy_objfile_data_key, blpy_block_object::next, blpy_block_object::objfile, and blpy_block_object::prev.
Referenced by block_to_block_object().
|
static |
Definition at line 514 of file py-block.c.
|
static |
Definition at line 463 of file py-block.c.
|
static |
Definition at line 456 of file py-block.c.
PyTypeObject block_object_type |
Definition at line 481 of file py-block.c.
Referenced by block_object_to_block(), block_to_block_object(), gdbpy_initialize_blocks(), and gdbpy_lookup_symbol().
PyTypeObject block_syms_iterator_object_type |
Definition at line 521 of file py-block.c.
Referenced by blpy_iter(), and gdbpy_initialize_blocks().
|
static |
Definition at line 83 of file py-block.c.
Referenced by blpy_dealloc(), gdbpy_initialize_blocks(), and set_block().