GDB (xrefs)
|
#include "defs.h"
#include "auto-load.h"
#include "gdbcore.h"
#include "gdbthread.h"
#include "inferior.h"
#include "objfiles.h"
#include "observable.h"
#include "python-internal.h"
#include "arch-utils.h"
#include "language.h"
#include "gdbsupport/gdb_signals.h"
#include "py-event.h"
#include "py-stopevent.h"
#include <unordered_map>
Go to the source code of this file.
Classes | |
struct | inferior_object |
struct | infpy_deleter |
Macros | |
#define | INFPY_REQUIRE_VALID(Inferior) |
Typedefs | |
using | thread_map_t = std::unordered_map< thread_info *, gdbpy_ref< thread_object > > |
Variables | |
static const registry< inferior >::key< inferior_object, infpy_deleter > | infpy_inf_data_key |
static gdb_PyGetSetDef | inferior_object_getset [] |
static PyMethodDef | inferior_object_methods [] |
PyTypeObject | inferior_object_type |
#define INFPY_REQUIRE_VALID | ( | Inferior | ) |
Definition at line 74 of file py-inferior.c.
using thread_map_t = std::unordered_map<thread_info *, gdbpy_ref<thread_object> > |
Definition at line 35 of file py-inferior.c.
|
static |
Definition at line 326 of file py-inferior.c.
References create_thread_event_object(), create_thread_object(), evpy_emit_event(), evregpy_no_listeners_p(), gdb_py_events, gdb_python_initialized, gdbpy_print_stack(), and inferior_object::threads.
Referenced by gdbpy_initialize_inferior().
PyTypeObject inferior_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "inferior_object" | ) |
|
static |
Definition at line 363 of file py-inferior.c.
References gdb_python_initialized, thread_info::inf, and inferior_to_inferior_object().
Referenced by gdbpy_initialize_inferior().
Definition at line 499 of file py-inferior.c.
References all_inferiors(), and inferior_to_inferior_object().
int gdbpy_initialize_inferior | ( | void | ) |
Definition at line 806 of file py-inferior.c.
References add_thread_object(), auto_load_new_objfile_observer_token, delete_thread_object(), gdb::observers::free_objfile, gdb_module, gdb_pymodule_addobject(), gdb::observers::inferior_added, gdb::observers::inferior_call_post, gdb::observers::inferior_call_pre, gdb::observers::inferior_exit, inferior_object_type, gdb::observers::inferior_removed, gdb::observers::memory_changed, gdb::observers::new_objfile, gdb::observers::new_thread, gdb::observers::normal_stop, python_free_objfile(), python_inferior_deleted(), python_inferior_exit(), python_new_inferior(), python_new_objfile(), python_on_inferior_call_post(), python_on_inferior_call_pre(), python_on_memory_change(), python_on_normal_stop(), python_on_register_change(), python_on_resume(), gdb::observers::register_changed, gdb::observers::target_resumed, and gdb::observers::thread_exit.
Definition at line 799 of file py-inferior.c.
References current_inferior(), and inferior_to_inferior_object().
gdbpy_ref< inferior_object > inferior_to_inferior_object | ( | struct inferior * | inferior | ) |
Definition at line 228 of file py-inferior.c.
References registry< T >::get(), inferior_object::inferior, inferior_object_type, infpy_inf_data_key, registry< T >::set(), and inferior_object::threads.
Referenced by create_exited_event_object(), create_thread_object(), delete_thread_object(), gdbpy_inferiors(), gdbpy_selected_inferior(), python_inferior_deleted(), python_new_inferior(), and thread_to_thread_object().
Definition at line 749 of file py-inferior.c.
References gdbarch_to_arch_object(), and INFPY_REQUIRE_VALID.
|
static |
Definition at line 775 of file py-inferior.c.
References inferior_object::inferior.
Definition at line 433 of file py-inferior.c.
References INFPY_REQUIRE_VALID, and target_to_connection_object().
Definition at line 447 of file py-inferior.c.
References process_stratum_target::connection_number, gdb_py_object_from_longest(), and INFPY_REQUIRE_VALID.
Definition at line 420 of file py-inferior.c.
References gdb_py_object_from_longest(), and INFPY_REQUIRE_VALID.
Definition at line 461 of file py-inferior.c.
References gdb_py_object_from_longest(), INFPY_REQUIRE_VALID, and inf::pid.
Definition at line 484 of file py-inferior.c.
References INFPY_REQUIRE_VALID, and pspace_to_pspace_object().
Definition at line 471 of file py-inferior.c.
References INFPY_REQUIRE_VALID.
Definition at line 677 of file py-inferior.c.
Definition at line 526 of file py-inferior.c.
References GDB_PY_HANDLE_EXCEPTION, gdb_PyArg_ParseTupleAndKeywords(), gdbpy_buffer_to_membuf(), get_addr_from_python(), read_memory(), and xmalloc().
Definition at line 761 of file py-inferior.c.
References inferior_object::inferior, and inf::pid.
Definition at line 612 of file py-inferior.c.
References GDB_PY_HANDLE_EXCEPTION, gdb_py_object_from_ulongest(), gdb_PyArg_ParseTupleAndKeywords(), get_addr_from_python(), and target_search_memory().
|
static |
Definition at line 691 of file py-inferior.c.
References find_thread_by_handle(), GDB_PY_HANDLE_EXCEPTION, gdb_PyArg_ParseTupleAndKeywords(), gdbpy_is_value_object(), inferior_object::inferior, INFPY_REQUIRE_VALID, type::length(), thread_info, thread_to_thread_object(), value_contents_all(), value_object_to_value(), and value_type().
Definition at line 387 of file py-inferior.c.
References GDB_PY_HANDLE_EXCEPTION, INFPY_REQUIRE_VALID, inferior_object::threads, and update_thread_list().
Definition at line 563 of file py-inferior.c.
References GDB_PY_HANDLE_EXCEPTION, gdb_PyArg_ParseTupleAndKeywords(), get_addr_from_python(), and write_memory_with_notification().
|
static |
Definition at line 211 of file py-inferior.c.
References objfile::arch(), emit_free_objfile_event(), gdb_python_initialized, and gdbpy_print_stack().
Referenced by gdbpy_initialize_inferior().
|
static |
Definition at line 283 of file py-inferior.c.
References create_event_object(), evpy_add_attribute(), evpy_emit_event(), evregpy_no_listeners_p(), gdb_py_events, gdb_python_initialized, gdbpy_print_stack(), and inferior_to_inferior_object().
Referenced by gdbpy_initialize_inferior().
|
static |
Definition at line 166 of file py-inferior.c.
References emit_exited_event(), gdb_python_initialized, gdbpy_print_stack(), and target_gdbarch().
Referenced by gdbpy_initialize_inferior().
|
static |
Definition at line 255 of file py-inferior.c.
References create_event_object(), evpy_add_attribute(), evpy_emit_event(), evregpy_no_listeners_p(), gdb_py_events, gdb_python_initialized, gdbpy_print_stack(), and inferior_to_inferior_object().
Referenced by gdbpy_initialize_inferior().
|
static |
Definition at line 187 of file py-inferior.c.
References objfile::arch(), emit_clear_objfiles_event(), emit_new_objfile_event(), gdb_python_initialized, gdbpy_print_stack(), and target_gdbarch().
Referenced by gdbpy_initialize_inferior().
|
static |
Definition at line 131 of file py-inferior.c.
References emit_inferior_call_event(), gdbpy_print_stack(), INFERIOR_CALL_POST, and target_gdbarch().
Referenced by gdbpy_initialize_inferior().
|
static |
Definition at line 119 of file py-inferior.c.
References emit_inferior_call_event(), gdbpy_print_stack(), INFERIOR_CALL_PRE, and target_gdbarch().
Referenced by gdbpy_initialize_inferior().
|
static |
Definition at line 144 of file py-inferior.c.
References emit_memory_changed_event(), gdbpy_print_stack(), and target_gdbarch().
Referenced by gdbpy_initialize_inferior().
|
static |
Definition at line 85 of file py-inferior.c.
References emit_stop_event(), gdb_python_initialized, gdbpy_print_stack(), inferior_ptid, inferior_thread(), and thread_info::stop_signal().
Referenced by gdbpy_initialize_inferior().
|
static |
Definition at line 157 of file py-inferior.c.
References emit_register_changed_event(), gdbpy_print_stack(), regnum, and target_gdbarch().
Referenced by gdbpy_initialize_inferior().
|
static |
Definition at line 104 of file py-inferior.c.
References emit_continue_event(), gdb_python_initialized, gdbpy_print_stack(), and target_gdbarch().
Referenced by gdbpy_initialize_inferior().
gdbpy_ref thread_to_thread_object | ( | thread_info * | thr | ) |
Definition at line 309 of file py-inferior.c.
References thread_info::inf, and inferior_to_inferior_object().
Referenced by gdbpy_selected_thread(), infpy_thread_from_thread_handle(), and py_get_event_thread().
|
static |
Definition at line 841 of file py-inferior.c.
|
static |
Definition at line 856 of file py-inferior.c.
PyTypeObject inferior_object_type |
Definition at line 891 of file py-inferior.c.
Referenced by gdbpy_initialize_inferior(), and inferior_to_inferior_object().
|
static |
Definition at line 71 of file py-inferior.c.
Referenced by inferior_to_inferior_object().