|
GDB (xrefs)
|
#include "defs.h"#include "value.h"#include "python-internal.h"#include "python.h"#include "charset.h"#include "breakpoint.h"#include "gdbcmd.h"#include "gdbthread.h"#include "observer.h"#include "cli/cli-script.h"#include "ada-lang.h"#include "arch-utils.h"#include "language.h"#include "location.h"#include "py-event.h"#include "linespec.h"Go to the source code of this file.
Classes | |
| struct | pybp_code |
Functions | |
| static PyObject * | bppy_is_valid (PyObject *self, PyObject *args) |
| static PyObject * | bppy_get_enabled (PyObject *self, void *closure) |
| static PyObject * | bppy_get_silent (PyObject *self, void *closure) |
| static int | bppy_set_enabled (PyObject *self, PyObject *newvalue, void *closure) |
| static int | bppy_set_silent (PyObject *self, PyObject *newvalue, void *closure) |
| static int | bppy_set_thread (PyObject *self, PyObject *newvalue, void *closure) |
| static int | bppy_set_task (PyObject *self, PyObject *newvalue, void *closure) |
| static PyObject * | bppy_delete_breakpoint (PyObject *self, PyObject *args) |
| static int | bppy_set_ignore_count (PyObject *self, PyObject *newvalue, void *closure) |
| static int | bppy_set_hit_count (PyObject *self, PyObject *newvalue, void *closure) |
| static PyObject * | bppy_get_location (PyObject *self, void *closure) |
| static PyObject * | bppy_get_expression (PyObject *self, void *closure) |
| static PyObject * | bppy_get_condition (PyObject *self, void *closure) |
| static int | bppy_set_condition (PyObject *self, PyObject *newvalue, void *closure) |
| static PyObject * | bppy_get_commands (PyObject *self, void *closure) |
| static PyObject * | bppy_get_type (PyObject *self, void *closure) |
| static PyObject * | bppy_get_visibility (PyObject *self, void *closure) |
| static PyObject * | bppy_get_temporary (PyObject *self, void *closure) |
| static PyObject * | bppy_get_pending (PyObject *self, void *closure) |
| static PyObject * | bppy_get_number (PyObject *self, void *closure) |
| static PyObject * | bppy_get_thread (PyObject *self, void *closure) |
| static PyObject * | bppy_get_task (PyObject *self, void *closure) |
| static PyObject * | bppy_get_hit_count (PyObject *self, void *closure) |
| static PyObject * | bppy_get_ignore_count (PyObject *self, void *closure) |
| static int | bppy_init_validate_args (const char *spec, char *source, char *function, char *label, char *line, enum bptype type) |
| static int | bppy_init (PyObject *self, PyObject *args, PyObject *kwargs) |
| static int | build_bp_list (struct breakpoint *b, void *arg) |
| PyObject * | gdbpy_breakpoints (PyObject *self, PyObject *args) |
| enum ext_lang_bp_stop | gdbpy_breakpoint_cond_says_stop (const struct extension_language_defn *extlang, struct breakpoint *b) |
| int | gdbpy_breakpoint_has_cond (const struct extension_language_defn *extlang, struct breakpoint *b) |
| static void | gdbpy_breakpoint_created (struct breakpoint *bp) |
| static void | gdbpy_breakpoint_deleted (struct breakpoint *b) |
| static void | gdbpy_breakpoint_modified (struct breakpoint *b) |
| int | gdbpy_initialize_breakpoints (void) |
| static int | local_setattro (PyObject *self, PyObject *name, PyObject *v) |
Variables | |
| static int | bppy_live |
| gdbpy_breakpoint_object * | bppy_pending_object |
| static const char | stop_func [] = "stop" |
| static struct pybp_code | pybp_codes [] |
| static struct pybp_code | pybp_watch_types [] |
| static gdb_PyGetSetDef | breakpoint_object_getset [] |
| static PyMethodDef | breakpoint_object_methods [] |
| PyTypeObject | breakpoint_object_type |
|
static |
Definition at line 287 of file py-breakpoint.c.
References gdbpy_breakpoint_object::bp, BPPY_REQUIRE_VALID, CATCH, delete_breakpoint(), END_CATCH, GDB_PY_HANDLE_EXCEPTION, RETURN_MASK_ALL, and TRY.
|
static |
Definition at line 484 of file py-breakpoint.c.
References gdbpy_breakpoint_object::bp, bp, BPPY_REQUIRE_VALID, breakpoint_commands(), string_file::c_str(), CATCH, breakpoint::commands, current_uiout, END_CATCH, gdbpy_convert_exception(), host_string_to_python_string(), print_command_lines(), RETURN_MASK_ALL, and TRY.
|
static |
Definition at line 424 of file py-breakpoint.c.
References gdbpy_breakpoint_object::bp, BPPY_REQUIRE_VALID, breakpoint::cond_string, and host_string_to_python_string().
|
static |
Definition at line 90 of file py-breakpoint.c.
References gdbpy_breakpoint_object::bp, bp_enabled, BPPY_REQUIRE_VALID, and breakpoint::enable_state.
|
static |
Definition at line 402 of file py-breakpoint.c.
References gdbpy_breakpoint_object::bp, BPPY_REQUIRE_VALID, watchpoint::exp_string, host_string_to_python_string(), if(), and is_watchpoint().
|
static |
Definition at line 615 of file py-breakpoint.c.
References gdbpy_breakpoint_object::bp, BPPY_REQUIRE_VALID, and breakpoint::hit_count.
|
static |
Definition at line 626 of file py-breakpoint.c.
References gdbpy_breakpoint_object::bp, BPPY_REQUIRE_VALID, and breakpoint::ignore_count.
|
static |
Definition at line 384 of file py-breakpoint.c.
References gdbpy_breakpoint_object::bp, bp_breakpoint, BPPY_REQUIRE_VALID, event_location_to_string(), host_string_to_python_string(), breakpoint::location, and breakpoint::type.
|
static |
Definition at line 576 of file py-breakpoint.c.
References BPPY_REQUIRE_VALID, and gdbpy_breakpoint_object::number.
|
static |
Definition at line 560 of file py-breakpoint.c.
References gdbpy_breakpoint_object::bp, BPPY_REQUIRE_VALID, is_watchpoint(), and pending_breakpoint_p().
|
static |
Definition at line 104 of file py-breakpoint.c.
References gdbpy_breakpoint_object::bp, BPPY_REQUIRE_VALID, and breakpoint::silent.
|
static |
Definition at line 601 of file py-breakpoint.c.
References gdbpy_breakpoint_object::bp, BPPY_REQUIRE_VALID, and breakpoint::task.
|
static |
Definition at line 543 of file py-breakpoint.c.
References gdbpy_breakpoint_object::bp, BPPY_REQUIRE_VALID, disp_del, disp_del_at_next_stop, and breakpoint::disposition.
|
static |
Definition at line 587 of file py-breakpoint.c.
References gdbpy_breakpoint_object::bp, BPPY_REQUIRE_VALID, and breakpoint::thread.
|
static |
Definition at line 515 of file py-breakpoint.c.
References gdbpy_breakpoint_object::bp, BPPY_REQUIRE_VALID, and breakpoint::type.
|
static |
Definition at line 527 of file py-breakpoint.c.
References gdbpy_breakpoint_object::bp, BPPY_REQUIRE_VALID, and user_breakpoint_p().
|
static |
Definition at line 693 of file py-breakpoint.c.
References _, AUTO_BOOLEAN_TRUE, awatch_command_wrapper(), bkpt_breakpoint_ops, gdbpy_breakpoint_object::bp, bp_breakpoint, bp_watchpoint, bppy_init_validate_args(), bppy_pending_object, BPPY_SET_REQUIRE_VALID, CATCH, create_breakpoint(), current_language, END_CATCH, error(), FULL, explicit_location::func_name_match_type, explicit_location::function_name, gdb_PyArg_ParseTupleAndKeywords(), hw_access, hw_read, hw_write, initialize_explicit_location(), explicit_location::label_name, explicit_location::line_offset, linespec_parse_line_offset(), breakpoint::location, new_explicit_location(), gdbpy_breakpoint_object::number, python_gdbarch, python_string_to_host_string(), RETURN_MASK_ALL, RETURN_QUIT, rwatch_command_wrapper(), skip_spaces(), explicit_location::source_filename, string_to_event_location(), TRY, type, watch_command_wrapper(), WILD, and xstrprintf().
|
static |
Definition at line 639 of file py-breakpoint.c.
References _, and bp_watchpoint.
Referenced by bppy_init().
|
static |
Definition at line 79 of file py-breakpoint.c.
References gdbpy_breakpoint_object::bp.
|
static |
Definition at line 442 of file py-breakpoint.c.
References _, gdbpy_breakpoint_object::bp, BPPY_SET_REQUIRE_VALID, CATCH, END_CATCH, exception_none, watchpoint::exp, GDB_PY_SET_HANDLE_EXCEPTION, python_string_to_host_string(), RETURN_MASK_ALL, set_breakpoint_condition(), and TRY.
|
static |
Definition at line 116 of file py-breakpoint.c.
References _, gdbpy_breakpoint_object::bp, BPPY_SET_REQUIRE_VALID, CATCH, disable_breakpoint(), enable_breakpoint(), END_CATCH, GDB_PY_SET_HANDLE_EXCEPTION, RETURN_MASK_ALL, and TRY.
|
static |
Definition at line 350 of file py-breakpoint.c.
References _, gdbpy_breakpoint_object::bp, BPPY_SET_REQUIRE_VALID, gdb_py_int_as_long(), and breakpoint::hit_count.
|
static |
Definition at line 309 of file py-breakpoint.c.
References _, BPPY_SET_REQUIRE_VALID, CATCH, END_CATCH, gdb_py_int_as_long(), GDB_PY_SET_HANDLE_EXCEPTION, gdbpy_breakpoint_object::number, RETURN_MASK_ALL, set_ignore_count(), and TRY.
|
static |
Definition at line 159 of file py-breakpoint.c.
References _, gdbpy_breakpoint_object::bp, BPPY_SET_REQUIRE_VALID, and breakpoint_set_silent().
|
static |
Definition at line 231 of file py-breakpoint.c.
References _, gdbpy_breakpoint_object::bp, BPPY_SET_REQUIRE_VALID, breakpoint_set_task(), CATCH, END_CATCH, gdb_py_int_as_long(), GDB_PY_SET_HANDLE_EXCEPTION, RETURN_MASK_ALL, TRY, and valid_task_id().
|
static |
Definition at line 190 of file py-breakpoint.c.
References _, gdbpy_breakpoint_object::bp, BPPY_SET_REQUIRE_VALID, breakpoint_set_thread(), gdb_py_int_as_long(), and valid_global_thread_id().
|
static |
Definition at line 844 of file py-breakpoint.c.
References bp, if(), and breakpoint::py_bp_object.
Referenced by gdbpy_breakpoints().
| enum ext_lang_bp_stop gdbpy_breakpoint_cond_says_stop | ( | const struct extension_language_defn * | extlang, |
| struct breakpoint * | b | ||
| ) |
Definition at line 890 of file py-breakpoint.c.
References bpfinishpy_post_stop_hook(), bpfinishpy_pre_stop_hook(), current_language, EXT_LANG_BP_STOP_NO, EXT_LANG_BP_STOP_UNSET, EXT_LANG_BP_STOP_YES, breakpoint::gdbarch, gdbpy_print_stack(), gdb::ref_ptr< T, Policy >::get(), get_current_arch(), gdbpy_breakpoint_object::is_finish_bp, breakpoint::py_bp_object, PyObject_CallMethod, PyObject_HasAttrString, and stop_func.
|
static |
Definition at line 966 of file py-breakpoint.c.
References _, gdbpy_breakpoint_object::bp, bp, bp_access_watchpoint, bp_breakpoint, bp_hardware_watchpoint, bp_read_watchpoint, bp_watchpoint, bppy_live, bppy_pending_object, breakpoint_object_type, evpy_emit_event(), evregpy_no_listeners_p(), gdb_py_events, gdbpy_print_stack(), gdbpy_breakpoint_object::is_finish_bp, gdbpy_breakpoint_object::number, breakpoint::py_bp_object, PyGILState_Ensure, PyGILState_Release, and user_breakpoint_p().
Referenced by gdbpy_initialize_breakpoints().
|
static |
Definition at line 1019 of file py-breakpoint.c.
References bp, bppy_live, evpy_emit_event(), evregpy_no_listeners_p(), gdb_py_events, gdbpy_print_stack(), gdb::ref_ptr< T, Policy >::get(), get_breakpoint(), breakpoint::number, PyGILState_Ensure, and PyGILState_Release.
Referenced by gdbpy_initialize_breakpoints().
| int gdbpy_breakpoint_has_cond | ( | const struct extension_language_defn * | extlang, |
| struct breakpoint * | b | ||
| ) |
Definition at line 943 of file py-breakpoint.c.
References current_language, breakpoint::gdbarch, get_current_arch(), breakpoint::py_bp_object, PyObject_HasAttrString, and stop_func.
|
static |
Definition at line 1049 of file py-breakpoint.c.
References bp, evpy_emit_event(), evregpy_no_listeners_p(), gdb_py_events, gdbpy_print_stack(), get_breakpoint(), if(), breakpoint::number, PyGILState_Ensure, and PyGILState_Release.
Referenced by gdbpy_initialize_breakpoints().
| PyObject* gdbpy_breakpoints | ( | PyObject * | self, |
| PyObject * | args | ||
| ) |
Definition at line 866 of file py-breakpoint.c.
References bppy_live, build_bp_list(), gdb::ref_ptr< T, Policy >::get(), and iterate_over_breakpoints().
| int gdbpy_initialize_breakpoints | ( | void | ) |
Definition at line 1077 of file py-breakpoint.c.
References breakpoint_object_type, code, gdb_module, gdb_pymodule_addobject(), gdbpy_breakpoint_created(), gdbpy_breakpoint_deleted(), gdbpy_breakpoint_modified(), pybp_code::name, name, observer_attach_breakpoint_created(), observer_attach_breakpoint_deleted(), observer_attach_breakpoint_modified(), pybp_codes, and pybp_watch_types.
Referenced by do_start_initialization().
|
static |
Definition at line 1123 of file py-breakpoint.c.
References _, gdbpy_breakpoint_object::bp, breakpoint::cond_string, ext_lang_capitalized_name(), EXT_LANG_GDB, EXT_LANG_PYTHON, get_breakpoint_cond_ext_lang(), get_ext_lang_defn(), name, python_string_to_host_string(), stop_func, string, and string_printf().
|
static |
Definition at line 38 of file py-breakpoint.c.
Referenced by gdbpy_breakpoint_created(), gdbpy_breakpoint_deleted(), and gdbpy_breakpoints().
| gdbpy_breakpoint_object* bppy_pending_object |
Definition at line 42 of file py-breakpoint.c.
Referenced by bpfinishpy_init(), bppy_init(), and gdbpy_breakpoint_created().
|
static |
Definition at line 1157 of file py-breakpoint.c.
|
static |
Definition at line 1201 of file py-breakpoint.c.
| PyTypeObject breakpoint_object_type |
Definition at line 1210 of file py-breakpoint.c.
Referenced by gdbpy_breakpoint_created(), gdbpy_initialize_breakpoints(), and gdbpy_rbreak().
|
static |
Definition at line 57 of file py-breakpoint.c.
Referenced by gdbpy_initialize_breakpoints().
|
static |
Definition at line 69 of file py-breakpoint.c.
Referenced by gdbpy_initialize_breakpoints().
|
static |
Definition at line 45 of file py-breakpoint.c.
Referenced by gdbpy_breakpoint_cond_says_stop(), gdbpy_breakpoint_has_cond(), and local_setattro().
1.8.14