GDB (xrefs)
|
#include "defs.h"
#include "python-internal.h"
#include "charset.h"
#include "objfiles.h"
#include "language.h"
#include "build-id.h"
#include "symtab.h"
#include "python.h"
Go to the source code of this file.
Classes | |
struct | objfile_object |
struct | objfpy_deleter |
Macros | |
#define | OBJFPY_REQUIRE_VALID(obj) |
Functions | |
PyTypeObject objfile_object_type | CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("objfile_object") |
static PyObject * | objfpy_get_filename (PyObject *self, void *closure) |
static PyObject * | objfpy_get_username (PyObject *self, void *closure) |
static PyObject * | objfpy_get_is_file (PyObject *o, void *ignore) |
static PyObject * | objfpy_get_owner (PyObject *self, void *closure) |
static PyObject * | objfpy_get_build_id (PyObject *self, void *closure) |
static PyObject * | objfpy_get_progspace (PyObject *self, void *closure) |
static void | objfpy_dealloc (PyObject *o) |
static int | objfpy_initialize (objfile_object *self) |
static PyObject * | objfpy_new (PyTypeObject *type, PyObject *args, PyObject *keywords) |
PyObject * | objfpy_get_printers (PyObject *o, void *ignore) |
static int | objfpy_set_printers (PyObject *o, PyObject *value, void *ignore) |
PyObject * | objfpy_get_frame_filters (PyObject *o, void *ignore) |
static int | objfpy_set_frame_filters (PyObject *o, PyObject *filters, void *ignore) |
PyObject * | objfpy_get_frame_unwinders (PyObject *o, void *ignore) |
static int | objfpy_set_frame_unwinders (PyObject *o, PyObject *unwinders, void *ignore) |
static PyObject * | objfpy_get_type_printers (PyObject *o, void *ignore) |
PyObject * | objfpy_get_xmethods (PyObject *o, void *ignore) |
static int | objfpy_set_type_printers (PyObject *o, PyObject *value, void *ignore) |
static PyObject * | objfpy_is_valid (PyObject *self, PyObject *args) |
static PyObject * | objfpy_add_separate_debug_file (PyObject *self, PyObject *args, PyObject *kw) |
static PyObject * | objfpy_lookup_global_symbol (PyObject *self, PyObject *args, PyObject *kw) |
static PyObject * | objfpy_lookup_static_symbol (PyObject *self, PyObject *args, PyObject *kw) |
static PyObject * | objfpy_repr (PyObject *self_) |
static int | objfpy_build_id_ok (const char *string) |
static int | objfpy_build_id_matches (const struct bfd_build_id *build_id, const char *string) |
PyObject * | gdbpy_lookup_objfile (PyObject *self, PyObject *args, PyObject *kw) |
gdbpy_ref | objfile_to_objfile_object (struct objfile *objfile) |
static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION | gdbpy_initialize_objfile (void) |
GDBPY_INITIALIZE_FILE (gdbpy_initialize_objfile) | |
Variables | |
static const registry< objfile >::key< objfile_object, objfpy_deleter > | objfpy_objfile_data_key |
static PyMethodDef | objfile_object_methods [] |
static gdb_PyGetSetDef | objfile_getset [] |
PyTypeObject | objfile_object_type |
#define OBJFPY_REQUIRE_VALID | ( | obj | ) |
Definition at line 75 of file py-objfile.c.
Referenced by objfpy_add_separate_debug_file(), objfpy_get_build_id(), objfpy_get_owner(), objfpy_lookup_global_symbol(), and objfpy_lookup_static_symbol().
|
extern |
GDBPY_INITIALIZE_FILE | ( | gdbpy_initialize_objfile | ) |
|
static |
Definition at line 708 of file py-objfile.c.
References gdb_module, gdb_pymodule_addobject(), and objfile_object_type.
PyObject * gdbpy_lookup_objfile | ( | PyObject * | self, |
PyObject * | args, | ||
PyObject * | kw ) |
Definition at line 591 of file py-objfile.c.
References build_id_bfd_get(), compare_filenames_for_search(), objfile::flags, gdb_PyArg_ParseTupleAndKeywords(), gdbarch_iterate_over_objfiles_in_search_order(), gdbpy_current_objfile, name, objfile::obfd, OBJF_NOT_FILENAME, objfile_filename(), objfile_to_objfile_object(), objfpy_build_id_matches(), objfpy_build_id_ok(), objfile::original_name, objfile::separate_debug_objfile_backlink, and target_gdbarch().
Definition at line 686 of file py-objfile.c.
References get(), registry< T >::get(), objfile::objfile(), objfile_object_type, objfpy_initialize(), objfpy_objfile_data_key, and registry< T >::set().
Referenced by create_free_objfile_event_object(), create_new_objfile_event_object(), find_pretty_printer_from_objfiles(), gdbpy_get_current_objfile(), gdbpy_get_matching_xmethod_workers(), gdbpy_lookup_objfile(), objfpy_get_owner(), pspy_get_objfiles(), pspy_get_symbol_file(), pspy_objfile_for_address(), stpy_get_objfile(), and typy_get_objfile().
|
static |
Definition at line 437 of file py-objfile.c.
References GDB_PY_HANDLE_EXCEPTION, gdb_PyArg_ParseTupleAndKeywords(), objfile_object::objfile, OBJFPY_REQUIRE_VALID, symbol_file_add_separate(), and symfile_bfd_open().
|
static |
Definition at line 568 of file py-objfile.c.
Referenced by gdbpy_lookup_objfile().
|
static |
Definition at line 549 of file py-objfile.c.
Referenced by gdbpy_lookup_objfile().
|
static |
Definition at line 192 of file py-objfile.c.
References objfile_object::dict, objfile_object::frame_filters, objfile_object::frame_unwinders, objfile_object::printers, objfile_object::type_printers, and objfile_object::xmethods.
|
static |
Definition at line 151 of file py-objfile.c.
References build_id_bfd_get(), GDB_PY_HANDLE_EXCEPTION, host_string_to_python_string(), objfile::obfd, objfile_object::objfile, and OBJFPY_REQUIRE_VALID.
|
static |
Definition at line 90 of file py-objfile.c.
References host_string_to_python_string(), objfile_object::objfile, and objfile_name().
PyObject * objfpy_get_frame_filters | ( | PyObject * | o, |
void * | ignore ) |
Definition at line 293 of file py-objfile.c.
References objfile_object::frame_filters.
PyObject * objfpy_get_frame_unwinders | ( | PyObject * | o, |
void * | ignore ) |
Definition at line 332 of file py-objfile.c.
References objfile_object::frame_unwinders.
|
static |
Definition at line 121 of file py-objfile.c.
References objfile::flags, OBJF_NOT_FILENAME, and objfile_object::objfile.
|
static |
Definition at line 134 of file py-objfile.c.
References objfile_object::objfile, objfile_to_objfile_object(), OBJFPY_REQUIRE_VALID, and objfile::separate_debug_objfile_backlink.
PyObject * objfpy_get_printers | ( | PyObject * | o, |
void * | ignore ) |
Definition at line 255 of file py-objfile.c.
References objfile_object::printers.
Referenced by find_pretty_printer_from_objfiles().
|
static |
Definition at line 181 of file py-objfile.c.
References objfile_object::objfile, objfile::pspace, and pspace_to_pspace_object().
|
static |
Definition at line 372 of file py-objfile.c.
References objfile_object::type_printers.
|
static |
Definition at line 104 of file py-objfile.c.
References host_string_to_python_string(), objfile_object::objfile, and objfile::original_name.
PyObject * objfpy_get_xmethods | ( | PyObject * | o, |
void * | ignore ) |
Definition at line 383 of file py-objfile.c.
References objfile_object::xmethods.
Referenced by gdbpy_get_matching_xmethod_workers().
|
static |
Definition at line 209 of file py-objfile.c.
References objfile_object::dict, objfile_object::frame_filters, objfile_object::frame_unwinders, objfile_object::objfile, objfile_object::printers, objfile_object::type_printers, and objfile_object::xmethods.
Referenced by objfile_to_objfile_object(), and objfpy_new().
|
static |
Definition at line 424 of file py-objfile.c.
References objfile_object::objfile.
|
static |
Definition at line 466 of file py-objfile.c.
References symbol::domain(), GDB_PY_HANDLE_EXCEPTION, gdb_PyArg_ParseTupleAndKeywords(), GLOBAL_BLOCK, lookup_global_symbol_from_objfile(), objfile_object::objfile, OBJFPY_REQUIRE_VALID, block_symbol::symbol, symbol_to_symbol_object(), and VAR_DOMAIN.
|
static |
Definition at line 500 of file py-objfile.c.
References symbol::domain(), GDB_PY_HANDLE_EXCEPTION, gdb_PyArg_ParseTupleAndKeywords(), lookup_global_symbol_from_objfile(), objfile_object::objfile, OBJFPY_REQUIRE_VALID, STATIC_BLOCK, block_symbol::symbol, symbol_to_symbol_object(), and VAR_DOMAIN.
|
static |
Definition at line 241 of file py-objfile.c.
References objfpy_initialize().
|
static |
Definition at line 533 of file py-objfile.c.
References objfile_object::objfile, and objfile_name().
|
static |
Definition at line 303 of file py-objfile.c.
References objfile_object::frame_filters.
|
static |
Definition at line 343 of file py-objfile.c.
References objfile_object::frame_unwinders.
|
static |
Definition at line 264 of file py-objfile.c.
References objfile_object::printers, and value.
|
static |
Definition at line 394 of file py-objfile.c.
References objfile_object::type_printers, and value.
|
static |
Definition at line 745 of file py-objfile.c.
|
static |
Definition at line 721 of file py-objfile.c.
PyTypeObject objfile_object_type |
Definition at line 775 of file py-objfile.c.
Referenced by gdbpy_initialize_objfile(), and objfile_to_objfile_object().
|
static |
Definition at line 72 of file py-objfile.c.
Referenced by objfile_to_objfile_object().