GDB (xrefs)
|
#include "defs.h"
#include "top.h"
#include "block.h"
#include "frame.h"
#include "symtab.h"
#include "python-internal.h"
#include "objfiles.h"
#include "symfile.h"
Go to the source code of this file.
Classes | |
struct | symbol_object |
struct | symbol_object_deleter |
Macros | |
#define | SYMPY_REQUIRE_VALID(symbol_obj, symbol) |
Variables | |
static const registry< objfile >::key< symbol_object, symbol_object_deleter > | sympy_objfile_data_key |
static gdb_PyGetSetDef | symbol_object_getset [] |
static PyMethodDef | symbol_object_methods [] |
PyTypeObject | symbol_object_type |
#define SYMPY_REQUIRE_VALID | ( | symbol_obj, | |
symbol ) |
Definition at line 43 of file py-symbol.c.
Referenced by sympy_get_addr_class(), sympy_get_linkage_name(), sympy_get_name(), sympy_get_print_name(), sympy_get_symtab(), sympy_get_type(), sympy_is_argument(), sympy_is_constant(), sympy_is_function(), sympy_is_variable(), sympy_line(), sympy_needs_frame(), sympy_str(), and sympy_value().
GDBPY_INITIALIZE_FILE | ( | gdbpy_initialize_symbols | ) |
|
static |
Definition at line 638 of file py-symbol.c.
References COMMON_BLOCK_DOMAIN, gdb_module, gdb_pymodule_addobject(), LABEL_DOMAIN, LOC_ARG, LOC_BLOCK, LOC_COMMON_BLOCK, LOC_COMPUTED, LOC_CONST, LOC_CONST_BYTES, LOC_LABEL, LOC_LOCAL, LOC_OPTIMIZED_OUT, LOC_REF_ARG, LOC_REGISTER, LOC_REGPARM_ADDR, LOC_STATIC, LOC_TYPEDEF, LOC_UNDEF, LOC_UNRESOLVED, MODULE_DOMAIN, STRUCT_DOMAIN, symbol_object_type, UNDEF_DOMAIN, and VAR_DOMAIN.
Definition at line 470 of file py-symbol.c.
References symbol::domain(), GDB_PY_HANDLE_EXCEPTION, gdb_PyArg_ParseTupleAndKeywords(), lookup_global_symbol(), name, block_symbol::symbol, symbol_to_symbol_object(), and VAR_DOMAIN.
Definition at line 510 of file py-symbol.c.
References symbol::domain(), GDB_PY_HANDLE_EXCEPTION, gdb_PyArg_ParseTupleAndKeywords(), get_frame_block(), get_selected_frame(), lookup_static_symbol(), lookup_symbol_in_static_block(), name, quit_force(), selected_frame, block_symbol::symbol, symbol_to_symbol_object(), and VAR_DOMAIN.
Definition at line 579 of file py-symbol.c.
References ALL_DOMAIN, objfile::compunits(), current_program_space, expand_symtabs_matching(), FULL, GDB_PY_HANDLE_EXCEPTION, gdb_PyArg_ParseTupleAndKeywords(), lookup_symbol_in_static_block(), name, program_space::objfiles(), SEARCH_GLOBAL_BLOCK, SEARCH_STATIC_BLOCK, blockvector::static_block(), block_symbol::symbol, symbol_to_symbol_object(), and VAR_DOMAIN.
Definition at line 401 of file py-symbol.c.
References block_object_to_block(), block_object_type, symbol::domain(), GDB_PY_HANDLE_EXCEPTION, gdb_PyArg_ParseTupleAndKeywords(), get_frame_block(), get_selected_frame(), lookup_symbol(), name, selected_frame, block_symbol::symbol, symbol_to_symbol_object(), field_of_this_result::type, and VAR_DOMAIN.
|
static |
Definition at line 323 of file py-symbol.c.
References registry< T >::get(), symbol::is_objfile_owned(), symbol_object::next, symbol::objfile(), symbol_object::prev, registry< T >::set(), symbol_object::symbol, sympy_objfile_data_key, and symbol::symtab.
Referenced by symbol_to_symbol_object().
Definition at line 357 of file py-symbol.c.
References symbol::symbol(), and symbol_object_type.
Referenced by bpfinishpy_pre_stop_hook(), extract_sym(), frapy_read_var(), sympy_is_valid(), and sympy_repr().
Definition at line 344 of file py-symbol.c.
References set_symbol(), and symbol_object_type.
Referenced by blpy_block_syms_iternext(), blpy_get_function(), blpy_getitem(), bpfinishpy_init(), frapy_function(), gdbpy_lookup_global_symbol(), gdbpy_lookup_static_symbol(), gdbpy_lookup_static_symbols(), gdbpy_lookup_symbol(), objfpy_lookup_global_symbol(), objfpy_lookup_static_symbol(), pending_framepy_function(), and recpy_bt_func_symbol().
|
static |
Definition at line 365 of file py-symbol.c.
References symbol::is_objfile_owned(), symbol_object::next, symbol::objfile(), symbol_object::prev, registry< T >::set(), symbol_object::symbol, sympy_objfile_data_key, and symbol::symtab.
Definition at line 148 of file py-symbol.c.
References symbol::aclass(), gdb_py_object_from_longest(), and SYMPY_REQUIRE_VALID.
Definition at line 128 of file py-symbol.c.
References general_symbol_info::linkage_name(), and SYMPY_REQUIRE_VALID.
Definition at line 118 of file py-symbol.c.
References general_symbol_info::natural_name(), and SYMPY_REQUIRE_VALID.
Definition at line 138 of file py-symbol.c.
References SYMPY_REQUIRE_VALID, and sympy_str().
Definition at line 105 of file py-symbol.c.
References symbol::is_objfile_owned(), SYMPY_REQUIRE_VALID, symbol::symtab, and symtab_to_symtab_object().
Definition at line 89 of file py-symbol.c.
References SYMPY_REQUIRE_VALID, symbol::type(), and type_to_type_object().
Definition at line 158 of file py-symbol.c.
References symbol::is_argument(), and SYMPY_REQUIRE_VALID.
Definition at line 168 of file py-symbol.c.
References symbol::aclass(), LOC_CONST, LOC_CONST_BYTES, and SYMPY_REQUIRE_VALID.
Definition at line 181 of file py-symbol.c.
References symbol::aclass(), LOC_BLOCK, and SYMPY_REQUIRE_VALID.
Definition at line 251 of file py-symbol.c.
References symbol_object_to_symbol().
Definition at line 194 of file py-symbol.c.
References symbol::aclass(), symbol::is_argument(), LOC_COMPUTED, LOC_LOCAL, LOC_OPTIMIZED_OUT, LOC_REGISTER, LOC_STATIC, and SYMPY_REQUIRE_VALID.
Definition at line 238 of file py-symbol.c.
References gdb_py_object_from_longest(), symbol::line(), and SYMPY_REQUIRE_VALID.
Definition at line 213 of file py-symbol.c.
References GDB_PY_HANDLE_EXCEPTION, symbol_read_needs_frame(), and SYMPY_REQUIRE_VALID.
Definition at line 384 of file py-symbol.c.
References general_symbol_info::print_name(), and symbol_object_to_symbol().
Definition at line 76 of file py-symbol.c.
References general_symbol_info::print_name(), and SYMPY_REQUIRE_VALID.
Referenced by sympy_get_print_name().
Definition at line 266 of file py-symbol.c.
References symbol::aclass(), frame_object_to_frame_info(), frame_object_type, GDB_PY_HANDLE_EXCEPTION, LOC_TYPEDEF, read_var_value(), symbol_read_needs_frame(), SYMPY_REQUIRE_VALID, and value_to_value_object().
|
static |
Definition at line 710 of file py-symbol.c.
|
static |
Definition at line 740 of file py-symbol.c.
PyTypeObject symbol_object_type |
Definition at line 750 of file py-symbol.c.
Referenced by frapy_read_var(), gdbpy_initialize_symbols(), symbol_object_to_symbol(), and symbol_to_symbol_object().
|
static |
Definition at line 73 of file py-symbol.c.
Referenced by set_symbol(), and sympy_dealloc().