GDB (xrefs)
|
Go to the source code of this file.
Functions | |
static void | py_decref (void *p) |
struct cleanup * | make_cleanup_py_decref (PyObject *py) |
static void | py_xdecref (void *p) |
struct cleanup * | make_cleanup_py_xdecref (PyObject *py) |
PyObject * | python_string_to_unicode (PyObject *obj) |
static char * | unicode_to_encoded_string (PyObject *unicode_str, const char *charset) |
static PyObject * | unicode_to_encoded_python_string (PyObject *unicode_str, const char *charset) |
char * | unicode_to_target_string (PyObject *unicode_str) |
static PyObject * | unicode_to_target_python_string (PyObject *unicode_str) |
char * | python_string_to_target_string (PyObject *obj) |
PyObject * | python_string_to_target_python_string (PyObject *obj) |
char * | python_string_to_host_string (PyObject *obj) |
int | gdbpy_is_string (PyObject *obj) |
char * | gdbpy_obj_to_string (PyObject *obj) |
char * | gdbpy_exception_to_string (PyObject *ptype, PyObject *pvalue) |
void | gdbpy_convert_exception (struct gdb_exception exception) |
int | get_addr_from_python (PyObject *obj, CORE_ADDR *addr) |
PyObject * | gdb_py_object_from_longest (LONGEST l) |
PyObject * | gdb_py_object_from_ulongest (ULONGEST l) |
int | gdb_py_int_as_long (PyObject *obj, long *result) |
PyObject * | gdb_py_generic_dict (PyObject *self, void *closure) |
int | gdb_pymodule_addobject (PyObject *module, const char *name, PyObject *object) |
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 * | obj, |
long * | result | ||
) |
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().
void gdbpy_convert_exception | ( | struct gdb_exception | 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().
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().
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().
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().
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().
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().
|
static |
Definition at line 30 of file py-utils.c.
References Py_DECREF.
Referenced by make_cleanup_py_decref().
|
static |
Definition at line 51 of file py-utils.c.
Referenced by make_cleanup_py_xdecref().
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().
|
static |
Definition at line 137 of file py-utils.c.
Referenced by unicode_to_target_python_string().
|
static |
Definition at line 111 of file py-utils.c.
References Py_DECREF, and string.
Referenced by python_string_to_host_string(), and unicode_to_target_string().
|
static |
Definition at line 160 of file py-utils.c.
References python_gdbarch, target_charset(), and unicode_to_encoded_python_string().
Referenced by python_string_to_target_python_string().
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().