GDB (xrefs)
|
#include "defs.h"
#include "top.h"
#include "charset.h"
#include "value.h"
#include "python-internal.h"
Go to the source code of this file.
Definition at line 317 of file py-utils.c.
int gdb_py_int_as_long | ( | PyObject * | obj, |
long * | result ) |
Definition at line 304 of file py-utils.c.
Referenced by bppy_set_hit_count(), bppy_set_ignore_count(), bppy_set_inferior(), bppy_set_task(), bppy_set_thread(), cmdpy_completer(), cmdpy_completer_handle_brkchars(), gdbpy_parse_register_id(), typy_array_1(), and valpy_getitem().
gdbpy_ref gdb_py_object_from_longest | ( | LONGEST | l | ) |
Definition at line 282 of file py-utils.c.
Referenced by archpy_disassemble(), bootstrap_python_frame_filters(), bppy_get_hit_count(), bppy_get_ignore_count(), bppy_get_inferior(), 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_addr_part_address(), disasmpy_info_address(), disasmpy_result_length(), disasmpy_set_memory_error_for_address(), disasmpy_text_part_style(), py_ui_out::do_field_signed(), frapy_level(), frapy_type(), frapy_unwind_stop_reason(), gdbpy_add_history(), gdbpy_create_ptid_object(), 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 293 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(), py_ui_out::do_field_unsigned(), frapy_pc(), gdbpy_create_ptid_object(), gdbpy_history_count(), infpy_search_memory(), ltpy_entry_get_pc(), pending_framepy_pc(), recpy_bt_insn_pc(), salpy_get_last(), salpy_get_pc(), set_unsigned(), stpy_get_address(), typy_get_alignof(), and valpy_long().
Definition at line 334 of file py-utils.c.
References name.
Referenced by add_new_registry(), 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_prettyprint(), 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().
void gdbpy_convert_exception | ( | const struct gdb_exception & | exception | ) |
Definition at line 217 of file py-utils.c.
References gdbpy_gdb_error, gdbpy_gdb_memory_error, and quit_force().
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_execute_mi_command(), gdbpy_readline_wrapper(), gdbpy_start_recording(), parmpy_init(), and recpy_bt_insn_decoded().
void gdbpy_error | ( | const char * | fmt, |
... ) |
Definition at line 348 of file py-utils.c.
Referenced by py_object_to_mi_key(), and serialize_mi_result().
gdb::unique_xmalloc_ptr< char > gdbpy_fix_doc_string_indentation | ( | gdb::unique_xmalloc_ptr< char > | doc | ) |
Definition at line 410 of file py-utils.c.
Referenced by cmdpy_init(), and get_doc_string().
void gdbpy_handle_exception | ( | ) |
Definition at line 369 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(), dap_interp::init(), mi_command_py::invoke(), py_object_to_mi_key(), and serialize_mi_result_1().
int gdbpy_is_string | ( | PyObject * | obj | ) |
Definition at line 164 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(), get_doc_string(), infpy_set_args(), pretty_print_one_value(), print_children(), py_print_frame(), set_parameter_value(), thpy_set_name(), and valpy_getitem().
gdb::unique_xmalloc_ptr< char > gdbpy_obj_to_string | ( | PyObject * | obj | ) |
Definition at line 173 of file py-utils.c.
References python_string_to_host_string().
Referenced by gdbpy_parse_register_id(), serialize_mi_result_1(), gdbpy_err_fetch::to_string(), and gdbpy_err_fetch::type_to_string().
int get_addr_from_python | ( | PyObject * | obj, |
CORE_ADDR * | addr ) |
Definition at line 239 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(), disasmpy_info_make_address_part(), gdbpy_print_insn(), infpy_read_memory(), infpy_search_memory(), infpy_write_memory(), pspy_block_for_pc(), pspy_find_pc_line(), pspy_objfile_for_address(), pspy_solib_name(), py_print_frame(), and pyuw_object_attribute_to_pointer().
gdbpy_ref host_string_to_python_string | ( | const char * | str | ) |
Definition at line 154 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(), py_ui_out::do_field_string(), frapy_language(), gdbpy_print_options(), infpy_get_args(), infpy_get_main_name(), objfpy_get_build_id(), objfpy_get_filename(), objfpy_get_username(), pending_framepy_language(), pspy_get_exec_file(), pspy_get_filename(), pspy_solib_name(), stpy_fullname(), stpy_get_filename(), stpy_get_producer(), and stpy_str().
gdb::unique_xmalloc_ptr< char > python_string_to_host_string | ( | PyObject * | obj | ) |
Definition at line 142 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_execute_mi_command(), gdbpy_get_display_hint(), gdbpy_obj_to_string(), get_doc_string(), infpy_set_args(), local_setattro(), print_children(), py_print_frame(), pyuw_sniffer(), set_parameter_value(), thpy_set_name(), typy_getitem(), and valpy_getitem().
Definition at line 129 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 114 of file py-utils.c.
References python_string_to_unicode(), and unicode_to_target_string().
Referenced by convert_value_from_python(), frapy_read_var(), py_object_to_mi_key(), and varobj_value_get_print_value().
Definition at line 38 of file py-utils.c.
Referenced by python_string_to_host_string(), python_string_to_target_python_string(), and python_string_to_target_string().
|
static |
Definition at line 80 of file py-utils.c.
Referenced by unicode_to_target_python_string().
|
static |
Definition at line 64 of file py-utils.c.
References get().
Referenced by python_string_to_host_string(), and unicode_to_target_string().
Definition at line 103 of file py-utils.c.
References gdbpy_enter::get_gdbarch(), target_charset(), and unicode_to_encoded_python_string().
Referenced by python_string_to_target_python_string().
gdb::unique_xmalloc_ptr< char > unicode_to_target_string | ( | PyObject * | unicode_str | ) |
Definition at line 91 of file py-utils.c.
References gdbpy_enter::get_gdbarch(), target_charset(), and unicode_to_encoded_string().
Referenced by python_string_to_target_string().