GDB (xrefs)
|
#include "defs.h"
#include "py-instruction.h"
#include "py-record.h"
#include "py-record-btrace.h"
#include "py-record-full.h"
#include "target.h"
#include "gdbthread.h"
Go to the source code of this file.
Classes | |
struct | recpy_gap_object |
Functions | |
static PyObject * | recpy_method (PyObject *self, void *closure) |
static PyObject * | recpy_format (PyObject *self, void *closure) |
static PyObject * | recpy_goto (PyObject *self, PyObject *value) |
static PyObject * | recpy_replay_position (PyObject *self, void *closure) |
static PyObject * | recpy_instruction_history (PyObject *self, void *closure) |
static PyObject * | recpy_function_call_history (PyObject *self, void *closure) |
static PyObject * | recpy_begin (PyObject *self, void *closure) |
static PyObject * | recpy_end (PyObject *self, void *closure) |
PyObject * | recpy_insn_new (thread_info *thread, enum record_method method, Py_ssize_t number) |
static PyObject * | recpy_insn_sal (PyObject *self, void *closure) |
static PyObject * | recpy_insn_pc (PyObject *self, void *closure) |
static PyObject * | recpy_insn_data (PyObject *self, void *closure) |
static PyObject * | recpy_insn_decoded (PyObject *self, void *closure) |
static PyObject * | recpy_insn_size (PyObject *self, void *closure) |
static PyObject * | recpy_insn_is_speculative (PyObject *self, void *closure) |
PyObject * | recpy_func_new (thread_info *thread, enum record_method method, Py_ssize_t number) |
static PyObject * | recpy_func_level (PyObject *self, void *closure) |
static PyObject * | recpy_func_symbol (PyObject *self, void *closure) |
static PyObject * | recpy_func_instructions (PyObject *self, void *closure) |
static PyObject * | recpy_func_up (PyObject *self, void *closure) |
static PyObject * | recpy_func_prev (PyObject *self, void *closure) |
static PyObject * | recpy_func_next (PyObject *self, void *closure) |
static PyObject * | recpy_element_number (PyObject *self, void *closure) |
static Py_hash_t | recpy_element_hash (PyObject *self) |
static PyObject * | recpy_element_richcompare (PyObject *self, PyObject *other, int op) |
PyObject * | recpy_gap_new (int reason_code, const char *reason_string, Py_ssize_t number) |
static PyObject * | recpy_gap_number (PyObject *self, void *closure) |
static PyObject * | recpy_gap_reason_code (PyObject *self, void *closure) |
static PyObject * | recpy_gap_reason_string (PyObject *self, void *closure) |
int | gdbpy_initialize_record (void) |
PyObject * | gdbpy_start_recording (PyObject *self, PyObject *args) |
PyObject * | gdbpy_current_recording (PyObject *self, PyObject *args) |
PyObject * | gdbpy_stop_recording (PyObject *self, PyObject *args) |
Variables | |
static PyTypeObject | recpy_record_type |
PyTypeObject | recpy_insn_type |
PyTypeObject | recpy_func_type |
static PyTypeObject | recpy_gap_type |
static PyMethodDef | recpy_record_methods [] |
static gdb_PyGetSetDef | recpy_record_getset [] |
static gdb_PyGetSetDef | recpy_insn_getset [] |
static gdb_PyGetSetDef | recpy_func_getset [] |
static gdb_PyGetSetDef | recpy_gap_getset [] |
PyObject * gdbpy_current_recording | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 621 of file py-record.c.
References find_record_target(), inferior_thread(), recpy_record_object::method, thread_info::ptid, recpy_record_type, target_record_method(), and recpy_record_object::thread.
Referenced by gdbpy_start_recording().
int gdbpy_initialize_record | ( | void | ) |
Definition at line 548 of file py-record.c.
References py_insn_get_insn_type(), recpy_element_hash(), recpy_element_richcompare(), recpy_func_getset, recpy_func_type, recpy_gap_getset, recpy_gap_type, recpy_insn_getset, recpy_insn_type, recpy_record_getset, recpy_record_methods, and recpy_record_type.
Referenced by do_start_initialization().
PyObject * gdbpy_start_recording | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 596 of file py-record.c.
References gdbpy_convert_exception(), gdbpy_current_recording(), and record_start().
PyObject * gdbpy_stop_recording | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 638 of file py-record.c.
References GDB_PY_HANDLE_EXCEPTION, and record_stop().
|
static |
Definition at line 154 of file py-record.c.
References recpy_record_object::method, RECORD_METHOD_BTRACE, and recpy_bt_begin().
|
static |
Definition at line 384 of file py-record.c.
References recpy_element_object::number.
Referenced by gdbpy_initialize_record().
|
static |
Definition at line 373 of file py-record.c.
References gdb_py_object_from_longest(), and recpy_element_object::number.
|
static |
Definition at line 395 of file py-record.c.
References recpy_element_object::method, recpy_element_object::number, and recpy_element_object::thread.
Referenced by gdbpy_initialize_record().
|
static |
Definition at line 167 of file py-record.c.
References recpy_record_object::method, RECORD_METHOD_BTRACE, and recpy_bt_end().
|
static |
Definition at line 86 of file py-record.c.
References recpy_record_object::method, RECORD_METHOD_BTRACE, RECORD_METHOD_FULL, recpy_bt_format(), and recpy_full_format().
|
static |
Definition at line 320 of file py-record.c.
References recpy_element_object::method, RECORD_METHOD_BTRACE, and recpy_bt_func_instructions().
|
static |
Definition at line 294 of file py-record.c.
References recpy_element_object::method, RECORD_METHOD_BTRACE, and recpy_bt_func_level().
PyObject * recpy_func_new | ( | thread_info * | thread, |
enum record_method | method, | ||
Py_ssize_t | number | ||
) |
Definition at line 276 of file py-record.c.
References recpy_element_object::method, recpy_element_object::number, recpy_func_type, and recpy_element_object::thread.
Referenced by btpy_list_item(), recpy_bt_func_next(), recpy_bt_func_prev(), and recpy_bt_func_up().
|
static |
Definition at line 359 of file py-record.c.
References recpy_element_object::method, RECORD_METHOD_BTRACE, and recpy_bt_func_next().
|
static |
Definition at line 346 of file py-record.c.
References recpy_element_object::method, RECORD_METHOD_BTRACE, and recpy_bt_func_prev().
|
static |
Definition at line 307 of file py-record.c.
References recpy_element_object::method, RECORD_METHOD_BTRACE, and recpy_bt_func_symbol().
|
static |
Definition at line 333 of file py-record.c.
References recpy_element_object::method, RECORD_METHOD_BTRACE, and recpy_bt_func_up().
|
static |
Definition at line 141 of file py-record.c.
References recpy_record_object::method, RECORD_METHOD_BTRACE, and recpy_bt_function_call_history().
PyObject * recpy_gap_new | ( | int | reason_code, |
const char * | reason_string, | ||
Py_ssize_t | number | ||
) |
Definition at line 435 of file py-record.c.
References recpy_gap_object::number, recpy_gap_object::reason_code, recpy_gap_object::reason_string, and recpy_gap_type.
Referenced by btpy_insn_or_gap_new().
|
static |
Definition at line 453 of file py-record.c.
References gdb_py_object_from_longest(), and recpy_gap_object::number.
|
static |
Definition at line 463 of file py-record.c.
References gdb_py_object_from_longest(), and recpy_gap_object::reason_code.
|
static |
Definition at line 473 of file py-record.c.
References recpy_gap_object::reason_string.
|
static |
Definition at line 102 of file py-record.c.
References recpy_record_object::method, RECORD_METHOD_BTRACE, and recpy_bt_goto().
|
static |
Definition at line 224 of file py-record.c.
References recpy_element_object::method, RECORD_METHOD_BTRACE, and recpy_bt_insn_data().
|
static |
Definition at line 237 of file py-record.c.
References recpy_element_object::method, RECORD_METHOD_BTRACE, and recpy_bt_insn_decoded().
|
static |
Definition at line 263 of file py-record.c.
References recpy_element_object::method, RECORD_METHOD_BTRACE, and recpy_bt_insn_is_speculative().
PyObject * recpy_insn_new | ( | thread_info * | thread, |
enum record_method | method, | ||
Py_ssize_t | number | ||
) |
Definition at line 180 of file py-record.c.
References recpy_element_object::method, recpy_element_object::number, recpy_insn_type, and recpy_element_object::thread.
Referenced by btpy_insn_or_gap_new(), and btpy_list_item().
|
static |
Definition at line 211 of file py-record.c.
References recpy_element_object::method, RECORD_METHOD_BTRACE, and recpy_bt_insn_pc().
|
static |
Definition at line 198 of file py-record.c.
References recpy_element_object::method, RECORD_METHOD_BTRACE, and recpy_bt_insn_sal().
|
static |
Definition at line 250 of file py-record.c.
References recpy_element_object::method, RECORD_METHOD_BTRACE, and recpy_bt_insn_size().
|
static |
Definition at line 128 of file py-record.c.
References recpy_record_object::method, RECORD_METHOD_BTRACE, and recpy_bt_instruction_history().
|
static |
Definition at line 70 of file py-record.c.
References recpy_record_object::method, RECORD_METHOD_BTRACE, RECORD_METHOD_FULL, recpy_bt_method(), and recpy_full_method().
|
static |
Definition at line 115 of file py-record.c.
References recpy_record_object::method, RECORD_METHOD_BTRACE, and recpy_bt_replay_position().
|
static |
Definition at line 524 of file py-record.c.
Referenced by gdbpy_initialize_record().
PyTypeObject recpy_func_type |
Definition at line 42 of file py-record.c.
Referenced by btrace_func_from_recpy_func(), gdbpy_initialize_record(), recpy_bt_function_call_history(), and recpy_func_new().
|
static |
Definition at line 538 of file py-record.c.
Referenced by gdbpy_initialize_record().
|
static |
Definition at line 48 of file py-record.c.
Referenced by gdbpy_initialize_record(), and recpy_gap_new().
|
static |
Definition at line 510 of file py-record.c.
Referenced by gdbpy_initialize_record().
PyTypeObject recpy_insn_type |
Definition at line 36 of file py-record.c.
Referenced by btpy_list_item(), btrace_insn_from_recpy_insn(), gdbpy_initialize_record(), recpy_bt_func_instructions(), recpy_bt_goto(), recpy_bt_instruction_history(), and recpy_insn_new().
|
static |
Definition at line 491 of file py-record.c.
Referenced by gdbpy_initialize_record().
|
static |
Definition at line 482 of file py-record.c.
Referenced by gdbpy_initialize_record().
|
static |
Definition at line 30 of file py-record.c.
Referenced by gdbpy_current_recording(), and gdbpy_initialize_record().