GDB (xrefs)
|
#include "extension.h"
#include "extension-priv.h"
#include <Python.h>
#include <frameobject.h>
#include "symtab.h"
#include "command.h"
#include "breakpoint.h"
Go to the source code of this file.
Classes | |
struct | gdbpy_breakpoint_object |
struct | thread_object |
Typedefs | |
typedef long | gdb_py_longest |
typedef unsigned long | gdb_py_ulongest |
typedef long | Py_hash_t |
typedef struct gdbpy_breakpoint_object | gdbpy_breakpoint_object |
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 |
struct gdbarch * | python_gdbarch |
const struct language_defn * | python_language |
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 270 of file python-internal.h.
Referenced by bppy_delete_breakpoint(), bppy_get_commands(), bppy_get_condition(), bppy_get_enabled(), bppy_get_expression(), bppy_get_hit_count(), bppy_get_ignore_count(), bppy_get_location(), bppy_get_number(), bppy_get_silent(), bppy_get_task(), bppy_get_temporary(), bppy_get_thread(), bppy_get_type(), and bppy_get_visibility().
#define BPPY_SET_REQUIRE_VALID | ( | Breakpoint | ) |
Definition at line 280 of file python-internal.h.
Referenced by bppy_init(), bppy_set_condition(), bppy_set_enabled(), bppy_set_hit_count(), bppy_set_ignore_count(), bppy_set_silent(), bppy_set_task(), and bppy_set_thread().
#define CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION |
Definition at line 63 of file python-internal.h.
#define CPYCHECKER_RETURNS_BORROWED_REF |
Definition at line 36 of file python-internal.h.
#define CPYCHECKER_SETS_EXCEPTION |
Definition at line 56 of file python-internal.h.
#define CPYCHECKER_STEALS_REFERENCE_TO_ARG | ( | n | ) |
Definition at line 50 of file python-internal.h.
#define CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | ARG | ) |
Definition at line 43 of file python-internal.h.
#define GDB_PY_HANDLE_EXCEPTION | ( | Exception | ) |
Definition at line 513 of file python-internal.h.
Referenced by bppy_delete_breakpoint(), execute_gdb_command(), frapy_arch(), frapy_block(), frapy_find_sal(), frapy_function(), frapy_is_valid(), frapy_name(), frapy_newer(), frapy_older(), frapy_pc(), frapy_read_register(), frapy_read_var(), frapy_select(), frapy_type(), frapy_unwind_stop_reason(), gdbpy_block_for_pc(), gdbpy_find_pc_line(), gdbpy_get_varobj_pretty_printer(), gdbpy_history(), gdbpy_lookup_global_symbol(), gdbpy_lookup_symbol(), gdbpy_newest_frame(), gdbpy_parameter(), gdbpy_parse_and_eval(), gdbpy_selected_frame(), gdbpy_write(), infpy_read_memory(), infpy_search_memory(), infpy_threads(), infpy_write_memory(), ltpy_get_pcs_for_line(), objfpy_add_separate_debug_file(), objfpy_get_build_id(), pending_framepy_read_register(), pending_framepy_str(), stpy_convert_to_value(), sympy_needs_frame(), sympy_value(), thpy_switch(), typy_array_1(), typy_const(), typy_fields_items(), typy_get_composite(), typy_legacy_template_argument(), typy_lookup_type(), typy_lookup_typename(), typy_pointer(), typy_reference(), typy_richcompare(), typy_str(), typy_strip_typedefs(), typy_template_argument(), typy_unqualified(), typy_volatile(), unwind_infopy_str(), valpy_absolute(), valpy_binop(), valpy_call(), valpy_const_value(), valpy_dereference(), valpy_do_cast(), valpy_fetch_lazy(), valpy_float(), valpy_get_dynamic_type(), valpy_get_is_lazy(), valpy_get_is_optimized_out(), valpy_getitem(), valpy_int(), valpy_invert(), valpy_lazy_string(), valpy_long(), valpy_negative(), valpy_reference_value(), valpy_referenced_value(), valpy_richcompare(), valpy_str(), and valpy_string().
#define GDB_PY_LL_ARG "L" |
Definition at line 161 of file python-internal.h.
Referenced by gdbpy_solib_name(), ltpy_get_pcs_for_line(), ltpy_has_line(), and valpy_lazy_string().
#define GDB_PY_LLU_ARG "K" |
Definition at line 162 of file python-internal.h.
Referenced by archpy_disassemble(), gdbpy_block_for_pc(), and gdbpy_find_pc_line().
#define gdb_py_long_as_ulongest PyLong_AsUnsignedLong |
Definition at line 167 of file python-internal.h.
Referenced by get_addr_from_python().
#define gdb_py_long_from_longest PyLong_FromLong |
Definition at line 165 of file python-internal.h.
Referenced by convert_field(), typy_get_sizeof(), and valpy_long().
#define gdb_py_long_from_ulongest PyLong_FromUnsignedLong |
Definition at line 166 of file python-internal.h.
Referenced by archpy_disassemble(), frapy_pc(), salpy_get_last(), salpy_get_pc(), and stpy_get_address().
#define GDB_PY_SET_HANDLE_EXCEPTION | ( | Exception | ) |
Definition at line 524 of file python-internal.h.
Referenced by bpfinishpy_init(), bppy_set_condition(), bppy_set_enabled(), bppy_set_ignore_count(), bppy_set_task(), get_addr_from_python(), valpy_nonzero(), and value_has_field().
#define Py_DECREF | ( | op | ) | gdb_Py_DECREF (op) |
Definition at line 189 of file python-internal.h.
Referenced by archpy_disassemble(), bootstrap_python_frame_filters(), build_inferior_list(), build_line_table_tuple_from_pcs(), call_doc_function(), cmdpy_completer_helper(), cmdpy_destroyer(), cmdpy_function(), cmdpy_init(), compute_enum_values(), construct_visualizer(), convert_field(), convert_value_from_python(), convert_values_to_python(), create_eventregistry_object(), create_exited_event_object(), create_signal_event_object(), del_objfile_sal(), delete_thread_object(), emit_stop_event(), enumerate_args(), eval_python_command(), evpy_emit_event(), extract_sym(), extract_value(), field_new(), find_pretty_printer(), find_pretty_printer_from_objfiles(), find_thread_object(), fnpy_call(), fnpy_init(), frame_info_to_frame_object(), gdb_Py_DECREF(), gdb_pymodule_addobject(), gdbpy_apply_val_pretty_printer(), gdbpy_before_prompt_hook(), gdbpy_breakpoint_cond_says_stop(), gdbpy_breakpoint_deleted(), gdbpy_breakpoints(), gdbpy_decode_line(), gdbpy_finish_initialization(), gdbpy_free_type_printers(), gdbpy_free_xmethod_worker_data(), gdbpy_get_display_hint(), gdbpy_get_matching_xmethod_workers(), gdbpy_get_varobj_pretty_printer(), gdbpy_get_xmethod_arg_types(), gdbpy_inferiors(), gdbpy_lookup_symbol(), gdbpy_obj_to_string(), gdbpy_objfiles(), gdbpy_progspaces(), gdbpy_run_events(), gdbpy_string_to_argv(), get_field_flag(), get_field_type(), get_py_iter_from_func(), get_show_value(), infpy_read_memory(), install_default_visualizer(), instantiate_pretty_printer(), ltpy_dealloc(), ltpy_get_all_source_lines(), ltpy_iterator_dealloc(), objfile_to_objfile_object(), objfpy_new(), parmpy_init(), pretty_print_one_value(), print_children(), pspace_to_pspace_object(), pspy_new(), push_dummy_python_frame(), py_decref(), py_free_inferior(), py_free_objfile(), py_free_pspace(), py_print_frame(), python_string_to_host_string(), python_string_to_target_python_string(), python_string_to_target_string(), salpy_dealloc(), search_pp_list(), symtab_and_line_to_sal_object(), thpy_dealloc(), typy_fields(), typy_fields_items(), typy_iterator_dealloc(), typy_range(), unicode_to_encoded_string(), unwind_infopy_add_saved_register(), unwind_infopy_dealloc(), valpy_dealloc(), valpy_getitem(), value_has_field(), and VEC().
#define PY_SSIZE_T_CLEAN |
Definition at line 89 of file python-internal.h.
#define Py_TYPE | ( | ob | ) | (((PyObject*)(ob))->ob_type) |
Definition at line 132 of file python-internal.h.
Referenced by evpy_dealloc(), evregpy_dealloc(), field_dealloc(), ltpy_dealloc(), mbpy_dealloc(), objfpy_dealloc(), pspy_dealloc(), salpy_dealloc(), thpy_dealloc(), typy_dealloc(), unwind_infopy_dealloc(), and valpy_dealloc().
#define PyEval_InitThreads | ( | ) |
Definition at line 141 of file python-internal.h.
Referenced by _initialize_python().
#define PyEval_ReleaseLock | ( | ) |
Definition at line 143 of file python-internal.h.
Referenced by _initialize_python().
#define PyGILState_Ensure | ( | ) | ((PyGILState_STATE) 0) |
Definition at line 139 of file python-internal.h.
Referenced by ensure_python_env(), finalize_python(), gdbpy_breakpoint_created(), and gdbpy_breakpoint_deleted().
#define PyGILState_Release | ( | ARG | ) | ((void)(ARG)) |
Definition at line 140 of file python-internal.h.
Referenced by gdbpy_breakpoint_created(), gdbpy_breakpoint_deleted(), and restore_python_env().
#define PyObject_GetAttrString | ( | obj, | |
attr | |||
) | gdb_PyObject_GetAttrString (obj, attr) |
Definition at line 202 of file python-internal.h.
Referenced by bootstrap_python_frame_filters(), find_pretty_printer_from_gdb(), fnpy_call(), fnpy_init(), gdb_PyObject_GetAttrString(), gdbpy_apply_type_printers(), gdbpy_before_prompt_hook(), gdbpy_get_matching_xmethod_workers(), gdbpy_get_xmethod_arg_types(), gdbpy_get_xmethod_result_type(), gdbpy_start_type_printers(), get_field_flag(), get_field_type(), invoke_match_method(), pyuw_object_attribute_to_pointer(), pyuw_sniffer(), valpy_getitem(), and value_has_field().
#define PyObject_HasAttrString | ( | obj, | |
attr | |||
) | gdb_PyObject_HasAttrString (obj, attr) |
Definition at line 215 of file python-internal.h.
Referenced by bpfinishpy_out_of_scope(), extract_value(), find_pretty_printer_from_gdb(), fnpy_init(), gdb_PyObject_HasAttrString(), gdbpy_before_prompt_hook(), gdbpy_breakpoint_cond_says_stop(), gdbpy_breakpoint_has_cond(), gdbpy_get_matching_xmethod_workers(), get_py_iter_from_func(), py_print_frame(), pyuw_object_attribute_to_pointer(), pyuw_sniffer(), and valpy_getitem().
#define PyThreadState_Swap | ( | ARG | ) | ((void)(ARG)) |
Definition at line 142 of file python-internal.h.
Referenced by _initialize_python().
Definition at line 125 of file python-internal.h.
typedef long gdb_py_longest |
Definition at line 163 of file python-internal.h.
typedef unsigned long gdb_py_ulongest |
Definition at line 164 of file python-internal.h.
typedef struct gdbpy_breakpoint_object gdbpy_breakpoint_object |
typedef long Py_hash_t |
Definition at line 172 of file python-internal.h.
enum gdbpy_iter_kind |
Enumerator | |
---|---|
iter_keys | |
iter_values | |
iter_items |
Definition at line 225 of file python-internal.h.
PyObject* apply_varobj_pretty_printer | ( | PyObject * | print_obj, |
struct value ** | replacement, | ||
struct ui_file * | stream | ||
) |
Definition at line 799 of file py-prettyprint.c.
References 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 68 of file py-arch.c.
References arch_object_type_object::gdbarch.
Definition at line 284 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 271 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(), gdbpy_block_for_pc(), stpy_global_block(), and stpy_static_block().
void bpfinishpy_post_stop_hook | ( | struct gdbpy_breakpoint_object * | bp_obj | ) |
Definition at line 138 of file py-finishbreakpoint.c.
References gdbpy_breakpoint_object::bp, CATCH, disable_breakpoint(), disp_del, breakpoint::disposition, END_CATCH, gdb_assert, gdbpy_convert_exception(), gdbpy_print_stack(), RETURN_MASK_ALL, and TRY.
Referenced by gdbpy_breakpoint_cond_says_stop().
void bpfinishpy_pre_stop_hook | ( | struct gdbpy_breakpoint_object * | bp_obj | ) |
Definition at line 92 of file py-finishbreakpoint.c.
References CATCH, END_CATCH, finish_breakpoint_object::function_value, gdb_assert, gdbpy_convert_exception(), gdbpy_print_stack(), get_return_value(), RETURN_MASK_ALL, finish_breakpoint_object::return_type, finish_breakpoint_object::return_value, TRY, type_object_to_type(), value_object_to_value(), value_to_value_object(), and value_type().
Referenced by gdbpy_breakpoint_cond_says_stop().
struct value* convert_value_from_python | ( | PyObject * | obj | ) |
Definition at line 1559 of file py-value.c.
References _, builtin_type_pybool, builtin_type_pychar, builtin_type_pyfloat, builtin_type_pyint, builtin_type_pylong, builtin_type_upylong, CATCH, do_cleanups(), END_CATCH, gdb_assert, gdbpy_is_lazy_string(), gdbpy_is_string(), gdbpy_value_cst, make_cleanup(), Py_DECREF, python_string_to_target_string(), RETURN_MASK_ALL, RETURN_QUIT, TRY, value_copy(), value_cstring(), value_from_double(), value_from_longest(), value_from_ulongest(), value_object_type, and xfree().
Referenced by extract_value(), fnpy_call(), gdbpy_invoke_xmethod(), pretty_print_one_value(), print_children(), py_varobj_iter_next(), valpy_binop(), valpy_call(), valpy_getitem(), valpy_new(), and valpy_richcompare().
PyTypeObject value_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "value_object" | ) |
PyTypeObject block_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "block_object" | ) |
PyTypeObject symbol_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "symbol_object" | ) |
PyTypeObject event_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "event_object" | ) |
PyTypeObject breakpoint_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "breakpoint_object" | ) |
PyTypeObject frame_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "frame_object" | ) |
thread_object* create_thread_object | ( | struct thread_info * | tp | ) |
Definition at line 40 of file py-infthread.c.
References find_inferior_object(), thread_object::inf_obj, thread_info::ptid, ptid_get_pid(), thread_object::thread, and thread_object_type.
Referenced by add_thread_object().
struct cleanup* ensure_python_env | ( | struct gdbarch * | gdbarch, |
const struct language_defn * | language | ||
) |
Definition at line 247 of file python.c.
References _, error(), python_env::error_traceback, python_env::error_type, python_env::error_value, gdb_python_initialized, python_env::gdbarch, python_env::language, make_cleanup(), python_env::previous_active, PyGILState_Ensure, python_gdbarch, python_language, restore_python_env(), set_active_ext_lang(), python_env::state, and xmalloc().
Referenced by add_thread_object(), bpfinishpy_handle_exit(), bpfinishpy_handle_stop(), cmdpy_completer_handle_brkchars(), cmdpy_destroyer(), cmdpy_function(), delete_thread_object(), fnpy_call(), gdbpy_apply_frame_filter(), gdbpy_apply_type_printers(), gdbpy_apply_val_pretty_printer(), gdbpy_before_prompt_hook(), gdbpy_breakpoint_cond_says_stop(), gdbpy_breakpoint_has_cond(), gdbpy_clone_xmethod_worker_data(), gdbpy_eval_from_control_command(), gdbpy_execute_objfile_script(), gdbpy_finish_initialization(), gdbpy_free_type_printers(), gdbpy_free_xmethod_worker_data(), gdbpy_get_matching_xmethod_workers(), gdbpy_get_xmethod_arg_types(), gdbpy_get_xmethod_result_type(), gdbpy_invoke_xmethod(), gdbpy_run_events(), gdbpy_source_objfile_script(), gdbpy_source_script(), gdbpy_start_type_printers(), get_set_value(), get_show_value(), py_free_inferior(), py_free_objfile(), py_free_pspace(), python_command(), python_inferior_exit(), python_interactive_command(), 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(), save_objfile_types(), varobj_ensure_python_env(), and VEC().
PyObject* find_inferior_object | ( | int | pid | ) |
Definition at line 269 of file py-inferior.c.
References find_inferior_pid(), and inferior_to_inferior_object().
Referenced by create_thread_object(), delete_thread_object(), and find_thread_object().
thread_object* find_thread_object | ( | ptid_t | ptid | ) |
Definition at line 280 of file py-inferior.c.
References find_inferior_object(), threadlist_entry::next, pid, thread_info::ptid, ptid_equal(), ptid_get_pid(), Py_DECREF, thread_object::thread, and threadlist_entry::thread_obj.
Referenced by gdbpy_selected_thread(), and get_event_thread().
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 * | frame_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().
|
inlinestatic |
Definition at line 180 of file python-internal.h.
References Py_DECREF.
PyObject* gdb_py_generic_dict | ( | PyObject * | self, |
void * | closure | ||
) |
Definition at line 420 of file py-utils.c.
int gdb_py_int_as_long | ( | PyObject * | , |
long * | |||
) |
Definition at line 407 of file py-utils.c.
Referenced by bppy_set_hit_count(), bppy_set_ignore_count(), bppy_set_task(), bppy_set_thread(), cmdpy_completer_handle_brkchars(), pyuw_parse_register_id(), set_parameter_value(), typy_array_1(), valpy_getitem(), and VEC().
PyObject* gdb_py_object_from_longest | ( | LONGEST | l | ) |
Definition at line 360 of file py-utils.c.
Referenced by ltpy_entry_get_line(), ltpy_entry_get_pc(), ltpy_get_all_source_lines(), and valpy_int().
PyObject* gdb_py_object_from_ulongest | ( | ULONGEST | l | ) |
Definition at line 382 of file py-utils.c.
Referenced by blpy_get_end(), and blpy_get_start().
Definition at line 437 of file py-utils.c.
References Py_DECREF.
Referenced by _initialize_python(), add_new_registry(), gdbpy_finish_initialization(), gdbpy_initialize_arch(), gdbpy_initialize_blocks(), gdbpy_initialize_breakpoints(), gdbpy_initialize_commands(), gdbpy_initialize_event_generic(), gdbpy_initialize_eventregistry(), gdbpy_initialize_finishbreakpoints(), gdbpy_initialize_frames(), gdbpy_initialize_functions(), gdbpy_initialize_inferior(), gdbpy_initialize_linetable(), gdbpy_initialize_objfile(), gdbpy_initialize_parameters(), gdbpy_initialize_pspace(), gdbpy_initialize_py_events(), gdbpy_initialize_symbols(), gdbpy_initialize_symtabs(), gdbpy_initialize_thread(), gdbpy_initialize_types(), gdbpy_initialize_unwind(), and gdbpy_initialize_values().
|
inlinestatic |
Definition at line 196 of file python-internal.h.
References PyObject_GetAttrString.
Definition at line 209 of file python-internal.h.
References PyObject_HasAttrString.
PyObject* gdbarch_to_arch_object | ( | struct gdbarch * | gdbarch | ) |
Definition at line 80 of file py-arch.c.
Referenced by frapy_arch().
enum ext_lang_bt_status gdbpy_apply_frame_filter | ( | const struct extension_language_defn * | , |
struct frame_info * | frame, | ||
int | flags, | ||
enum ext_lang_frame_args | args_type, | ||
struct ui_out * | out, | ||
int | frame_low, | ||
int | frame_high | ||
) |
Definition at line 1515 of file py-framefilter.c.
References bootstrap_python_frame_filters(), CATCH, current_language, do_cleanups(), END_CATCH, ensure_python_env(), error(), EXT_LANG_BT_ERROR, EXT_LANG_BT_NO_FILTERS, gdb_python_initialized, gdbpy_print_stack(), get_frame_arch(), make_cleanup_htab_delete(), make_cleanup_py_decref(), py_print_frame(), RETURN_MASK_ALL, and TRY.
enum ext_lang_rc gdbpy_apply_val_pretty_printer | ( | const struct extension_language_defn * | , |
struct type * | type, | ||
const gdb_byte * | valaddr, | ||
int | embedded_offset, | ||
CORE_ADDR | address, | ||
struct ui_file * | stream, | ||
int | recurse, | ||
const struct value * | val, | ||
const struct value_print_options * | options, | ||
const struct language_defn * | language | ||
) |
Definition at line 704 of file py-prettyprint.c.
References do_cleanups(), ensure_python_env(), EXT_LANG_RC_ERROR, EXT_LANG_RC_NOP, EXT_LANG_RC_OK, find_pretty_printer(), free_current_contents(), gdb_python_initialized, gdbpy_get_display_hint(), get_type_arch(), lval_computed, lval_internalvar, lval_internalvar_component, make_cleanup(), make_cleanup_py_decref(), print_children(), print_stack_unless_memory_error(), print_string_repr(), Py_DECREF, set_value_address(), set_value_component_location(), string_repr_error, string_repr_none, TYPE_LENGTH, value_bytes_available(), value_from_contents_and_address(), VALUE_LVAL, and value_to_value_object().
int gdbpy_auto_load_enabled | ( | const struct extension_language_defn * | ) |
Definition at line 47 of file py-auto-load.c.
References auto_load_python_scripts.
PyObject* gdbpy_block_for_pc | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 371 of file py-block.c.
References _, block_for_pc(), block_to_block_object(), CATCH, COMPUNIT_OBJFILE, END_CATCH, find_pc_compunit_symtab(), GDB_PY_HANDLE_EXCEPTION, GDB_PY_LLU_ARG, RETURN_MASK_ALL, and TRY.
enum ext_lang_bp_stop gdbpy_breakpoint_cond_says_stop | ( | const struct extension_language_defn * | , |
struct breakpoint * | |||
) |
Definition at line 771 of file py-breakpoint.c.
References bpfinishpy_post_stop_hook(), bpfinishpy_pre_stop_hook(), current_language, do_cleanups(), ensure_python_env(), EXT_LANG_BP_STOP_NO, EXT_LANG_BP_STOP_UNSET, EXT_LANG_BP_STOP_YES, breakpoint::gdbarch, gdbpy_print_stack(), get_current_arch(), gdbpy_breakpoint_object::is_finish_bp, breakpoint::py_bp_object, Py_DECREF, PyObject_HasAttrString, and stop_func.
int gdbpy_breakpoint_has_cond | ( | const struct extension_language_defn * | , |
struct breakpoint * | b | ||
) |
Definition at line 828 of file py-breakpoint.c.
References current_language, do_cleanups(), ensure_python_env(), breakpoint::gdbarch, get_current_arch(), breakpoint::py_bp_object, PyObject_HasAttrString, and stop_func.
PyObject* gdbpy_breakpoints | ( | PyObject * | , |
PyObject * | |||
) |
Definition at line 739 of file py-breakpoint.c.
References bppy_live, build_bp_list(), iterate_over_breakpoints(), and Py_DECREF.
void* gdbpy_clone_xmethod_worker_data | ( | const struct extension_language_defn * | extlang, |
void * | data | ||
) |
Definition at line 75 of file py-xmethods.c.
References current_language, do_cleanups(), ensure_python_env(), gdb_assert, get_current_arch(), gdbpy_worker_data::this_type, and gdbpy_worker_data::worker.
void gdbpy_convert_exception | ( | struct gdb_exception | ) |
Definition at line 295 of file py-utils.c.
References gdb_exception::error, gdbpy_gdb_error, gdbpy_gdb_memory_error, MEMORY_ERROR, gdb_exception::message, gdb_exception::reason, and RETURN_QUIT.
Referenced by archpy_disassemble(), bpfinishpy_detect_out_scope_cb(), bpfinishpy_init(), bpfinishpy_post_stop_hook(), bpfinishpy_pre_stop_hook(), bppy_get_commands(), enumerate_args(), enumerate_locals(), frame_info_to_frame_object(), frapy_read_var(), gdbpy_decode_line(), gdbpy_readline_wrapper(), py_print_args(), py_print_frame(), py_print_single_arg(), py_print_type(), py_print_value(), and pyuw_value_obj_to_pointer().
PyObject* gdbpy_create_lazy_string_object | ( | CORE_ADDR | address, |
long | length, | ||
const char * | encoding, | ||
struct type * | type | ||
) |
Definition at line 129 of file py-lazy-string.c.
References _, lazy_string_object::address, value::address, lazy_string_object::encoding, gdbpy_gdb_memory_error, lazy_string_object_type, lazy_string_object::length, lazy_string_object::type, and type.
Referenced by valpy_lazy_string().
PyObject* gdbpy_create_ptid_object | ( | ptid_t | ptid | ) |
Definition at line 232 of file py-infthread.c.
References pid, ptid_get_lwp(), ptid_get_pid(), and ptid_get_tid().
Referenced by create_inferior_call_event_object(), and thpy_get_ptid().
PyObject* gdbpy_default_visualizer | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 848 of file py-prettyprint.c.
References _, find_pretty_printer(), and value_object_to_value().
char* gdbpy_exception_to_string | ( | PyObject * | ptype, |
PyObject * | pvalue | ||
) |
Definition at line 268 of file py-utils.c.
References gdbpy_obj_to_string().
Referenced by cmdpy_function(), fnpy_call(), gdbpy_print_stack(), print_stack_unless_memory_error(), and py_varobj_iter_next().
void gdbpy_extract_lazy_string | ( | PyObject * | string, |
CORE_ADDR * | addr, | ||
struct type ** | str_type, | ||
long * | length, | ||
char ** | encoding | ||
) |
Definition at line 188 of file py-lazy-string.c.
References lazy_string_object::address, lazy_string_object::encoding, gdb_assert, gdbpy_is_lazy_string(), value::lazy, lazy_string_object::length, and lazy_string_object::type.
Referenced by print_children(), print_string_repr(), and varobj_value_get_print_value().
PyObject* gdbpy_frame_stop_reason_string | ( | PyObject * | , |
PyObject * | |||
) |
Definition at line 654 of file py-frame.c.
References _, host_charset(), and unwind_stop_reason_to_string().
void gdbpy_free_xmethod_worker_data | ( | const struct extension_language_defn * | extlang, |
void * | data | ||
) |
Definition at line 54 of file py-xmethods.c.
References current_language, do_cleanups(), ensure_python_env(), gdb_assert, get_current_arch(), Py_DECREF, gdbpy_worker_data::this_type, gdbpy_worker_data::worker, and xfree().
char* gdbpy_get_display_hint | ( | PyObject * | printer | ) |
Definition at line 248 of file py-prettyprint.c.
References gdbpy_display_hint_cst, gdbpy_is_string(), gdbpy_print_stack(), Py_DECREF, 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, | ||
xmethod_worker_vec ** | dm_vec | ||
) |
Definition at line 163 of file py-xmethods.c.
References ALL_OBJFILES, current_language, current_program_space, do_cleanups(), ensure_python_env(), EXT_LANG_RC_ERROR, EXT_LANG_RC_OK, gdb_assert, gdb_python_module, gdbpy_print_stack(), get_current_arch(), invoke_match_method(), make_cleanup_py_decref(), matchers_attr_str, new_python_xmethod_worker(), objfile_to_objfile_object(), objfpy_get_xmethods(), pspace_to_pspace_object(), pspy_get_xmethods(), Py_DECREF, PyObject_GetAttrString, PyObject_HasAttrString, type_to_type_object(), VEC, and VEC_safe_push.
PyObject* gdbpy_get_varobj_pretty_printer | ( | struct value * | value | ) |
Definition at line 819 of file py-prettyprint.c.
References CATCH, END_CATCH, find_pretty_printer(), GDB_PY_HANDLE_EXCEPTION, Py_DECREF, RETURN_MASK_ALL, TRY, value_copy(), and value_to_value_object().
Referenced by install_default_visualizer().
enum ext_lang_rc gdbpy_get_xmethod_arg_types | ( | const struct extension_language_defn * | extlang, |
struct xmethod_worker * | worker, | ||
int * | nargs, | ||
struct type *** | arg_types | ||
) |
Definition at line 378 of file py-xmethods.c.
References _, current_language, xmethod_worker::data, do_cleanups(), ensure_python_env(), EXT_LANG_RC_ERROR, EXT_LANG_RC_OK, gdbpy_print_stack(), get_arg_types_method_name, get_current_arch(), lookup_pointer_type(), make_cleanup_py_decref(), make_cv_type(), Py_DECREF, py_get_arg_types_method_name, PyObject_GetAttrString, gdbpy_worker_data::this_type, type_object_to_type(), gdbpy_worker_data::worker, and xfree().
enum ext_lang_rc gdbpy_get_xmethod_result_type | ( | const struct extension_language_defn * | extlang, |
struct xmethod_worker * | worker, | ||
struct value * | object, | ||
struct value ** | args, | ||
int | nargs, | ||
struct type ** | result_type | ||
) |
Definition at line 510 of file py-xmethods.c.
References _, check_typedef(), current_language, xmethod_worker::data, do_cleanups(), ensure_python_env(), EXT_LANG_RC_ERROR, EXT_LANG_RC_OK, gdbpy_print_stack(), get_current_arch(), get_result_type_method_name, lookup_pointer_type(), lookup_reference_type(), make_cleanup_py_decref(), PyObject_GetAttrString, gdbpy_worker_data::this_type, TYPE_CODE, TYPE_CODE_PTR, TYPE_CODE_REF, type_object_to_type(), types_equal(), value_cast(), value_to_value_object(), value_type(), and gdbpy_worker_data::worker.
PyObject* gdbpy_history | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 1676 of file py-value.c.
References access_value_history(), CATCH, END_CATCH, GDB_PY_HANDLE_EXCEPTION, RETURN_MASK_ALL, TRY, and value_to_value_object().
PyObject* gdbpy_inferiors | ( | PyObject * | unused, |
PyObject * | unused2 | ||
) |
Definition at line 478 of file py-inferior.c.
References build_inferior_list(), iterate_over_inferiors(), and Py_DECREF.
int gdbpy_initialize_arch | ( | void | ) |
Definition at line 261 of file py-arch.c.
References arch_object_data_init(), arch_object_type, gdb_module, gdb_pymodule_addobject(), and gdbarch_data_register_post_init().
Referenced by _initialize_python().
int gdbpy_initialize_auto_load | ( | void | ) |
Definition at line 61 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(), lookup_cmd(), setlist, show_auto_load_python_scripts(), and showlist.
Referenced by _initialize_python().
int gdbpy_initialize_blocks | ( | void | ) |
Definition at line 430 of file py-block.c.
References block_object_type, block_syms_iterator_object_type, blpy_objfile_data_key, del_objfile_blocks(), gdb_module, and gdb_pymodule_addobject().
Referenced by _initialize_python().
int gdbpy_initialize_breakpoint_event | ( | void | ) |
Referenced by _initialize_python().
int gdbpy_initialize_breakpoints | ( | void | ) |
Definition at line 927 of file py-breakpoint.c.
References breakpoint_object_type, code, gdb_module, gdb_pymodule_addobject(), gdbpy_breakpoint_created(), gdbpy_breakpoint_deleted(), pybp_code::name, name, observer_attach_breakpoint_created(), and observer_attach_breakpoint_deleted().
Referenced by _initialize_python().
int gdbpy_initialize_clear_objfiles_event | ( | void | ) |
Referenced by _initialize_python().
int gdbpy_initialize_commands | ( | void | ) |
Definition at line 676 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_user, class_vars, cmdpy_object_type, complete_cst, gdb_module, gdb_pymodule_addobject(), invoke_cst, N_COMPLETERS, name, and no_class.
Referenced by _initialize_python().
int gdbpy_initialize_continue_event | ( | void | ) |
Referenced by _initialize_python().
int gdbpy_initialize_event | ( | void | ) |
Definition at line 64 of file py-event.c.
References event_object_type, and gdbpy_initialize_event_generic().
Referenced by _initialize_python().
int gdbpy_initialize_eventregistry | ( | void | ) |
Definition at line 110 of file py-evtregistry.c.
References eventregistry_object_type, gdb_module, and gdb_pymodule_addobject().
Referenced by _initialize_python().
int gdbpy_initialize_exited_event | ( | void | ) |
Referenced by _initialize_python().
int gdbpy_initialize_finishbreakpoints | ( | void | ) |
Definition at line 424 of file py-finishbreakpoint.c.
References bpfinishpy_handle_exit(), bpfinishpy_handle_stop(), finish_breakpoint_object_type, gdb_module, gdb_pymodule_addobject(), observer_attach_inferior_exit(), and observer_attach_normal_stop().
Referenced by _initialize_python().
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().
int gdbpy_initialize_functions | ( | void | ) |
Definition at line 203 of file py-function.c.
References fnpy_object_type, gdb_module, and gdb_pymodule_addobject().
Referenced by _initialize_python().
void gdbpy_initialize_gdb_readline | ( | void | ) |
Definition at line 88 of file py-gdb-readline.c.
References gdbpy_readline_wrapper().
Referenced by _initialize_python().
int gdbpy_initialize_inferior | ( | void | ) |
Definition at line 872 of file py-inferior.c.
References add_thread_object(), delete_thread_object(), gdb_module, gdb_pymodule_addobject(), inferior_object_type, infpy_inf_data_key, membuf_object_type, observer_attach_inferior_call_post(), observer_attach_inferior_call_pre(), observer_attach_inferior_exit(), observer_attach_memory_changed(), observer_attach_new_objfile(), observer_attach_new_thread(), observer_attach_normal_stop(), observer_attach_register_changed(), observer_attach_target_resumed(), observer_attach_thread_exit(), py_free_inferior(), python_inferior_exit(), 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(), and python_on_resume().
Referenced by _initialize_python().
int gdbpy_initialize_inferior_call_post_event | ( | void | ) |
Referenced by _initialize_python().
int gdbpy_initialize_inferior_call_pre_event | ( | void | ) |
Referenced by _initialize_python().
int gdbpy_initialize_lazy_string | ( | void | ) |
Definition at line 165 of file py-lazy-string.c.
References lazy_string_object_type.
Referenced by _initialize_python().
int gdbpy_initialize_linetable | ( | void | ) |
Definition at line 324 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 _initialize_python().
int gdbpy_initialize_memory_changed_event | ( | void | ) |
Referenced by _initialize_python().
int gdbpy_initialize_new_objfile_event | ( | void | ) |
Referenced by _initialize_python().
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().
int gdbpy_initialize_parameters | ( | void | ) |
Definition at line 754 of file py-param.c.
References gdb_module, gdb_pymodule_addobject(), parm_constant::name, name, parmpy_object_type, set_doc_cst, and show_doc_cst.
Referenced by _initialize_python().
int gdbpy_initialize_pspace | ( | void | ) |
Definition at line 375 of file py-progspace.c.
References gdb_module, gdb_pymodule_addobject(), pspace_object_type, pspy_pspace_data_key, and py_free_pspace().
Referenced by _initialize_python().
int gdbpy_initialize_py_events | ( | void | ) |
Definition at line 56 of file py-evts.c.
References add_new_registry(), events_object::clear_objfiles, events_object::cont, events_object::exited, gdb_module, gdb_py_events, gdb_pymodule_addobject(), events_object::inferior_call, events_object::memory_changed, events_object::module, events_object::new_objfile, events_object::register_changed, and events_object::stop.
Referenced by _initialize_python().
int gdbpy_initialize_register_changed_event | ( | void | ) |
Referenced by _initialize_python().
int gdbpy_initialize_signal_event | ( | void | ) |
Referenced by _initialize_python().
int gdbpy_initialize_stop_event | ( | void | ) |
Referenced by _initialize_python().
int gdbpy_initialize_symbols | ( | void | ) |
Definition at line 497 of file py-symbol.c.
References del_objfile_symbols(), FUNCTIONS_DOMAIN, gdb_module, gdb_pymodule_addobject(), LABEL_DOMAIN, LOC_ARG, LOC_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, STRUCT_DOMAIN, symbol_object_type, sympy_objfile_data_key, TYPES_DOMAIN, UNDEF_DOMAIN, VAR_DOMAIN, and VARIABLES_DOMAIN.
Referenced by _initialize_python().
int gdbpy_initialize_symtabs | ( | void | ) |
Definition at line 521 of file py-symtab.c.
References del_objfile_sal(), del_objfile_symtab(), gdb_module, gdb_pymodule_addobject(), sal_object_type, salpy_objfile_data_key, stpy_objfile_data_key, and symtab_object_type.
Referenced by _initialize_python().
int gdbpy_initialize_thread | ( | void | ) |
Definition at line 272 of file py-infthread.c.
References gdb_module, gdb_pymodule_addobject(), and thread_object_type.
Referenced by _initialize_python().
int gdbpy_initialize_thread_event | ( | void | ) |
Referenced by _initialize_python().
int gdbpy_initialize_types | ( | void | ) |
Definition at line 1436 of file py-type.c.
References code, field_object_type, gdb_module, gdb_pymodule_addobject(), name, pyty_code::name, save_objfile_types(), type_iterator_object_type, type_object_type, and typy_objfile_data_key.
Referenced by _initialize_python().
int gdbpy_initialize_unwind | ( | void | ) |
Definition at line 660 of file py-unwind.c.
References _, add_setshow_zuinteger_cmd(), class_maintenance, gdb_module, gdb_pymodule_addobject(), gdbarch_data_register_post_init(), observer_attach_architecture_changed(), pending_frame_object_type, pyuw_debug, pyuw_gdbarch_data_init(), pyuw_on_new_gdbarch(), setdebuglist, showdebuglist, and unwind_info_object_type.
Referenced by _initialize_python().
int gdbpy_initialize_values | ( | void | ) |
Definition at line 1706 of file py-value.c.
References gdb_module, gdb_pymodule_addobject(), and value_object_type.
Referenced by _initialize_python().
int gdbpy_initialize_xmethods | ( | void | ) |
Definition at line 728 of file py-xmethods.c.
References get_arg_types_method_name, get_result_type_method_name, invoke_method_name, match_method_name, py_get_arg_types_method_name, py_get_result_type_method_name, py_invoke_method_name, and py_match_method_name.
Referenced by _initialize_python().
struct value* gdbpy_invoke_xmethod | ( | const struct extension_language_defn * | extlang, |
struct xmethod_worker * | worker, | ||
struct value * | obj, | ||
struct value ** | args, | ||
int | nargs | ||
) |
Definition at line 610 of file py-xmethods.c.
References _, allocate_value(), check_typedef(), convert_value_from_python(), current_language, xmethod_worker::data, do_cleanups(), ensure_python_env(), error(), gdbpy_print_stack(), get_current_arch(), lookup_pointer_type(), lookup_reference_type(), lookup_typename(), make_cleanup_py_decref(), python_gdbarch, python_language, gdbpy_worker_data::this_type, TYPE_CODE, TYPE_CODE_PTR, TYPE_CODE_REF, type_object_to_type(), types_equal(), value_cast(), value_to_value_object(), value_type(), and gdbpy_worker_data::worker.
int gdbpy_is_field | ( | PyObject * | obj | ) |
Definition at line 151 of file py-type.c.
References field_object_type.
Referenced by valpy_getitem().
int gdbpy_is_lazy_string | ( | PyObject * | result | ) |
Definition at line 177 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().
int gdbpy_is_string | ( | PyObject * | obj | ) |
Definition at line 228 of file py-utils.c.
Referenced by call_doc_function(), cmdpy_init(), compute_enum_values(), convert_value_from_python(), extract_sym(), fnpy_init(), frapy_read_var(), gdbpy_get_display_hint(), get_doc_string(), pretty_print_one_value(), print_children(), py_print_frame(), pyuw_parse_register_id(), set_parameter_value(), thpy_set_name(), valpy_getitem(), and VEC().
int gdbpy_is_value_object | ( | PyObject * | obj | ) |
Definition at line 1700 of file py-value.c.
References value_object_type.
Referenced by get_addr_from_python().
PyObject* gdbpy_lookup_global_symbol | ( | PyObject * | self, |
PyObject * | args, | ||
PyObject * | kw | ||
) |
Definition at line 438 of file py-symbol.c.
References CATCH, END_CATCH, GDB_PY_HANDLE_EXCEPTION, lookup_global_symbol(), name, RETURN_MASK_ALL, symbol_to_symbol_object(), TRY, and VAR_DOMAIN.
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* gdbpy_lookup_symbol | ( | PyObject * | self, |
PyObject * | args, | ||
PyObject * | kw | ||
) |
Definition at line 365 of file py-symbol.c.
References _, block_object_to_block(), block_object_type, CATCH, symbol::domain, END_CATCH, GDB_PY_HANDLE_EXCEPTION, get_frame_block(), get_selected_frame(), lookup_symbol(), name, Py_DECREF, RETURN_MASK_ALL, selected_frame, symbol_to_symbol_object(), TRY, field_of_this_result::type, and VAR_DOMAIN.
PyObject* gdbpy_lookup_type | ( | PyObject * | self, |
PyObject * | args, | ||
PyObject * | kw | ||
) |
Definition at line 1405 of file py-type.c.
References _, block_object_to_block(), type_to_type_object(), and typy_lookup_typename().
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.
char* gdbpy_obj_to_string | ( | PyObject * | obj | ) |
Definition at line 242 of file py-utils.c.
References Py_DECREF, and python_string_to_host_string().
Referenced by gdbpy_exception_to_string(), gdbpy_print_stack(), and pyuw_parse_register_id().
PyObject* gdbpy_parameter | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 566 of file python.c.
References _, CATCH, END_CATCH, exception_none, GDB_PY_HANDLE_EXCEPTION, gdbpy_parameter_value(), lookup_cmd_composition(), cmd_list_element::prefix, RETURN_MASK_ALL, TRY, cmd_list_element::var, cmd_list_element::var_type, and xfree().
PyObject* gdbpy_parameter_value | ( | enum var_types | type, |
void * | var | ||
) |
Definition at line 504 of file python.c.
References _, AUTO_BOOLEAN_FALSE, AUTO_BOOLEAN_TRUE, host_charset(), INT_MAX, UINT_MAX, var_auto_boolean, var_boolean, var_enum, var_filename, var_integer, var_optional_filename, var_string, var_string_noescape, var_uinteger, and var_zinteger.
Referenced by gdbpy_parameter(), and get_attr().
char* gdbpy_parse_command_name | ( | const char * | name, |
struct cmd_list_element *** | base_list, | ||
struct cmd_list_element ** | start_list | ||
) |
Definition at line 428 of file py-cmd.c.
References _, CMD_LIST_AMBIGUOUS, len, lookup_cmd_1(), cmd_list_element::prefixlist, xfree(), and xmalloc().
Referenced by cmdpy_init(), and parmpy_init().
void gdbpy_preserve_values | ( | const struct extension_language_defn * | , |
struct objfile * | objfile, | ||
htab_t | copied_types | ||
) |
Definition at line 162 of file py-value.c.
References value_object::next, preserve_one_value(), and value_object::value.
int gdbpy_print_python_errors_p | ( | void | ) |
Definition at line 1189 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 1199 of file python.c.
References _, begin_line(), CATCH, END_CATCH, fprintf_filtered(), gdb_stderr, gdbpy_exception_to_string(), gdbpy_obj_to_string(), gdbpy_should_print_stack, python_excp_full, python_excp_none, RETURN_MASK_ALL, TRY, and xfree().
Referenced by _initialize_python(), add_thread_object(), bpfinishpy_detect_out_scope_cb(), bpfinishpy_out_of_scope(), bpfinishpy_post_stop_hook(), bpfinishpy_pre_stop_hook(), cmdpy_function(), construct_visualizer(), evpy_emit_event(), fnpy_call(), gdbpy_apply_frame_filter(), gdbpy_apply_type_printers(), gdbpy_before_prompt_hook(), gdbpy_breakpoint_cond_says_stop(), gdbpy_breakpoint_created(), gdbpy_finish_initialization(), gdbpy_get_display_hint(), gdbpy_get_matching_xmethod_workers(), gdbpy_get_xmethod_arg_types(), gdbpy_get_xmethod_result_type(), gdbpy_invoke_xmethod(), gdbpy_start_type_printers(), get_doc_string(), get_set_value(), get_show_value(), install_default_visualizer(), print_children(), print_stack_unless_memory_error(), py_varobj_get_iterator(), py_varobj_iter_next(), python_inferior_exit(), python_interactive_command(), 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(), python_run_simple_file(), pyuw_sniffer(), restore_python_env(), varobj_set_visualizer(), and varobj_value_get_print_value().
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.
PyObject* gdbpy_selected_inferior | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 866 of file py-inferior.c.
References current_inferior(), and inferior_to_inferior_object().
PyObject* gdbpy_selected_thread | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 257 of file py-infthread.c.
References find_thread_object(), and inferior_ptid.
PyObject* gdbpy_string_to_argv | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 786 of file py-cmd.c.
References gdb_buildargv(), and Py_DECREF.
Definition at line 315 of file py-utils.c.
References _, CATCH, END_CATCH, gdb_py_long_as_ulongest, GDB_PY_SET_HANDLE_EXCEPTION, gdbpy_is_value_object(), RETURN_MASK_ALL, TRY, value_as_address(), and value_object_to_value().
Referenced by infpy_read_memory(), infpy_search_memory(), and infpy_write_memory().
PyObject* inferior_to_inferior_object | ( | struct inferior * | inferior | ) |
Definition at line 241 of file py-inferior.c.
References inferior_object::inferior, inferior_object_type, infpy_inf_data_key, inferior_object::nthreads, and inferior_object::threads.
Referenced by build_inferior_list(), create_exited_event_object(), find_inferior_object(), and gdbpy_selected_inferior().
struct cleanup* make_cleanup_py_decref | ( | PyObject * | py | ) |
Definition at line 41 of file py-utils.c.
References make_cleanup(), and py_decref().
Referenced by bootstrap_python_frame_filters(), create_inferior_call_event_object(), create_memory_changed_event_object(), create_register_changed_event_object(), enumerate_locals(), gdbpy_apply_frame_filter(), gdbpy_apply_val_pretty_printer(), gdbpy_before_prompt_hook(), gdbpy_get_matching_xmethod_workers(), gdbpy_get_xmethod_arg_types(), gdbpy_get_xmethod_result_type(), gdbpy_invoke_xmethod(), invoke_match_method(), print_children(), print_stack_unless_memory_error(), print_string_repr(), py_mi_print_variables(), py_print_frame(), py_varobj_get_iterator(), python_run_simple_file(), pyuw_sniffer(), varobj_set_visualizer(), and varobj_value_get_print_value().
struct cleanup* make_cleanup_py_xdecref | ( | PyObject * | py | ) |
Definition at line 63 of file py-utils.c.
References make_cleanup(), and py_xdecref().
Referenced by py_mi_print_variables(), py_print_args(), and py_print_locals().
PyObject* objfile_to_objfile_object | ( | struct 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().
PyObject* objfpy_get_frame_filters | ( | PyObject * | , |
void * | |||
) |
Definition at line 286 of file py-objfile.c.
PyObject* objfpy_get_frame_unwinders | ( | PyObject * | , |
void * | |||
) |
Definition at line 327 of file py-objfile.c.
PyObject* objfpy_get_printers | ( | PyObject * | , |
void * | |||
) |
Definition at line 246 of file py-objfile.c.
Referenced by find_pretty_printer_from_objfiles().
PyObject* objfpy_get_xmethods | ( | PyObject * | , |
void * | |||
) |
Definition at line 380 of file py-objfile.c.
Referenced by gdbpy_get_matching_xmethod_workers().
PyObject* pspace_to_pspace_object | ( | struct program_space * | ) |
Definition at line 350 of file py-progspace.c.
References pspace_object_type, pspy_initialize(), pspy_pspace_data_key, and Py_DECREF.
Referenced by create_clear_objfiles_event_object(), find_pretty_printer_from_progspace(), gdbpy_get_current_progspace(), gdbpy_get_matching_xmethod_workers(), gdbpy_progspaces(), and objfpy_get_progspace().
PyObject* pspy_get_frame_filters | ( | PyObject * | , |
void * | |||
) |
Definition at line 185 of file py-progspace.c.
PyObject* pspy_get_frame_unwinders | ( | PyObject * | , |
void * | |||
) |
Definition at line 226 of file py-progspace.c.
PyObject* pspy_get_printers | ( | PyObject * | , |
void * | |||
) |
Definition at line 145 of file py-progspace.c.
Referenced by find_pretty_printer_from_progspace().
PyObject* pspy_get_xmethods | ( | PyObject * | , |
void * | |||
) |
Definition at line 279 of file py-progspace.c.
Referenced by gdbpy_get_matching_xmethod_workers().
struct varobj_iter* py_varobj_get_iterator | ( | struct varobj * | var, |
PyObject * | printer | ||
) |
Definition at line 168 of file py-varobj.c.
References _, py_varobj_iter::base, do_cleanups(), error(), gdbpy_children_cst, gdbpy_print_stack(), make_cleanup_py_decref(), and varobj_ensure_python_env().
Referenced by varobj_get_iterator().
char* python_string_to_host_string | ( | PyObject * | obj | ) |
Definition at line 210 of file py-utils.c.
References host_charset(), Py_DECREF, python_string_to_unicode(), and unicode_to_encoded_string().
Referenced by bppy_set_condition(), call_doc_function(), 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(), set_parameter_value(), thpy_set_name(), typy_getitem(), valpy_getitem(), and VEC().
PyObject* python_string_to_target_python_string | ( | PyObject * | obj | ) |
Definition at line 191 of file py-utils.c.
References Py_DECREF, python_string_to_unicode(), and unicode_to_target_python_string().
Referenced by print_string_repr().
char* python_string_to_target_string | ( | PyObject * | obj | ) |
Definition at line 171 of file py-utils.c.
References Py_DECREF, python_string_to_unicode(), and unicode_to_target_string().
Referenced by convert_value_from_python(), frapy_read_var(), and varobj_value_get_print_value().
PyObject* python_string_to_unicode | ( | PyObject * | obj | ) |
Definition at line 80 of file py-utils.c.
References _, and host_charset().
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 456 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 332 of file py-symbol.c.
References symbol_object_type.
Referenced by extract_sym(), frapy_read_var(), and sympy_is_valid().
PyObject* symbol_to_symbol_object | ( | struct symbol * | sym | ) |
Definition at line 319 of file py-symbol.c.
References set_symbol(), and symbol_object_type.
Referenced by blpy_block_syms_iternext(), blpy_get_function(), frapy_function(), gdbpy_lookup_global_symbol(), and gdbpy_lookup_symbol().
PyObject* symtab_and_line_to_sal_object | ( | struct symtab_and_line | sal | ) |
Definition at line 435 of file py-symtab.c.
References Py_DECREF, sal_object_type, and set_sal().
Referenced by frapy_find_sal(), gdbpy_decode_line(), and gdbpy_find_pc_line().
struct symtab* symtab_object_to_symtab | ( | PyObject * | obj | ) |
Definition at line 465 of file py-symtab.c.
References symtab_object_type.
Referenced by ltpy_is_valid(), ltpy_iter_is_valid(), 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 421 of file py-symtab.c.
References set_symtab(), and symtab_object_type.
Referenced by set_sal(), and sympy_get_symtab().
struct type* type_object_to_type | ( | PyObject * | obj | ) |
Definition at line 1394 of file py-type.c.
References type_object_type.
Referenced by bpfinishpy_pre_stop_hook(), gdbpy_get_xmethod_arg_types(), gdbpy_get_xmethod_result_type(), gdbpy_invoke_xmethod(), get_field_type(), typy_richcompare(), typy_str(), valpy_do_cast(), and value_has_field().
PyObject* type_to_type_object | ( | struct type * | ) |
Definition at line 1382 of file py-type.c.
References set_type(), and type_object_type.
Referenced by bpfinishpy_init(), convert_field(), gdbpy_apply_type_printers(), gdbpy_get_matching_xmethod_workers(), gdbpy_lookup_type(), stpy_get_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().
char* unicode_to_target_string | ( | PyObject * | unicode_str | ) |
Definition at line 149 of file py-utils.c.
References python_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 1544 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(), 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 1523 of file py-value.c.
References value_object::address, value_object::dynamic_type, note_value(), release_value_or_incref(), value_object::type, value_object::value, and value_object_type.
Referenced by bpfinishpy_init(), bpfinishpy_pre_stop_hook(), convert_values_to_python(), frapy_read_register(), frapy_read_var(), gdbpy_apply_val_pretty_printer(), gdbpy_get_varobj_pretty_printer(), gdbpy_get_xmethod_result_type(), gdbpy_history(), gdbpy_invoke_xmethod(), gdbpy_parse_and_eval(), instantiate_pretty_printer(), pending_framepy_read_register(), stpy_convert_to_value(), sympy_value(), typy_optimized_out(), typy_template_argument(), valpy_binop(), 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().
gdbpy_breakpoint_object* bppy_pending_object |
Definition at line 39 of file py-breakpoint.c.
Referenced by bpfinishpy_init(), and gdbpy_breakpoint_created().
PyObject* gdb_module |
Definition at line 112 of file python.c.
Referenced by _initialize_python(), gdbpy_initialize_arch(), gdbpy_initialize_blocks(), gdbpy_initialize_breakpoints(), gdbpy_initialize_commands(), gdbpy_initialize_event_generic(), gdbpy_initialize_eventregistry(), gdbpy_initialize_finishbreakpoints(), gdbpy_initialize_frames(), gdbpy_initialize_functions(), gdbpy_initialize_inferior(), gdbpy_initialize_linetable(), gdbpy_initialize_objfile(), gdbpy_initialize_parameters(), gdbpy_initialize_pspace(), gdbpy_initialize_py_events(), gdbpy_initialize_symbols(), gdbpy_initialize_symtabs(), gdbpy_initialize_thread(), gdbpy_initialize_types(), gdbpy_initialize_unwind(), and gdbpy_initialize_values().
int gdb_python_initialized |
Definition at line 104 of file python.c.
Referenced by _initialize_python(), add_thread_object(), delete_thread_object(), dynamic_varobj_has_child_method(), ensure_python_env(), gdbpy_apply_frame_filter(), gdbpy_apply_type_printers(), gdbpy_apply_val_pretty_printer(), gdbpy_before_prompt_hook(), gdbpy_execute_objfile_script(), gdbpy_free_type_printers(), gdbpy_initialized(), gdbpy_source_objfile_script(), gdbpy_start_type_printers(), install_new_value_visualizer(), py_free_inferior(), py_varobj_iter_next(), python_inferior_exit(), python_new_objfile(), python_on_normal_stop(), python_on_resume(), save_objfile_types(), varobj_get_display_hint(), varobj_set_visualizer(), and varobj_value_get_print_value().
PyObject* gdb_python_module |
Definition at line 113 of file python.c.
Referenced by find_pretty_printer_from_gdb(), gdbpy_before_prompt_hook(), gdbpy_finish_initialization(), gdbpy_get_matching_xmethod_workers(), and pyuw_sniffer().
PyObject* gdbpy_children_cst |
Definition at line 117 of file python.c.
Referenced by _initialize_python(), dynamic_varobj_has_child_method(), print_children(), and py_varobj_get_iterator().
PyObject* gdbpy_display_hint_cst |
Definition at line 118 of file python.c.
Referenced by _initialize_python(), and gdbpy_get_display_hint().
PyObject* gdbpy_doc_cst |
Definition at line 119 of file python.c.
Referenced by _initialize_python(), cmdpy_init(), and parmpy_init().
PyObject* gdbpy_enabled_cst |
Definition at line 120 of file python.c.
Referenced by _initialize_python(), and search_pp_list().
PyObject* gdbpy_gdb_error |
Definition at line 127 of file python.c.
Referenced by _initialize_python(), and gdbpy_convert_exception().
PyObject* gdbpy_gdb_memory_error |
Definition at line 130 of file python.c.
Referenced by _initialize_python(), gdbpy_convert_exception(), gdbpy_create_lazy_string_object(), print_stack_unless_memory_error(), py_varobj_iter_next(), and stpy_convert_to_value().
PyObject* gdbpy_gdberror_exc |
Definition at line 124 of file python.c.
Referenced by _initialize_python(), cmdpy_function(), and fnpy_call().
PyObject* gdbpy_to_string_cst |
Definition at line 116 of file python.c.
Referenced by _initialize_python(), pretty_print_one_value(), and varobj_value_get_print_value().
PyObject* gdbpy_value_cst |
Definition at line 121 of file python.c.
Referenced by _initialize_python(), and convert_value_from_python().
struct gdbarch* python_gdbarch |
Definition at line 201 of file python.c.
Referenced by add_thread_object(), bpfinishpy_init(), bppy_init(), delete_thread_object(), ensure_python_env(), gdbpy_invoke_xmethod(), mbpy_str(), py_free_inferior(), typy_lookup_typename(), unicode_to_target_python_string(), and unicode_to_target_string().
const struct language_defn* python_language |
Definition at line 202 of file python.c.
Referenced by add_thread_object(), delete_thread_object(), ensure_python_env(), extract_sym(), gdbpy_invoke_xmethod(), py_free_inferior(), typy_lookup_typename(), and valpy_str().
struct cmd_list_element* set_python_list |
struct cmd_list_element* show_python_list |