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"
Go to the source code of this file.
Classes | |
struct | objfile_object |
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_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 int | objfpy_build_id_ok (const char *string) |
static int | objfpy_build_id_matches (const struct bfd_build_id *build_id, const char *string) |
static struct objfile * | objfpy_lookup_objfile_by_name (const char *name) |
static struct objfile * | objfpy_lookup_objfile_by_build_id (const char *build_id) |
PyObject * | gdbpy_lookup_objfile (PyObject *self, PyObject *args, PyObject *kw) |
static void | py_free_objfile (struct objfile *objfile, void *datum) |
PyObject * | objfile_to_objfile_object (struct objfile *objfile) |
int | gdbpy_initialize_objfile (void) |
Variables | |
static const struct objfile_data * | objfpy_objfile_data_key |
static PyMethodDef | objfile_object_methods [] |
static PyGetSetDef | objfile_getset [] |
PyTypeObject | objfile_object_type |
#define OBJFPY_REQUIRE_VALID | ( | obj | ) |
Definition at line 61 of file py-objfile.c.
Referenced by objfpy_add_separate_debug_file(), objfpy_get_build_id(), and objfpy_get_owner().
PyTypeObject objfile_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "objfile_object" | ) |
int gdbpy_initialize_objfile | ( | void | ) |
Definition at line 657 of file py-objfile.c.
References gdb_module, gdb_pymodule_addobject(), objfile_object_type, objfpy_objfile_data_key, and py_free_objfile().
Referenced by _initialize_python().
PyObject* gdbpy_lookup_objfile | ( | PyObject * | self, |
PyObject * | args, | ||
PyObject * | kw | ||
) |
Definition at line 564 of file py-objfile.c.
References _, name, objfile_to_objfile_object(), objfpy_build_id_ok(), objfpy_lookup_objfile_by_build_id(), and objfpy_lookup_objfile_by_name().
PyObject* objfile_to_objfile_object | ( | struct objfile * | objfile | ) |
Definition at line 632 of file py-objfile.c.
References objfile_object_type, objfpy_initialize(), objfpy_objfile_data_key, and Py_DECREF.
Referenced by create_new_objfile_event_object(), find_pretty_printer_from_objfiles(), gdbpy_get_current_objfile(), gdbpy_get_matching_xmethod_workers(), gdbpy_lookup_objfile(), gdbpy_objfiles(), objfpy_get_owner(), and stpy_get_objfile().
|
static |
Definition at line 436 of file py-objfile.c.
References CATCH, END_CATCH, GDB_PY_HANDLE_EXCEPTION, objfile_object::objfile, OBJFPY_REQUIRE_VALID, RETURN_MASK_ALL, symbol_file_add_separate(), symfile_bfd_open(), and TRY.
|
static |
Definition at line 486 of file py-objfile.c.
References host_hex_value().
Referenced by objfpy_lookup_objfile_by_build_id().
Definition at line 467 of file py-objfile.c.
Referenced by gdbpy_lookup_objfile().
|
static |
Definition at line 183 of file py-objfile.c.
References Py_TYPE.
|
static |
Definition at line 132 of file py-objfile.c.
References build_id_bfd_get(), CATCH, END_CATCH, GDB_PY_HANDLE_EXCEPTION, host_charset(), make_hex_string(), objfile::obfd, objfile_object::objfile, OBJFPY_REQUIRE_VALID, RETURN_MASK_ALL, TRY, and xfree().
|
static |
Definition at line 76 of file py-objfile.c.
References host_charset(), objfile_object::objfile, and objfile_name().
PyObject* objfpy_get_frame_filters | ( | PyObject * | o, |
void * | ignore | ||
) |
Definition at line 286 of file py-objfile.c.
PyObject* objfpy_get_frame_unwinders | ( | PyObject * | o, |
void * | ignore | ||
) |
Definition at line 327 of file py-objfile.c.
|
static |
Definition at line 110 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 246 of file py-objfile.c.
Referenced by find_pretty_printer_from_objfiles().
|
static |
Definition at line 167 of file py-objfile.c.
References objfile_object::objfile, objfile::pspace, and pspace_to_pspace_object().
|
static |
Definition at line 369 of file py-objfile.c.
|
static |
Definition at line 91 of file py-objfile.c.
References host_charset(), objfile_object::objfile, and objfile::original_name.
PyObject* objfpy_get_xmethods | ( | PyObject * | o, |
void * | ignore | ||
) |
Definition at line 380 of file py-objfile.c.
Referenced by gdbpy_get_matching_xmethod_workers().
|
static |
Definition at line 200 of file py-objfile.c.
Referenced by objfile_to_objfile_object(), and objfpy_new().
|
static |
Definition at line 423 of file py-objfile.c.
References objfile_object::objfile.
Definition at line 538 of file py-objfile.c.
References ALL_OBJFILES, build_id_bfd_get(), objfile::obfd, objfpy_build_id_matches(), and objfile::separate_debug_objfile_backlink.
Referenced by gdbpy_lookup_objfile().
Definition at line 510 of file py-objfile.c.
References ALL_OBJFILES, compare_filenames_for_search(), objfile::flags, OBJF_NOT_FILENAME, objfile_filename(), objfile::original_name, and objfile::separate_debug_objfile_backlink.
Referenced by gdbpy_lookup_objfile().
|
static |
Definition at line 229 of file py-objfile.c.
References objfpy_initialize(), and Py_DECREF.
|
static |
Definition at line 296 of file py-objfile.c.
References _.
|
static |
Definition at line 338 of file py-objfile.c.
References _.
|
static |
Definition at line 255 of file py-objfile.c.
References _.
|
static |
Definition at line 391 of file py-objfile.c.
References _.
|
static |
Definition at line 615 of file py-objfile.c.
References current_language, do_cleanups(), ensure_python_env(), get_objfile_arch(), and Py_DECREF.
Referenced by gdbpy_initialize_objfile().
|
static |
Definition at line 685 of file py-objfile.c.
|
static |
Definition at line 671 of file py-objfile.c.
PyTypeObject objfile_object_type |
Definition at line 713 of file py-objfile.c.
Referenced by gdbpy_initialize_objfile(), and objfile_to_objfile_object().
|
static |
Definition at line 58 of file py-objfile.c.
Referenced by gdbpy_initialize_objfile(), and objfile_to_objfile_object().