GDB (xrefs)
|
#include "extension.h"
#include "extension-priv.h"
#include <Python.h>
#include <frameobject.h>
#include "py-ref.h"
#include "symtab.h"
#include "command.h"
#include "breakpoint.h"
Go to the source code of this file.
Classes | |
struct | gdb_PyGetSetDef |
struct | gdbpy_breakpoint_object |
struct | thread_object |
class | gdbpy_err_fetch |
class | gdbpy_enter |
class | gdbpy_enter_varobj |
class | gdbpy_allow_threads |
struct | Py_buffer_deleter |
Macros | |
#define | CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF(ARG) |
#define | CPYCHECKER_SETS_EXCEPTION |
#define | CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION |
#define | PY_SSIZE_T_CLEAN |
#define | Py_TPFLAGS_CHECKTYPES 0 |
#define | PyGILState_Ensure() ((PyGILState_STATE) 0) |
#define | PyGILState_Release(ARG) ((void)(ARG)) |
#define | PyEval_InitThreads() |
#define | PyThreadState_Swap(ARG) ((void)(ARG)) |
#define | PyEval_ReleaseLock() |
#define | GDB_PY_LL_ARG "L" |
#define | GDB_PY_LLU_ARG "K" |
#define | gdb_py_long_as_ulongest PyLong_AsUnsignedLong |
#define | PyMem_RawMalloc PyMem_Malloc |
#define | PyObject_CallMethod gdb_PyObject_CallMethod |
#define | PyErr_NewException gdb_PyErr_NewException |
#define | PySys_GetObject gdb_PySys_GetObject |
#define | GDB_PYSYS_SETPATH_CHAR wchar_t |
#define | PySys_SetPath gdb_PySys_SetPath |
#define | BPPY_REQUIRE_VALID(Breakpoint) |
#define | BPPY_SET_REQUIRE_VALID(Breakpoint) |
#define | GDB_PY_HANDLE_EXCEPTION(Exception) |
#define | GDB_PY_SET_HANDLE_EXCEPTION(Exception) |
Typedefs | |
typedef long | gdb_py_longest |
typedef unsigned long | gdb_py_ulongest |
typedef long | Py_hash_t |
typedef std::unique_ptr< Py_buffer, Py_buffer_deleter > | Py_buffer_up |
Enumerations | |
enum | gdbpy_iter_kind { iter_keys , iter_values , iter_items } |
Variables | |
int | gdb_python_initialized |
PyObject * | gdb_module |
PyObject * | gdb_python_module |
gdbpy_breakpoint_object * | bppy_pending_object |
struct cmd_list_element * | set_python_list |
struct cmd_list_element * | show_python_list |
const struct value_print_options * | gdbpy_current_print_options |
PyObject * | gdbpy_doc_cst |
PyObject * | gdbpy_children_cst |
PyObject * | gdbpy_to_string_cst |
PyObject * | gdbpy_display_hint_cst |
PyObject * | gdbpy_enabled_cst |
PyObject * | gdbpy_value_cst |
PyObject * | gdbpy_gdb_error |
PyObject * | gdbpy_gdb_memory_error |
PyObject * | gdbpy_gdberror_exc |
#define BPPY_REQUIRE_VALID | ( | Breakpoint | ) |
Definition at line 322 of file python-internal.h.
#define BPPY_SET_REQUIRE_VALID | ( | Breakpoint | ) |
Definition at line 332 of file python-internal.h.
#define CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION |
Definition at line 51 of file python-internal.h.
#define CPYCHECKER_SETS_EXCEPTION |
Definition at line 44 of file python-internal.h.
#define CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | ARG | ) |
Definition at line 38 of file python-internal.h.
#define GDB_PY_HANDLE_EXCEPTION | ( | Exception | ) |
Definition at line 711 of file python-internal.h.
#define GDB_PY_LL_ARG "L" |
Definition at line 116 of file python-internal.h.
#define GDB_PY_LLU_ARG "K" |
Definition at line 117 of file python-internal.h.
#define gdb_py_long_as_ulongest PyLong_AsUnsignedLong |
Definition at line 120 of file python-internal.h.
#define GDB_PY_SET_HANDLE_EXCEPTION | ( | Exception | ) |
Definition at line 722 of file python-internal.h.
#define GDB_PYSYS_SETPATH_CHAR wchar_t |
Definition at line 188 of file python-internal.h.
#define PY_SSIZE_T_CLEAN |
Definition at line 81 of file python-internal.h.
#define Py_TPFLAGS_CHECKTYPES 0 |
Definition at line 90 of file python-internal.h.
#define PyErr_NewException gdb_PyErr_NewException |
Definition at line 166 of file python-internal.h.
#define PyEval_InitThreads | ( | ) |
Definition at line 98 of file python-internal.h.
#define PyEval_ReleaseLock | ( | ) |
Definition at line 100 of file python-internal.h.
#define PyGILState_Ensure | ( | ) | ((PyGILState_STATE) 0) |
Definition at line 96 of file python-internal.h.
#define PyGILState_Release | ( | ARG | ) | ((void)(ARG)) |
Definition at line 97 of file python-internal.h.
#define PyMem_RawMalloc PyMem_Malloc |
Definition at line 132 of file python-internal.h.
#define PyObject_CallMethod gdb_PyObject_CallMethod |
Definition at line 154 of file python-internal.h.
#define PySys_GetObject gdb_PySys_GetObject |
Definition at line 178 of file python-internal.h.
#define PySys_SetPath gdb_PySys_SetPath |
Definition at line 196 of file python-internal.h.
#define PyThreadState_Swap | ( | ARG | ) | ((void)(ARG)) |
Definition at line 99 of file python-internal.h.
typedef long gdb_py_longest |
Definition at line 118 of file python-internal.h.
typedef unsigned long gdb_py_ulongest |
Definition at line 119 of file python-internal.h.
typedef std::unique_ptr<Py_buffer, Py_buffer_deleter> Py_buffer_up |
Definition at line 827 of file python-internal.h.
typedef long Py_hash_t |
Definition at line 125 of file python-internal.h.
enum gdbpy_iter_kind |
Enumerator | |
---|---|
iter_keys | |
iter_values | |
iter_items |
Definition at line 265 of file python-internal.h.
gdbpy_ref apply_varobj_pretty_printer | ( | PyObject * | print_obj, |
struct value ** | replacement, | ||
struct ui_file * | stream, | ||
const value_print_options * | opts | ||
) |
Definition at line 640 of file py-prettyprint.c.
References gdbpy_current_print_options, pretty_print_one_value(), and print_stack_unless_memory_error().
Referenced by varobj_value_get_print_value().
struct gdbarch * arch_object_to_gdbarch | ( | PyObject * | obj | ) |
Definition at line 69 of file py-arch.c.
References arch_object::gdbarch, and gdbpy_is_architecture().
Referenced by gdbpy_format_address().
const struct block * block_object_to_block | ( | PyObject * | obj | ) |
Definition at line 342 of file py-block.c.
References block_object_type.
Referenced by blpy_is_valid(), frapy_read_var(), gdbpy_lookup_symbol(), gdbpy_lookup_type(), and typy_template_argument().
Definition at line 329 of file py-block.c.
References block_object_type, and set_block().
Referenced by blpy_get_global_block(), blpy_get_static_block(), blpy_get_superblock(), frapy_block(), pspy_block_for_pc(), stpy_global_block(), and stpy_static_block().
void bpfinishpy_post_stop_hook | ( | struct gdbpy_breakpoint_object * | bp_obj | ) |
Definition at line 141 of file py-finishbreakpoint.c.
References gdbpy_breakpoint_object::bp, disable_breakpoint(), disp_del_at_next_stop, breakpoint::disposition, gdbpy_convert_exception(), and gdbpy_print_stack().
Referenced by gdbpy_breakpoint_cond_says_stop().
void bpfinishpy_pre_stop_hook | ( | struct gdbpy_breakpoint_object * | bp_obj | ) |
Definition at line 98 of file py-finishbreakpoint.c.
References finish_breakpoint_object::func_symbol, finish_breakpoint_object::function_value, gdbpy_convert_exception(), gdbpy_print_stack(), get_return_value(), finish_breakpoint_object::return_value, symbol_object_to_symbol(), value_object_to_value(), and value_to_value_object().
Referenced by gdbpy_breakpoint_cond_says_stop().
struct value * convert_value_from_python | ( | PyObject * | obj | ) |
Definition at line 1838 of file py-value.c.
References builtin_type_pybool, builtin_type_pychar, builtin_type_pyfloat, builtin_type_pylong, builtin_type_upylong, gdb_py_object_from_longest(), gdbpy_convert_exception(), gdbpy_is_lazy_string(), gdbpy_is_string(), gdbpy_value_cst, python_string_to_target_string(), gdbpy_err_fetch::restore(), value_copy(), value_cstring(), value_from_host_double(), value_from_longest(), value_from_ulongest(), and value_object_type.
Referenced by extract_value(), fnpy_call(), gdbpy_add_history(), gdbpy_set_convenience_variable(), python_xmethod_worker::invoke(), py_varobj_iter::next(), pretty_print_one_value(), print_children(), valpy_binop_throw(), valpy_call(), valpy_getitem(), valpy_init(), and valpy_richcompare_throw().
PyTypeObject block_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "block_object" | ) |
PyTypeObject breakpoint_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "breakpoint_object" | ) |
PyTypeObject event_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "event_object" | ) |
PyTypeObject frame_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "frame_object" | ) |
PyTypeObject symbol_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "symbol_object" | ) |
PyTypeObject thread_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "thread_object" | ) |
PyTypeObject value_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "value_object" | ) |
gdbpy_ref< thread_object > create_thread_object | ( | struct thread_info * | tp | ) |
Definition at line 40 of file py-infthread.c.
References thread_info::inf, inferior_to_inferior_object(), and thread_object_type.
Referenced by add_thread_object().
PyObject * frame_info_to_frame_object | ( | frame_info_ptr | frame | ) |
Definition at line 346 of file py-frame.c.
References frame_object_type, gdbpy_convert_exception(), get_frame_arch(), get_frame_id(), get_frame_unwind_stop_reason(), get_next_frame(), and get_prev_frame().
Referenced by bootstrap_python_frame_filters(), create_register_changed_event_object(), frapy_newer(), frapy_older(), gdbpy_newest_frame(), and gdbpy_selected_frame().
frame_info_ptr frame_object_to_frame_info | ( | PyObject * | frame_obj | ) |
Definition at line 61 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().
PyObject * gdb_py_generic_dict | ( | PyObject * | self, |
void * | closure | ||
) |
Definition at line 314 of file py-utils.c.
int gdb_py_int_as_long | ( | PyObject * | obj, |
long * | result | ||
) |
Definition at line 301 of file py-utils.c.
Referenced by bppy_set_hit_count(), bppy_set_ignore_count(), bppy_set_task(), bppy_set_thread(), cmdpy_completer(), cmdpy_completer_handle_brkchars(), gdbpy_parse_register_id(), gdbpy_print_insn(), set_parameter_value(), typy_array_1(), and valpy_getitem().
gdbpy_ref gdb_py_object_from_longest | ( | LONGEST | l | ) |
Definition at line 279 of file py-utils.c.
Referenced by archpy_disassemble(), bootstrap_python_frame_filters(), bppy_get_hit_count(), bppy_get_ignore_count(), bppy_get_number(), bppy_get_task(), bppy_get_thread(), bppy_get_type(), btpy_list_count(), btpy_list_index(), connpy_get_connection_num(), convert_field(), convert_value_from_python(), create_exited_event_object(), create_memory_changed_event_object(), create_register_changed_event_object(), disasmpy_info_address(), disasmpy_result_length(), disasmpy_set_memory_error_for_address(), emit_exiting_event(), frapy_level(), frapy_type(), frapy_unwind_stop_reason(), gdbpy_add_history(), gdbpy_create_ptid_object(), gdbpy_parameter_value(), infpy_get_connection_num(), infpy_get_num(), infpy_get_pid(), ltpy_entry_get_line(), ltpy_get_all_source_lines(), pending_framepy_level(), recpy_bt_func_level(), recpy_bt_insn_size(), recpy_element_number(), recpy_gap_number(), recpy_gap_reason_code(), salpy_get_line(), stpy_get_length(), sympy_get_addr_class(), sympy_line(), thpy_get_global_num(), thpy_get_num(), typy_get_code(), typy_get_sizeof(), typy_range(), and valpy_long().
gdbpy_ref gdb_py_object_from_ulongest | ( | ULONGEST | l | ) |
Definition at line 290 of file py-utils.c.
Referenced by archpy_disassemble(), blpy_get_end(), blpy_get_start(), bplocpy_get_address(), bplocpy_get_source_location(), bplocpy_get_thread_groups(), create_inferior_call_event_object(), create_memory_changed_event_object(), frapy_pc(), gdbpy_create_ptid_object(), gdbpy_history_count(), gdbpy_parameter_value(), infpy_search_memory(), ltpy_entry_get_pc(), recpy_bt_insn_pc(), salpy_get_last(), salpy_get_pc(), set_unsigned(), stpy_get_address(), typy_get_alignof(), and valpy_long().
|
inlinestatic |
Definition at line 242 of file python-internal.h.
Referenced by archpy_disassemble(), archpy_integer_type(), archpy_registers(), bpfinishpy_init(), bppy_init(), cmdpy_init(), connpy_send_packet(), disasm_info_init(), disasmpy_builtin_disassemble(), disasmpy_info_read_memory(), disasmpy_result_init(), disasmpy_set_enabled(), execute_gdb_command(), gdbpy_flush(), gdbpy_format_address(), gdbpy_lookup_global_symbol(), gdbpy_lookup_objfile(), gdbpy_lookup_static_symbol(), gdbpy_lookup_static_symbols(), gdbpy_lookup_symbol(), gdbpy_lookup_type(), gdbpy_rbreak(), gdbpy_write(), infpy_read_memory(), infpy_search_memory(), infpy_thread_from_thread_handle(), infpy_write_memory(), micmdpy_init(), objfpy_add_separate_debug_file(), objfpy_lookup_global_symbol(), objfpy_lookup_static_symbol(), register_descriptor_iter_find(), valpy_format_string(), valpy_init(), valpy_lazy_string(), and valpy_string().
|
inlinestatic |
Definition at line 161 of file python-internal.h.
References name, and PyErr_NewException.
int gdb_pymodule_addobject | ( | PyObject * | module, |
const char * | name, | ||
PyObject * | object | ||
) |
Definition at line 331 of file py-utils.c.
References name.
Referenced by add_new_registry(), do_initialize(), do_start_initialization(), gdbpy_initialize_arch(), gdbpy_initialize_blocks(), gdbpy_initialize_breakpoint_locations(), gdbpy_initialize_breakpoints(), gdbpy_initialize_commands(), gdbpy_initialize_connection(), gdbpy_initialize_disasm(), gdbpy_initialize_event_generic(), gdbpy_initialize_eventregistry(), gdbpy_initialize_finishbreakpoints(), gdbpy_initialize_frames(), gdbpy_initialize_functions(), gdbpy_initialize_inferior(), gdbpy_initialize_linetable(), gdbpy_initialize_membuf(), gdbpy_initialize_micommands(), gdbpy_initialize_objfile(), gdbpy_initialize_parameters(), gdbpy_initialize_pspace(), gdbpy_initialize_registers(), gdbpy_initialize_symbols(), gdbpy_initialize_symtabs(), gdbpy_initialize_thread(), gdbpy_initialize_types(), gdbpy_initialize_unwind(), and gdbpy_initialize_values().
|
inlinestatic |
Definition at line 144 of file python-internal.h.
References PyObject_CallMethod.
|
inlinestatic |
Definition at line 173 of file python-internal.h.
References name, and PySys_GetObject.
|
inlinestatic |
Definition at line 191 of file python-internal.h.
References GDB_PYSYS_SETPATH_CHAR, and PySys_SetPath.
PyObject * gdbarch_to_arch_object | ( | struct gdbarch * | gdbarch | ) |
Definition at line 90 of file py-arch.c.
References arch_object_data, arch_object_data_init(), registry< T >::get(), and registry< T >::set().
Referenced by disasmpy_info_architecture(), frapy_arch(), gdbpy_colorize_disasm(), infpy_architecture(), and pending_framepy_architecture().
PyObject * gdbpy_add_history | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 1947 of file py-value.c.
References convert_value_from_python(), GDB_PY_HANDLE_EXCEPTION, gdb_py_object_from_longest(), and record_latest_value().
PyObject * gdbpy_all_architecture_names | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 326 of file py-arch.c.
References gdbarch_printable_names(), and name.
enum ext_lang_bt_status gdbpy_apply_frame_filter | ( | const struct extension_language_defn * | extlang, |
frame_info_ptr | frame, | ||
frame_filter_flags | flags, | ||
enum ext_lang_frame_args | args_type, | ||
struct ui_out * | out, | ||
int | frame_low, | ||
int | frame_high | ||
) |
Definition at line 1135 of file py-framefilter.c.
References bootstrap_python_frame_filters(), EXT_LANG_BT_ERROR, EXT_LANG_BT_NO_FILTERS, flags, gdb_printf(), gdb_python_initialized, gdbpy_convert_exception(), gdbpy_print_stack_or_quit(), get_frame_arch(), PRINT_MORE_FRAMES, and py_print_frame().
enum ext_lang_rc gdbpy_apply_val_pretty_printer | ( | const struct extension_language_defn * | extlang, |
struct value * | value, | ||
struct ui_file * | stream, | ||
int | recurse, | ||
const struct value_print_options * | options, | ||
const struct language_defn * | language | ||
) |
Definition at line 571 of file py-prettyprint.c.
References type::arch(), EXT_LANG_RC_ERROR, EXT_LANG_RC_NOP, EXT_LANG_RC_OK, find_pretty_printer(), gdb_python_initialized, gdbpy_current_print_options, gdbpy_get_display_hint(), type::length(), print_children(), print_stack_unless_memory_error(), print_string_repr(), string_repr_error, string_repr_none, value_bytes_available(), value_fetch_lazy(), value_lazy(), value_to_value_object_no_release(), and value_type().
bool gdbpy_auto_load_enabled | ( | const struct extension_language_defn * | extlang | ) |
Definition at line 46 of file py-auto-load.c.
References auto_load_python_scripts.
enum ext_lang_bp_stop gdbpy_breakpoint_cond_says_stop | ( | const struct extension_language_defn * | extlang, |
struct breakpoint * | b | ||
) |
Definition at line 1037 of file py-breakpoint.c.
References bpfinishpy_post_stop_hook(), bpfinishpy_pre_stop_hook(), EXT_LANG_BP_STOP_NO, EXT_LANG_BP_STOP_UNSET, EXT_LANG_BP_STOP_YES, breakpoint::gdbarch, gdbpy_print_stack(), gdbpy_breakpoint_object::is_finish_bp, breakpoint::py_bp_object, PyObject_CallMethod, and stop_func.
int gdbpy_breakpoint_has_cond | ( | const struct extension_language_defn * | extlang, |
struct breakpoint * | b | ||
) |
Definition at line 1088 of file py-breakpoint.c.
References breakpoint::gdbarch, breakpoint::py_bp_object, and stop_func.
bool gdbpy_breakpoint_init_breakpoint_type | ( | ) |
Definition at line 993 of file py-breakpoint.c.
References breakpoint_object_type.
Referenced by gdbpy_initialize_breakpoints(), and gdbpy_initialize_finishbreakpoints().
PyObject * gdbpy_breakpoints | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 1013 of file py-breakpoint.c.
References all_breakpoints(), bp, bppy_live, and build_bp_list().
PyObject * gdbpy_buffer_to_membuf | ( | gdb::unique_xmalloc_ptr< gdb_byte > | buffer, |
CORE_ADDR | address, | ||
ULONGEST | length | ||
) |
Definition at line 44 of file py-membuf.c.
References membuf_object_type.
Referenced by disasmpy_info_read_memory(), and infpy_read_memory().
PyObject * gdbpy_connections | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 115 of file py-connection.c.
References all_non_exited_process_targets(), and target_to_connection_object().
PyObject * gdbpy_convenience_variable | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 1981 of file py-value.c.
References code, GDB_PY_HANDLE_EXCEPTION, gdbpy_enter::get_gdbarch(), lookup_only_internalvar(), value_of_internalvar(), value_to_value_object(), and value_type().
void gdbpy_convert_exception | ( | const struct gdb_exception & | exception | ) |
Definition at line 216 of file py-utils.c.
References gdbpy_gdb_error, and gdbpy_gdb_memory_error.
Referenced by archpy_disassemble(), bpfinishpy_detect_out_scope_cb(), bpfinishpy_init(), bpfinishpy_post_stop_hook(), bpfinishpy_pre_stop_hook(), bppy_get_commands(), bppy_init(), cmdpy_init(), connpy_send_packet(), convert_value_from_python(), frame_info_to_frame_object(), frapy_read_var(), gdbpy_apply_frame_filter(), gdbpy_decode_line(), gdbpy_readline_wrapper(), gdbpy_start_recording(), parmpy_init(), pyuw_value_obj_to_pointer(), and recpy_bt_insn_decoded().
PyObject * gdbpy_create_lazy_string_object | ( | CORE_ADDR | address, |
long | length, | ||
const char * | encoding, | ||
struct type * | type | ||
) |
Definition at line 169 of file py-lazy-string.c.
References lazy_string_object::address, check_typedef(), type::code(), lazy_string_object::encoding, gdbpy_gdb_memory_error, get_array_bounds(), lazy_string_object_type, type::length(), lazy_string_object::length, lazy_string_object::type, and type_to_type_object().
Referenced by valpy_lazy_string().
PyObject * gdbpy_create_ptid_object | ( | ptid_t | ptid | ) |
Definition at line 319 of file py-infthread.c.
References gdb_py_object_from_longest(), gdb_py_object_from_ulongest(), and pid.
Referenced by create_inferior_call_event_object(), and thpy_get_ptid().
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().
PyObject * gdbpy_default_visualizer | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 685 of file py-prettyprint.c.
References find_pretty_printer(), and value_object_to_value().
void gdbpy_error | ( | const char * | fmt, |
... | |||
) |
PyMODINIT_FUNC gdbpy_events_mod_func | ( | ) |
Definition at line 56 of file py-evts.c.
References EventModuleDef, gdb_py_events, and events_object::module.
Referenced by do_start_initialization().
void gdbpy_extract_lazy_string | ( | PyObject * | string, |
CORE_ADDR * | addr, | ||
struct type ** | str_type, | ||
long * | length, | ||
gdb::unique_xmalloc_ptr< char > * | encoding | ||
) |
Definition at line 277 of file py-lazy-string.c.
References lazy_string_object::address, lazy_string_object::encoding, gdbpy_is_lazy_string(), type::length(), lazy_string_object::length, and stpy_lazy_string_elt_type().
Referenced by print_children(), print_string_repr(), and varobj_value_get_print_value().
void gdbpy_finalize_micommands | ( | ) |
Definition at line 618 of file py-micmd.c.
References as_mi_command_py(), and remove_mi_cmd_entries().
Referenced by finalize_python().
gdb::unique_xmalloc_ptr< char > gdbpy_fix_doc_string_indentation | ( | gdb::unique_xmalloc_ptr< char > | doc | ) |
Definition at line 407 of file py-utils.c.
Referenced by cmdpy_init(), and get_doc_string().
PyObject * gdbpy_frame_stop_reason_string | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 665 of file py-frame.c.
References host_charset(), and unwind_stop_reason_to_string().
gdb::unique_xmalloc_ptr< char > gdbpy_get_display_hint | ( | PyObject * | printer | ) |
Definition at line 232 of file py-prettyprint.c.
References gdbpy_display_hint_cst, gdbpy_is_string(), gdbpy_print_stack(), and python_string_to_host_string().
Referenced by gdbpy_apply_val_pretty_printer(), varobj_get_display_hint(), and varobj_value_get_print_value().
enum ext_lang_rc gdbpy_get_matching_xmethod_workers | ( | const struct extension_language_defn * | extlang, |
struct type * | obj_type, | ||
const char * | method_name, | ||
std::vector< xmethod_worker_up > * | dm_vec | ||
) |
Definition at line 118 of file py-xmethods.c.
References current_program_space, EXT_LANG_RC_ERROR, EXT_LANG_RC_OK, gdb_python_module, gdbpy_print_stack(), invoke_match_method(), matchers_attr_str, objfile_to_objfile_object(), program_space::objfiles(), objfpy_get_xmethods(), pspace_to_pspace_object(), pspy_get_xmethods(), and type_to_type_object().
void gdbpy_get_print_options | ( | value_print_options * | opts | ) |
Definition at line 784 of file py-prettyprint.c.
References gdbpy_current_print_options, and get_user_print_options().
Referenced by gdbpy_print_options(), valpy_format_string(), and valpy_str().
Definition at line 662 of file py-prettyprint.c.
References find_pretty_printer(), GDB_PY_HANDLE_EXCEPTION, value_copy(), and value_to_value_object().
Referenced by install_default_visualizer().
void gdbpy_handle_exception | ( | ) |
Definition at line 366 of file py-utils.c.
References gdb_printf(), gdbpy_gdberror_exc, gdbpy_print_stack(), gdbpy_err_fetch::restore(), gdbpy_err_fetch::to_string(), and gdbpy_err_fetch::type_matches().
Referenced by cmdpy_function(), fnpy_call(), get_set_value(), mi_command_py::invoke(), py_object_to_mi_key(), and serialize_mi_result_1().
PyObject * gdbpy_history | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 1924 of file py-value.c.
References access_value_history(), GDB_PY_HANDLE_EXCEPTION, and value_to_value_object().
PyObject * gdbpy_history_count | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 1974 of file py-value.c.
References gdb_py_object_from_ulongest(), and value_history_count().
PyObject * gdbpy_inferiors | ( | PyObject * | unused, |
PyObject * | unused2 | ||
) |
Definition at line 499 of file py-inferior.c.
References all_inferiors(), and inferior_to_inferior_object().
int gdbpy_initialize_arch | ( | void | ) |
Definition at line 348 of file py-arch.c.
References arch_object_type, gdb_module, and gdb_pymodule_addobject().
Referenced by do_start_initialization().
int gdbpy_initialize_auto_load | ( | void | ) |
Definition at line 60 of file py-auto-load.c.
References add_cmd(), add_info(), add_setshow_boolean_cmd(), auto_load_info_cmdlist_get(), auto_load_python_scripts, auto_load_set_cmdlist_get(), auto_load_show_cmdlist_get(), class_info, class_support, deprecate_cmd(), info_auto_load_python_scripts(), set_show_commands::set, setlist, set_show_commands::show, show_auto_load_python_scripts(), and showlist.
Referenced by do_start_initialization().
int gdbpy_initialize_blocks | ( | void | ) |
Definition at line 428 of file py-block.c.
References block_object_type, block_syms_iterator_object_type, gdb_module, and gdb_pymodule_addobject().
Referenced by do_start_initialization().
int gdbpy_initialize_breakpoint_locations | ( | ) |
Definition at line 1273 of file py-breakpoint.c.
References breakpoint_location_object_type, gdb_module, and gdb_pymodule_addobject().
Referenced by do_start_initialization().
int gdbpy_initialize_breakpoints | ( | void | ) |
Definition at line 1233 of file py-breakpoint.c.
References gdb::observers::breakpoint_created, gdb::observers::breakpoint_deleted, gdb::observers::breakpoint_modified, breakpoint_object_type, code, gdb_module, gdb_pymodule_addobject(), gdbpy_breakpoint_created(), gdbpy_breakpoint_deleted(), gdbpy_breakpoint_init_breakpoint_type(), gdbpy_breakpoint_modified(), name, pybp_code::name, pybp_codes, and pybp_watch_types.
Referenced by do_start_initialization().
int gdbpy_initialize_btrace | ( | void | ) |
Definition at line 820 of file py-record-btrace.c.
References btpy_list_contains(), btpy_list_item(), btpy_list_length(), btpy_list_mapping_methods, btpy_list_methods, btpy_list_richcompare(), btpy_list_sequence_methods, btpy_list_slice(), and btpy_list_type.
Referenced by do_start_initialization().
int gdbpy_initialize_commands | ( | void | ) |
Definition at line 555 of file py-cmd.c.
References class_breakpoint, class_files, class_info, class_maintenance, class_obscure, class_run, class_stack, class_support, class_trace, class_tui, class_user, class_vars, cmdpy_object_type, complete_cst, completers, gdb_module, gdb_pymodule_addobject(), invoke_cst, N_COMPLETERS, name, and no_class.
Referenced by do_start_initialization().
int gdbpy_initialize_connection | ( | ) |
Definition at line 289 of file py-connection.c.
References connection_object_type, gdb_module, gdb_pymodule_addobject(), and remote_connection_object_type.
Referenced by do_start_initialization().
int gdbpy_initialize_disasm | ( | ) |
Definition at line 1022 of file py-disasm.c.
References disasm_info_object_type, disasm_result_object_type, gdb_module, gdb_pymodule_addobject(), and python_disassembler_module_def.
Referenced by do_start_initialization().
int gdbpy_initialize_event | ( | void | ) |
Definition at line 58 of file py-event.c.
References event_object_type, and gdbpy_initialize_event_generic().
Referenced by do_start_initialization().
int gdbpy_initialize_eventregistry | ( | void | ) |
Definition at line 106 of file py-evtregistry.c.
References eventregistry_object_type, gdb_module, and gdb_pymodule_addobject().
Referenced by do_start_initialization().
int gdbpy_initialize_finishbreakpoints | ( | void | ) |
Definition at line 404 of file py-finishbreakpoint.c.
References bpfinishpy_handle_exit(), bpfinishpy_handle_stop(), finish_breakpoint_object_type, gdb_module, gdb_pymodule_addobject(), gdbpy_breakpoint_init_breakpoint_type(), gdb::observers::inferior_exit, and gdb::observers::normal_stop.
Referenced by do_start_initialization().
int gdbpy_initialize_frames | ( | void | ) |
Definition at line 717 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 do_start_initialization().
int gdbpy_initialize_functions | ( | void | ) |
Definition at line 138 of file py-function.c.
References fnpy_object_type, gdb_module, and gdb_pymodule_addobject().
Referenced by do_start_initialization().
void gdbpy_initialize_gdb_readline | ( | void | ) |
Definition at line 90 of file py-gdb-readline.c.
References gdbpy_readline_wrapper().
Referenced by do_start_initialization().
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.
Referenced by do_start_initialization().
int gdbpy_initialize_instruction | ( | void | ) |
Definition at line 85 of file py-instruction.c.
References py_insn_get_insn_type().
Referenced by do_start_initialization().
int gdbpy_initialize_lazy_string | ( | void | ) |
Definition at line 233 of file py-lazy-string.c.
References lazy_string_object_type.
Referenced by do_start_initialization().
int gdbpy_initialize_linetable | ( | void | ) |
Definition at line 290 of file py-linetable.c.
References gdb_module, gdb_pymodule_addobject(), linetable_entry_object_type, linetable_object_type, and ltpy_iterator_object_type.
Referenced by do_start_initialization().
int gdbpy_initialize_membuf | ( | ) |
Definition at line 103 of file py-membuf.c.
References gdb_module, gdb_pymodule_addobject(), and membuf_object_type.
Referenced by do_start_initialization().
int gdbpy_initialize_micommands | ( | void | ) |
Definition at line 599 of file py-micmd.c.
References gdb_module, gdb_pymodule_addobject(), invoke_cst, and micmdpy_object_type.
Referenced by do_start_initialization().
int gdbpy_initialize_objfile | ( | void | ) |
Definition at line 708 of file py-objfile.c.
References gdb_module, gdb_pymodule_addobject(), and objfile_object_type.
Referenced by do_start_initialization().
int gdbpy_initialize_parameters | ( | void | ) |
Definition at line 836 of file py-param.c.
References gdb_module, gdb_pymodule_addobject(), name, parm_constants, parmpy_object_type, set_doc_cst, and show_doc_cst.
Referenced by do_start_initialization().
int gdbpy_initialize_pspace | ( | void | ) |
Definition at line 533 of file py-progspace.c.
References gdb_module, gdb_pymodule_addobject(), and pspace_object_type.
Referenced by do_start_initialization().
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().
int gdbpy_initialize_registers | ( | ) |
Definition at line 431 of file py-registers.c.
References gdb_module, gdb_pymodule_addobject(), reggroup_iterator_object_type, reggroup_object_type, register_descriptor_iterator_object_type, and register_descriptor_object_type.
Referenced by do_start_initialization().
int gdbpy_initialize_symbols | ( | void | ) |
Definition at line 615 of file py-symbol.c.
References COMMON_BLOCK_DOMAIN, gdb_module, gdb_pymodule_addobject(), LABEL_DOMAIN, LOC_ARG, LOC_BLOCK, LOC_COMMON_BLOCK, LOC_COMPUTED, LOC_CONST, LOC_CONST_BYTES, LOC_LABEL, LOC_LOCAL, LOC_OPTIMIZED_OUT, LOC_REF_ARG, LOC_REGISTER, LOC_REGPARM_ADDR, LOC_STATIC, LOC_TYPEDEF, LOC_UNDEF, LOC_UNRESOLVED, MODULE_DOMAIN, STRUCT_DOMAIN, symbol_object_type, UNDEF_DOMAIN, and VAR_DOMAIN.
Referenced by do_start_initialization().
int gdbpy_initialize_symtabs | ( | void | ) |
Definition at line 513 of file py-symtab.c.
References gdb_module, gdb_pymodule_addobject(), sal_object_type, and symtab_object_type.
Referenced by do_start_initialization().
int gdbpy_initialize_thread | ( | void | ) |
Definition at line 365 of file py-infthread.c.
References gdb_module, gdb_pymodule_addobject(), and thread_object_type.
Referenced by do_start_initialization().
int gdbpy_initialize_tui | ( | ) |
Definition at line 565 of file py-tui.c.
Referenced by do_start_initialization().
int gdbpy_initialize_types | ( | void | ) |
Definition at line 1446 of file py-type.c.
References field_object_type, gdb_module, gdb_pymodule_addobject(), pyty_codes, type_iterator_object_type, and type_object_type.
Referenced by do_start_initialization().
int gdbpy_initialize_unwind | ( | void | ) |
Definition at line 702 of file py-unwind.c.
References gdb::observers::architecture_changed, gdb_module, gdb_pymodule_addobject(), pending_frame_object_type, pyuw_on_new_gdbarch(), and unwind_info_object_type.
Referenced by do_start_initialization().
int gdbpy_initialize_values | ( | void | ) |
Definition at line 2063 of file py-value.c.
References gdb_module, gdb_pymodule_addobject(), and value_object_type.
Referenced by do_start_initialization().
int gdbpy_initialize_xmethods | ( | void | ) |
Definition at line 602 of file py-xmethods.c.
References get_arg_types_method_name, match_method_name, py_get_arg_types_method_name, and py_match_method_name.
Referenced by do_start_initialization().
bool gdbpy_is_architecture | ( | PyObject * | obj | ) |
Definition at line 80 of file py-arch.c.
References arch_object_type.
Referenced by arch_object_to_gdbarch(), and gdbpy_format_address().
int gdbpy_is_field | ( | PyObject * | obj | ) |
Definition at line 126 of file py-type.c.
References field_object_type.
Referenced by valpy_getitem().
int gdbpy_is_lazy_string | ( | PyObject * | result | ) |
Definition at line 245 of file py-lazy-string.c.
References lazy_string_object_type.
Referenced by convert_value_from_python(), gdbpy_extract_lazy_string(), pretty_print_one_value(), print_children(), print_string_repr(), and varobj_value_get_print_value().
bool gdbpy_is_progspace | ( | PyObject * | obj | ) |
Definition at line 527 of file py-progspace.c.
References pspace_object_type.
Referenced by gdbpy_format_address(), and progspace_object_to_program_space().
int gdbpy_is_string | ( | PyObject * | obj | ) |
Definition at line 163 of file py-utils.c.
Referenced by call_doc_function(), cmdpy_completer(), cmdpy_init(), compute_enum_values(), convert_value_from_python(), extract_sym(), fnpy_init(), frapy_read_var(), gdbpy_get_display_hint(), gdbpy_parse_register_id(), gdbpy_print_insn(), get_doc_string(), pretty_print_one_value(), print_children(), py_print_frame(), set_parameter_value(), thpy_set_name(), and valpy_getitem().
int gdbpy_is_value_object | ( | PyObject * | obj | ) |
Definition at line 2057 of file py-value.c.
References value_object_type.
Referenced by get_addr_from_python(), and infpy_thread_from_thread_handle().
PyObject * gdbpy_lookup_global_symbol | ( | PyObject * | self, |
PyObject * | args, | ||
PyObject * | kw | ||
) |
Definition at line 454 of file py-symbol.c.
References symbol::domain(), GDB_PY_HANDLE_EXCEPTION, gdb_PyArg_ParseTupleAndKeywords(), lookup_global_symbol(), name, block_symbol::symbol, symbol_to_symbol_object(), and VAR_DOMAIN.
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, if(), 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().
PyObject * gdbpy_lookup_static_symbol | ( | PyObject * | self, |
PyObject * | args, | ||
PyObject * | kw | ||
) |
Definition at line 494 of file py-symbol.c.
References symbol::domain(), GDB_PY_HANDLE_EXCEPTION, gdb_PyArg_ParseTupleAndKeywords(), get_frame_block(), get_selected_frame(), lookup_static_symbol(), lookup_symbol_in_static_block(), name, selected_frame, block_symbol::symbol, symbol_to_symbol_object(), and VAR_DOMAIN.
PyObject * gdbpy_lookup_static_symbols | ( | PyObject * | self, |
PyObject * | args, | ||
PyObject * | kw | ||
) |
Definition at line 559 of file py-symbol.c.
References ALL_DOMAIN, objfile::compunits(), current_program_space, expand_symtabs_matching(), FULL, GDB_PY_HANDLE_EXCEPTION, gdb_PyArg_ParseTupleAndKeywords(), lookup_symbol_in_static_block(), name, program_space::objfiles(), SEARCH_GLOBAL_BLOCK, SEARCH_STATIC_BLOCK, blockvector::static_block(), block_symbol::symbol, symbol_to_symbol_object(), and VAR_DOMAIN.
PyObject * gdbpy_lookup_symbol | ( | PyObject * | self, |
PyObject * | args, | ||
PyObject * | kw | ||
) |
Definition at line 385 of file py-symbol.c.
References block_object_to_block(), block_object_type, symbol::domain(), GDB_PY_HANDLE_EXCEPTION, gdb_PyArg_ParseTupleAndKeywords(), get_frame_block(), get_selected_frame(), lookup_symbol(), name, selected_frame, block_symbol::symbol, symbol_to_symbol_object(), field_of_this_result::type, and VAR_DOMAIN.
PyObject * gdbpy_lookup_type | ( | PyObject * | self, |
PyObject * | args, | ||
PyObject * | kw | ||
) |
Definition at line 1415 of file py-type.c.
References block_object_to_block(), gdb_PyArg_ParseTupleAndKeywords(), type_to_type_object(), and typy_lookup_typename().
PyObject * gdbpy_new_reggroup_iterator | ( | struct gdbarch * | gdbarch | ) |
Definition at line 239 of file py-registers.c.
References reggroup_iterator_object::gdbarch, reggroup_iterator_object::index, and reggroup_iterator_object_type.
Referenced by archpy_register_groups().
PyObject * gdbpy_new_register_descriptor_iterator | ( | struct gdbarch * | gdbarch, |
const char * | group_name | ||
) |
Definition at line 263 of file py-registers.c.
References all_reggroup, register_descriptor_iterator_object::gdbarch, register_descriptor_iterator_object::reggroup, reggroup_find(), register_descriptor_iterator_object_type, and register_descriptor_iterator_object::regnum.
Referenced by archpy_registers().
PyObject * gdbpy_newest_frame | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 625 of file py-frame.c.
References frame_info_to_frame_object(), GDB_PY_HANDLE_EXCEPTION, and get_current_frame().
gdb::unique_xmalloc_ptr< char > gdbpy_obj_to_string | ( | PyObject * | obj | ) |
Definition at line 172 of file py-utils.c.
References python_string_to_host_string().
Referenced by gdbpy_parse_register_id(), gdbpy_print_insn(), serialize_mi_result_1(), gdbpy_err_fetch::to_string(), and gdbpy_err_fetch::type_to_string().
PyObject * gdbpy_parameter_value | ( | const setting & | var | ) |
Definition at line 468 of file python.c.
References AUTO_BOOLEAN_FALSE, AUTO_BOOLEAN_TRUE, gdb_py_object_from_longest(), gdb_py_object_from_ulongest(), setting::get(), host_string_to_python_string(), INT_MAX, setting::type(), UINT_MAX, var_auto_boolean, var_boolean, var_enum, var_filename, var_integer, var_optional_filename, var_string, var_string_noescape, var_uinteger, var_zinteger, var_zuinteger, and var_zuinteger_unlimited.
Referenced by gdbpy_parameter(), and get_attr().
gdb::unique_xmalloc_ptr< char > gdbpy_parse_command_name | ( | const char * | name, |
struct cmd_list_element *** | base_list, | ||
struct cmd_list_element ** | start_list | ||
) |
Definition at line 347 of file py-cmd.c.
References CMD_LIST_AMBIGUOUS, cmd_list_element::is_prefix(), lookup_cmd_1(), name, cmd_list_element::subcommands, valid_cmd_char_p(), and xmalloc().
Referenced by cmdpy_init(), and parmpy_init().
bool gdbpy_parse_register_id | ( | struct gdbarch * | gdbarch, |
PyObject * | pyo_reg_id, | ||
int * | reg_num | ||
) |
Definition at line 370 of file py-registers.c.
References gdb_py_int_as_long(), register_descriptor_object::gdbarch, gdbpy_is_string(), gdbpy_obj_to_string(), register_descriptor_object_type, register_descriptor_object::regnum, user_reg_map_name_to_regnum(), and user_reg_map_regnum_to_name().
Referenced by frapy_read_register(), pending_framepy_read_register(), and unwind_infopy_add_saved_register().
void gdbpy_preserve_values | ( | const struct extension_language_defn * | extlang, |
struct objfile * | objfile, | ||
htab_t | copied_types | ||
) |
Definition at line 225 of file py-value.c.
References value_object::next, preserve_one_value(), value_object::value, and values_in_python.
gdb::optional< int > gdbpy_print_insn | ( | struct gdbarch * | gdbarch, |
CORE_ADDR | address, | ||
disassemble_info * | info | ||
) |
Definition at line 755 of file py-disasm.c.
References disasm_info_object::address, current_language, disasm_result_object_type, err, gdb_py_int_as_long(), gdb_python_initialized, gdbarch_max_insn_length(), gdbarch_max_insn_length_p(), gdbpy_gdb_memory_error, gdbpy_gdberror_exc, gdbpy_is_string(), gdbpy_obj_to_string(), gdbpy_print_stack(), get(), scoped_disasm_info_object::get(), get_addr_from_python(), get_current_arch(), INT_MAX, and python_print_insn_enabled.
PyObject * gdbpy_print_options | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 725 of file py-prettyprint.c.
References gdbpy_get_print_options(), host_string_to_python_string(), set_boolean(), and set_unsigned().
int gdbpy_print_python_errors_p | ( | void | ) |
Definition at line 1474 of file python.c.
References gdbpy_should_print_stack, and python_excp_none.
Referenced by print_children().
void gdbpy_print_stack | ( | void | ) |
Definition at line 1484 of file python.c.
References begin_line(), gdb_printf(), gdb_stderr, gdbpy_should_print_stack, python_excp_full, python_excp_none, gdbpy_err_fetch::to_string(), and gdbpy_err_fetch::type_to_string().
Referenced by add_thread_object(), bpfinishpy_detect_out_scope_cb(), bpfinishpy_out_of_scope(), bpfinishpy_post_stop_hook(), bpfinishpy_pre_stop_hook(), cmdpy_function(), connpy_connection_removed(), construct_visualizer(), python_xmethod_worker::do_get_arg_types(), python_xmethod_worker::do_get_result_type(), do_initialize(), evpy_emit_event(), fnpy_call(), gdbpy_apply_type_printers(), gdbpy_before_prompt_hook(), gdbpy_breakpoint_cond_says_stop(), gdbpy_breakpoint_created(), gdbpy_breakpoint_deleted(), gdbpy_breakpoint_modified(), gdbpy_colorize(), gdbpy_colorize_disasm(), gdbpy_gdb_exiting(), gdbpy_get_display_hint(), gdbpy_get_matching_xmethod_workers(), gdbpy_handle_exception(), gdbpy_initialize(), gdbpy_print_insn(), gdbpy_print_stack_or_quit(), gdbpy_rbreak(), gdbpy_start_type_printers(), get_doc_string(), get_set_value(), get_show_value(), install_default_visualizer(), python_xmethod_worker::invoke(), py_varobj_iter::next(), gdbpy_event::operator()(), print_children(), print_stack_unless_memory_error(), py_varobj_get_iterator(), python_free_objfile(), python_inferior_deleted(), python_inferior_exit(), python_interactive_command(), 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(), pyuw_sniffer(), varobj_set_visualizer(), varobj_value_get_print_value(), and gdbpy_enter::~gdbpy_enter().
void gdbpy_print_stack_or_quit | ( | ) |
Definition at line 1544 of file python.c.
References gdbpy_print_stack().
Referenced by gdbpy_apply_frame_filter(), and pyuw_sniffer().
PyObject * gdbpy_register_tui_window | ( | PyObject * | self, |
PyObject * | args, | ||
PyObject * | kw | ||
) |
PyObject * gdbpy_selected_frame | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 645 of file py-frame.c.
References frame_info_to_frame_object(), GDB_PY_HANDLE_EXCEPTION, and get_selected_frame().
PyObject * gdbpy_selected_inferior | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 799 of file py-inferior.c.
References current_inferior(), and inferior_to_inferior_object().
PyObject * gdbpy_selected_thread | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 356 of file py-infthread.c.
References inferior_ptid, inferior_thread(), and thread_to_thread_object().
PyObject * gdbpy_set_convenience_variable | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 2013 of file py-value.c.
References clear_internalvar(), convert_value_from_python(), GDB_PY_HANDLE_EXCEPTION, lookup_internalvar(), lookup_only_internalvar(), and set_internalvar().
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().
PyObject * gdbpy_string_to_argv | ( | PyObject * | self, |
PyObject * | args | ||
) |
int get_addr_from_python | ( | PyObject * | obj, |
CORE_ADDR * | addr | ||
) |
Definition at line 236 of file py-utils.c.
References gdb_py_long_as_ulongest, GDB_PY_SET_HANDLE_EXCEPTION, gdbpy_is_value_object(), value_as_address(), and value_object_to_value().
Referenced by archpy_disassemble(), gdbpy_format_address(), gdbpy_print_insn(), infpy_read_memory(), infpy_search_memory(), infpy_write_memory(), pspy_block_for_pc(), pspy_find_pc_line(), pspy_solib_name(), and py_print_frame().
gdbpy_ref host_string_to_python_string | ( | const char * | str | ) |
Definition at line 153 of file py-utils.c.
References host_charset().
Referenced by bplocpy_get_fullname(), bplocpy_get_function(), bplocpy_get_source_location(), bppy_get_commands(), bppy_get_condition(), bppy_get_expression(), bppy_get_location(), connpy_get_connection_details(), connpy_get_connection_type(), connpy_get_description(), frapy_language(), gdbpy_current_language(), gdbpy_parameter_value(), gdbpy_print_options(), objfpy_get_build_id(), objfpy_get_filename(), objfpy_get_username(), pspy_get_filename(), pspy_solib_name(), stpy_fullname(), stpy_get_filename(), and stpy_get_producer().
gdbpy_ref< inferior_object > inferior_to_inferior_object | ( | inferior * | inf | ) |
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 686 of file py-objfile.c.
References get(), registry< T >::get(), 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(), stpy_get_objfile(), and typy_get_objfile().
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.
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().
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().
struct program_space * progspace_object_to_program_space | ( | PyObject * | obj | ) |
Definition at line 518 of file py-progspace.c.
References gdbpy_is_progspace().
Referenced by gdbpy_format_address().
gdbpy_ref pspace_to_pspace_object | ( | struct program_space * | pspace | ) |
Definition at line 495 of file py-progspace.c.
References get(), registry< T >::get(), symtab_and_line::pspace, pspace_object_type, pspy_initialize(), pspy_pspace_data_key, and registry< T >::set().
Referenced by create_clear_objfiles_event_object(), disasmpy_info_progspace(), find_pretty_printer_from_progspace(), gdbpy_get_matching_xmethod_workers(), gdbpy_progspaces(), infpy_get_progspace(), and objfpy_get_progspace().
PyObject * pspy_get_frame_filters | ( | PyObject * | o, |
void * | ignore | ||
) |
Definition at line 216 of file py-progspace.c.
References pspace_object::frame_filters.
PyObject * pspy_get_frame_unwinders | ( | PyObject * | o, |
void * | ignore | ||
) |
Definition at line 255 of file py-progspace.c.
References pspace_object::frame_unwinders.
PyObject * pspy_get_printers | ( | PyObject * | o, |
void * | ignore | ||
) |
Definition at line 178 of file py-progspace.c.
References pspace_object::printers.
Referenced by find_pretty_printer_from_progspace().
PyObject * pspy_get_xmethods | ( | PyObject * | o, |
void * | ignore | ||
) |
Definition at line 306 of file py-progspace.c.
References pspace_object::xmethods.
Referenced by gdbpy_get_matching_xmethod_workers().
std::unique_ptr< varobj_iter > py_varobj_get_iterator | ( | struct varobj * | var, |
PyObject * | printer, | ||
const value_print_options * | opts | ||
) |
Definition at line 147 of file py-varobj.c.
References varobj::children, gdbpy_children_cst, gdbpy_current_print_options, and gdbpy_print_stack().
Referenced by varobj_get_iterator().
gdb::unique_xmalloc_ptr< char > python_string_to_host_string | ( | PyObject * | obj | ) |
Definition at line 141 of file py-utils.c.
References host_charset(), python_string_to_unicode(), and unicode_to_encoded_string().
Referenced by blpy_getitem(), bppy_init(), bppy_set_commands(), bppy_set_condition(), call_doc_function(), cmdpy_completer(), cmdpy_init(), compute_enum_values(), extract_sym(), fnpy_init(), gdbpy_apply_type_printers(), gdbpy_before_prompt_hook(), gdbpy_get_display_hint(), gdbpy_obj_to_string(), get_doc_string(), local_setattro(), print_children(), py_print_frame(), pyuw_sniffer(), set_parameter_value(), thpy_set_name(), typy_getitem(), and valpy_getitem().
gdbpy_ref python_string_to_target_python_string | ( | PyObject * | obj | ) |
Definition at line 128 of file py-utils.c.
References python_string_to_unicode(), and unicode_to_target_python_string().
Referenced by print_string_repr().
gdb::unique_xmalloc_ptr< char > python_string_to_target_string | ( | PyObject * | obj | ) |
Definition at line 113 of file py-utils.c.
References python_string_to_unicode(), and unicode_to_target_string().
Referenced by convert_value_from_python(), frapy_read_var(), gdbpy_rbreak(), py_object_to_mi_key(), and varobj_value_get_print_value().
void gdbpy_ref python_string_to_unicode | ( | PyObject * | obj | ) |
Definition at line 37 of file py-utils.c.
Referenced by python_string_to_host_string(), python_string_to_target_python_string(), and python_string_to_target_string().
struct symtab_and_line * sal_object_to_symtab_and_line | ( | PyObject * | obj | ) |
Definition at line 496 of file py-symtab.c.
References sal_object_type.
Referenced by salpy_is_valid().
struct symbol * symbol_object_to_symbol | ( | PyObject * | obj | ) |
Definition at line 354 of file py-symbol.c.
References symbol::symbol(), and symbol_object_type.
Referenced by bpfinishpy_pre_stop_hook(), extract_sym(), frapy_read_var(), and sympy_is_valid().
PyObject * symbol_to_symbol_object | ( | struct symbol * | sym | ) |
Definition at line 341 of file py-symbol.c.
References set_symbol(), and symbol_object_type.
Referenced by blpy_block_syms_iternext(), blpy_get_function(), blpy_getitem(), bpfinishpy_init(), frapy_function(), gdbpy_lookup_global_symbol(), gdbpy_lookup_static_symbol(), gdbpy_lookup_static_symbols(), gdbpy_lookup_symbol(), objfpy_lookup_global_symbol(), objfpy_lookup_static_symbol(), and recpy_bt_func_symbol().
PyObject * symtab_and_line_to_sal_object | ( | struct symtab_and_line | sal | ) |
Definition at line 481 of file py-symtab.c.
References sal_object_type, and set_sal().
Referenced by frapy_find_sal(), gdbpy_decode_line(), pspy_find_pc_line(), and recpy_bt_insn_sal().
struct symtab * symtab_object_to_symtab | ( | PyObject * | obj | ) |
Definition at line 505 of file py-symtab.c.
References symtab_object_type.
Referenced by ltpy_is_valid(), ltpy_iter_is_valid(), salpy_dealloc(), salpy_str(), set_sal(), and stpy_is_valid().
PyObject * symtab_to_linetable_object | ( | PyObject * | symtab | ) |
Definition at line 85 of file py-linetable.c.
References linetable_object_type, and linetable_object::symtab.
Referenced by stpy_get_linetable().
PyObject * symtab_to_symtab_object | ( | struct symtab * | symtab | ) |
Definition at line 467 of file py-symtab.c.
References set_symtab(), and symtab_object_type.
Referenced by set_sal(), and sympy_get_symtab().
gdbpy_ref target_to_connection_object | ( | process_stratum_target * | target | ) |
Definition at line 80 of file py-connection.c.
References all_connection_objects, connection_object_type, is_remote_target(), and remote_connection_object_type.
Referenced by emit_connection_event(), gdbpy_connections(), and infpy_get_connection().
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().
struct type * type_object_to_type | ( | PyObject * | obj | ) |
Definition at line 1404 of file py-type.c.
References type_object_type.
Referenced by python_xmethod_worker::do_get_arg_types(), python_xmethod_worker::do_get_result_type(), get_field_type(), python_xmethod_worker::invoke(), stpy_convert_to_value(), stpy_lazy_string_elt_type(), typy_richcompare(), typy_str(), valpy_do_cast(), valpy_init(), and value_has_field().
PyObject * type_to_type_object | ( | struct type * | type | ) |
Definition at line 1381 of file py-type.c.
References check_typedef(), type::is_stub(), set_type(), and type_object_type.
Referenced by archpy_integer_type(), convert_field(), gdbpy_apply_type_printers(), gdbpy_create_lazy_string_object(), gdbpy_get_matching_xmethod_workers(), gdbpy_lookup_type(), sympy_get_type(), typy_array_1(), typy_const(), typy_fields_items(), typy_legacy_template_argument(), typy_pointer(), typy_reference(), typy_strip_typedefs(), typy_target(), typy_template_argument(), typy_unqualified(), typy_volatile(), valpy_get_dynamic_type(), and valpy_get_type().
gdb::unique_xmalloc_ptr< char > unicode_to_target_string | ( | PyObject * | unicode_str | ) |
Definition at line 90 of file py-utils.c.
References gdbpy_enter::get_gdbarch(), target_charset(), and unicode_to_encoded_string().
Referenced by python_string_to_target_string().
struct value * value_object_to_value | ( | PyObject * | self | ) |
Definition at line 1823 of file py-value.c.
References value_object::value, and value_object_type.
Referenced by bpfinishpy_pre_stop_hook(), gdbpy_default_visualizer(), get_addr_from_python(), infpy_thread_from_thread_handle(), pyuw_sniffer(), pyuw_value_obj_to_pointer(), unwind_infopy_add_saved_register(), and unwind_infopy_str().
PyObject * value_to_value_object | ( | struct value * | v | ) |
Definition at line 1778 of file py-value.c.
References value_object::address, value_object::dynamic_type, value_object::next, note_value(), value_object::prev, release_value(), value_object::type, value_object::value, and value_object_type.
Referenced by bpfinishpy_init(), bpfinishpy_pre_stop_hook(), convert_values_to_python(), python_xmethod_worker::do_get_result_type(), frapy_read_register(), frapy_read_var(), gdbpy_convenience_variable(), gdbpy_get_varobj_pretty_printer(), gdbpy_history(), gdbpy_parse_and_eval(), instantiate_pretty_printer(), python_xmethod_worker::invoke(), pending_framepy_read_register(), stpy_convert_to_value(), sympy_value(), typy_optimized_out(), typy_template_argument(), valpy_binop_throw(), valpy_call(), valpy_const_value(), valpy_dereference(), valpy_do_cast(), valpy_get_address(), valpy_getitem(), valpy_invert(), valpy_negative(), valpy_positive(), valpy_reference_value(), and valpy_referenced_value().
PyObject * value_to_value_object_no_release | ( | struct value * | v | ) |
Definition at line 1800 of file py-value.c.
References value_object::address, value_object::dynamic_type, value_object::next, note_value(), value_object::prev, value_object::type, value_object::value, value_incref(), and value_object_type.
Referenced by gdbpy_apply_val_pretty_printer().
|
extern |
Definition at line 100 of file py-breakpoint.c.
Referenced by bpfinishpy_init(), bppy_init(), and gdbpy_breakpoint_created().
|
extern |
Definition at line 84 of file python.c.
Referenced by do_start_initialization(), gdbpy_initialize_arch(), gdbpy_initialize_blocks(), gdbpy_initialize_breakpoint_locations(), gdbpy_initialize_breakpoints(), gdbpy_initialize_commands(), gdbpy_initialize_connection(), gdbpy_initialize_disasm(), gdbpy_initialize_event_generic(), gdbpy_initialize_eventregistry(), gdbpy_initialize_finishbreakpoints(), gdbpy_initialize_frames(), gdbpy_initialize_functions(), gdbpy_initialize_inferior(), gdbpy_initialize_linetable(), gdbpy_initialize_membuf(), gdbpy_initialize_micommands(), gdbpy_initialize_objfile(), gdbpy_initialize_parameters(), gdbpy_initialize_pspace(), gdbpy_initialize_registers(), gdbpy_initialize_symbols(), gdbpy_initialize_symtabs(), gdbpy_initialize_thread(), gdbpy_initialize_types(), gdbpy_initialize_unwind(), and gdbpy_initialize_values().
|
extern |
Definition at line 80 of file python.c.
Referenced by add_thread_object(), connpy_connection_removed(), delete_thread_object(), do_start_initialization(), dynamic_varobj_has_child_method(), finalize_python(), gdbpy_apply_frame_filter(), gdbpy_apply_type_printers(), gdbpy_apply_val_pretty_printer(), gdbpy_before_prompt_hook(), gdbpy_check_quit_flag(), gdbpy_colorize(), gdbpy_colorize_disasm(), gdbpy_enter::gdbpy_enter(), gdbpy_execute_objfile_script(), gdbpy_free_type_printers(), gdbpy_gdb_exiting(), gdbpy_initialized(), gdbpy_print_insn(), gdbpy_source_objfile_script(), gdbpy_start_type_printers(), install_new_value_visualizer(), py_varobj_iter::next(), infpy_deleter::operator()(), typy_deleter::operator()(), python_free_objfile(), python_inferior_deleted(), python_inferior_exit(), python_new_inferior(), python_new_objfile(), python_on_normal_stop(), python_on_resume(), varobj_get_display_hint(), varobj_set_visualizer(), and varobj_value_get_print_value().
|
extern |
Definition at line 85 of file python.c.
Referenced by do_initialize(), find_pretty_printer_from_gdb(), gdbpy_before_prompt_hook(), gdbpy_get_matching_xmethod_workers(), python_run_simple_file(), and pyuw_sniffer().
|
extern |
Definition at line 89 of file python.c.
Referenced by do_start_initialization(), dynamic_varobj_has_child_method(), print_children(), and py_varobj_get_iterator().
|
extern |
Definition at line 44 of file py-prettyprint.c.
Referenced by apply_varobj_pretty_printer(), gdbpy_apply_val_pretty_printer(), gdbpy_get_print_options(), py_varobj_iter::next(), and py_varobj_get_iterator().
|
extern |
Definition at line 90 of file python.c.
Referenced by do_start_initialization(), and gdbpy_get_display_hint().
|
extern |
Definition at line 91 of file python.c.
Referenced by cmdpy_init(), do_start_initialization(), and get_doc_string().
|
extern |
Definition at line 92 of file python.c.
Referenced by do_start_initialization(), and search_pp_list().
|
extern |
Definition at line 99 of file python.c.
Referenced by btrace_func_from_recpy_func(), btrace_insn_from_recpy_insn(), do_start_initialization(), gdbpy_convert_exception(), and recpy_bt_goto().
|
extern |
Definition at line 102 of file python.c.
Referenced by disasmpy_set_memory_error_for_address(), do_start_initialization(), gdbpy_convert_exception(), gdbpy_create_lazy_string_object(), gdbpy_print_insn(), py_varobj_iter::next(), print_stack_unless_memory_error(), gdbpy_disassembler::read_memory_func(), and stpy_convert_to_value().
|
extern |
Definition at line 96 of file python.c.
Referenced by disasmpy_builtin_disassemble(), do_start_initialization(), gdbpy_handle_exception(), and gdbpy_print_insn().
|
extern |
Definition at line 88 of file python.c.
Referenced by do_start_initialization(), pretty_print_one_value(), and varobj_value_get_print_value().
|
extern |
Definition at line 93 of file python.c.
Referenced by convert_value_from_python(), and do_start_initialization().
|
extern |
|
extern |