GDB (xrefs)
|
#include "defs.h"
#include "charset.h"
#include "block.h"
#include "frame.h"
#include "symtab.h"
#include "stack.h"
#include "value.h"
#include "python-internal.h"
#include "symfile.h"
#include "objfiles.h"
#include "user-regs.h"
#include "unwind_stop_reasons.def"
Go to the source code of this file.
Classes | |
struct | frame_object |
Macros | |
#define | FRAPY_REQUIRE_VALID(frame_obj, frame) |
#define | SET(name, description) |
Functions | |
struct frame_info * | frame_object_to_frame_info (PyObject *obj) |
static PyObject * | frapy_str (PyObject *self) |
static PyObject * | frapy_is_valid (PyObject *self, PyObject *args) |
static PyObject * | frapy_name (PyObject *self, PyObject *args) |
static PyObject * | frapy_type (PyObject *self, PyObject *args) |
static PyObject * | frapy_arch (PyObject *self, PyObject *args) |
static PyObject * | frapy_unwind_stop_reason (PyObject *self, PyObject *args) |
static PyObject * | frapy_pc (PyObject *self, PyObject *args) |
static PyObject * | frapy_read_register (PyObject *self, PyObject *args) |
static PyObject * | frapy_block (PyObject *self, PyObject *args) |
static PyObject * | frapy_function (PyObject *self, PyObject *args) |
PyObject * | frame_info_to_frame_object (struct frame_info *frame) |
static PyObject * | frapy_older (PyObject *self, PyObject *args) |
static PyObject * | frapy_newer (PyObject *self, PyObject *args) |
static PyObject * | frapy_find_sal (PyObject *self, PyObject *args) |
static PyObject * | frapy_read_var (PyObject *self, PyObject *args) |
static PyObject * | frapy_select (PyObject *self, PyObject *args) |
PyObject * | gdbpy_newest_frame (PyObject *self, PyObject *args) |
PyObject * | gdbpy_selected_frame (PyObject *self, PyObject *args) |
PyObject * | gdbpy_frame_stop_reason_string (PyObject *self, PyObject *args) |
static PyObject * | frapy_richcompare (PyObject *self, PyObject *other, int op) |
int | gdbpy_initialize_frames (void) |
Variables | |
static PyMethodDef | frame_object_methods [] |
PyTypeObject | frame_object_type |
#define FRAPY_REQUIRE_VALID | ( | frame_obj, | |
frame | |||
) |
Definition at line 50 of file py-frame.c.
Referenced by frapy_arch(), frapy_block(), frapy_find_sal(), frapy_function(), frapy_name(), frapy_newer(), frapy_older(), frapy_pc(), frapy_read_register(), frapy_read_var(), frapy_select(), frapy_type(), and frapy_unwind_stop_reason().
#define SET | ( | name, | |
description | |||
) |
PyObject* frame_info_to_frame_object | ( | struct frame_info * | frame | ) |
Definition at line 363 of file py-frame.c.
References CATCH, END_CATCH, frame_object::frame_id, frame_object::frame_id_is_next, frame_object_type, frame_object::gdbarch, gdbpy_convert_exception(), get_frame_arch(), get_frame_id(), get_frame_unwind_stop_reason(), get_next_frame(), get_prev_frame(), Py_DECREF, RETURN_MASK_ALL, and TRY.
Referenced by bootstrap_python_frame_filters(), create_register_changed_event_object(), frapy_newer(), frapy_older(), gdbpy_newest_frame(), and gdbpy_selected_frame().
struct frame_info* frame_object_to_frame_info | ( | PyObject * | obj | ) |
Definition at line 62 of file py-frame.c.
References frame_find_by_id(), frame_object::frame_id, frame_object::frame_id_is_next, and get_prev_frame().
Referenced by bpfinishpy_init(), frapy_is_valid(), py_print_frame(), and sympy_value().
|
static |
Definition at line 187 of file py-frame.c.
References CATCH, END_CATCH, FRAPY_REQUIRE_VALID, GDB_PY_HANDLE_EXCEPTION, frame_object::gdbarch, gdbarch_to_arch_object(), RETURN_MASK_ALL, and TRY.
|
static |
Definition at line 294 of file py-frame.c.
References _, BLOCK_FUNCTION, BLOCK_SUPERBLOCK, block_to_block_object(), CATCH, END_CATCH, FRAPY_REQUIRE_VALID, GDB_PY_HANDLE_EXCEPTION, get_frame_block(), RETURN_MASK_ALL, symbol_objfile(), and TRY.
|
static |
Definition at line 472 of file py-frame.c.
References CATCH, END_CATCH, find_frame_sal(), FRAPY_REQUIRE_VALID, GDB_PY_HANDLE_EXCEPTION, RETURN_MASK_ALL, symtab_and_line_to_sal_object(), and TRY.
|
static |
Definition at line 336 of file py-frame.c.
References CATCH, END_CATCH, find_pc_function(), FRAPY_REQUIRE_VALID, GDB_PY_HANDLE_EXCEPTION, get_frame_address_in_block(), RETURN_MASK_ALL, symbol_to_symbol_object(), and TRY.
|
static |
Definition at line 101 of file py-frame.c.
References CATCH, END_CATCH, frame_object_to_frame_info(), GDB_PY_HANDLE_EXCEPTION, RETURN_MASK_ALL, and TRY.
|
static |
Definition at line 125 of file py-frame.c.
References CATCH, END_CATCH, find_frame_funname(), FRAPY_REQUIRE_VALID, GDB_PY_HANDLE_EXCEPTION, host_charset(), name, RETURN_MASK_ALL, TRY, and xfree().
|
static |
Definition at line 440 of file py-frame.c.
References CATCH, END_CATCH, frame_info_to_frame_object(), FRAPY_REQUIRE_VALID, GDB_PY_HANDLE_EXCEPTION, get_next_frame(), frame_info::next, RETURN_MASK_ALL, and TRY.
|
static |
Definition at line 407 of file py-frame.c.
References CATCH, END_CATCH, frame_info_to_frame_object(), FRAPY_REQUIRE_VALID, GDB_PY_HANDLE_EXCEPTION, get_prev_frame(), frame_info::prev, RETURN_MASK_ALL, and TRY.
|
static |
Definition at line 233 of file py-frame.c.
References CATCH, END_CATCH, FRAPY_REQUIRE_VALID, GDB_PY_HANDLE_EXCEPTION, gdb_py_long_from_ulongest, get_frame_pc(), RETURN_MASK_ALL, and TRY.
|
static |
Definition at line 257 of file py-frame.c.
References _, CATCH, END_CATCH, FRAPY_REQUIRE_VALID, GDB_PY_HANDLE_EXCEPTION, get_frame_arch(), regnum, RETURN_MASK_ALL, TRY, user_reg_map_name_to_regnum(), value_of_register(), and value_to_value_object().
|
static |
Definition at line 502 of file py-frame.c.
References _, block_object_to_block(), CATCH, do_cleanups(), END_CATCH, FRAPY_REQUIRE_VALID, GDB_PY_HANDLE_EXCEPTION, gdbpy_convert_exception(), gdbpy_is_string(), get_frame_block(), lookup_symbol(), make_cleanup(), python_string_to_target_string(), read_var_value(), RETURN_MASK_ALL, symbol_object_to_symbol(), symbol_object_type, TRY, value_to_value_object(), VAR_DOMAIN, and xfree().
|
static |
Definition at line 678 of file py-frame.c.
References frame_id_eq(), and frame_object_type.
|
static |
Definition at line 589 of file py-frame.c.
References CATCH, END_CATCH, FRAPY_REQUIRE_VALID, GDB_PY_HANDLE_EXCEPTION, RETURN_MASK_ALL, select_frame(), and TRY.
|
static |
Definition at line 81 of file py-frame.c.
References fprint_frame_id(), mem_fileopen(), ui_file_xstrdup(), and xfree().
|
static |
Definition at line 163 of file py-frame.c.
References CATCH, END_CATCH, FRAPY_REQUIRE_VALID, GDB_PY_HANDLE_EXCEPTION, get_frame_type(), NORMAL_FRAME, RETURN_MASK_ALL, and TRY.
|
static |
Definition at line 209 of file py-frame.c.
References CATCH, END_CATCH, FRAPY_REQUIRE_VALID, GDB_PY_HANDLE_EXCEPTION, get_frame_unwind_stop_reason(), RETURN_MASK_ALL, frame_info::stop_reason, and TRY.
PyObject* gdbpy_frame_stop_reason_string | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 654 of file py-frame.c.
References _, host_charset(), and unwind_stop_reason_to_string().
int gdbpy_initialize_frames | ( | void | ) |
Definition at line 703 of file py-frame.c.
References ARCH_FRAME, DUMMY_FRAME, frame_object_type, gdb_module, gdb_pymodule_addobject(), INLINE_FRAME, NORMAL_FRAME, SENTINEL_FRAME, SIGTRAMP_FRAME, and TAILCALL_FRAME.
Referenced by _initialize_python().
PyObject* gdbpy_newest_frame | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 612 of file py-frame.c.
References CATCH, END_CATCH, frame_info_to_frame_object(), GDB_PY_HANDLE_EXCEPTION, get_current_frame(), RETURN_MASK_ALL, and TRY.
PyObject* gdbpy_selected_frame | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 633 of file py-frame.c.
References CATCH, END_CATCH, frame_info_to_frame_object(), GDB_PY_HANDLE_EXCEPTION, get_selected_frame(), RETURN_MASK_ALL, and TRY.
|
static |
Definition at line 736 of file py-frame.c.
PyTypeObject frame_object_type |
Definition at line 781 of file py-frame.c.
Referenced by frame_info_to_frame_object(), frapy_richcompare(), gdbpy_initialize_frames(), and sympy_value().