GDBserver
|
Go to the source code of this file.
Classes | |
struct | raw_breakpoint |
struct | point_cond_list |
struct | point_command_list |
struct | breakpoint |
struct | fast_tracepoint_jump |
Macros | |
#define | MAX_BREAKPOINT_LEN 8 |
#define | APPEND_TO_LIST(listpp, itemp, tailp) |
#define | fast_tracepoint_jump_insn(fp) ((fp)->insn_and_shadow + 0) |
#define | fast_tracepoint_jump_shadow(fp) ((fp)->insn_and_shadow + (fp)->length) |
Enumerations | |
enum | bkpt_type { gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2, gdb_breakpoint_Z3, gdb_breakpoint_Z4, reinsert_breakpoint, other_breakpoint } |
Variables | |
const unsigned char * | breakpoint_data |
int | breakpoint_len |
#define APPEND_TO_LIST | ( | listpp, | |
itemp, | |||
tailp | |||
) |
Definition at line 36 of file mem-break.c.
Referenced by clone_all_breakpoints(), and clone_one_breakpoint().
#define fast_tracepoint_jump_insn | ( | fp | ) | ((fp)->insn_and_shadow + 0) |
Definition at line 468 of file mem-break.c.
Referenced by check_mem_write(), and set_fast_tracepoint_jump().
#define fast_tracepoint_jump_shadow | ( | fp | ) | ((fp)->insn_and_shadow + (fp)->length) |
Definition at line 472 of file mem-break.c.
Referenced by check_mem_read(), check_mem_write(), delete_fast_tracepoint_jump(), reinsert_fast_tracepoint_jumps_at(), set_fast_tracepoint_jump(), and uninsert_fast_tracepoint_jumps_at().
#define MAX_BREAKPOINT_LEN 8 |
Definition at line 27 of file mem-break.c.
Referenced by clone_one_breakpoint(), insert_memory_breakpoint(), and remove_memory_breakpoint().
enum bkpt_type |
Enumerator | |
---|---|
gdb_breakpoint_Z0 | |
gdb_breakpoint_Z1 | |
gdb_breakpoint_Z2 | |
gdb_breakpoint_Z3 | |
gdb_breakpoint_Z4 | |
reinsert_breakpoint | |
other_breakpoint |
Definition at line 116 of file mem-break.c.
int add_breakpoint_commands | ( | struct breakpoint * | bp, |
char ** | command, | ||
int | persist | ||
) |
Definition at line 1282 of file mem-break.c.
References add_commands_to_breakpoint(), and gdb_parse_agent_expr().
Referenced by process_point_options().
int add_breakpoint_condition | ( | struct breakpoint * | bp, |
char ** | condition | ||
) |
Definition at line 1183 of file mem-break.c.
References add_condition_to_breakpoint(), and gdb_parse_agent_expr().
Referenced by process_point_options().
void add_commands_to_breakpoint | ( | struct breakpoint * | bp, |
struct agent_expr * | commands, | ||
int | persist | ||
) |
Definition at line 1264 of file mem-break.c.
References point_command_list::cmd, breakpoint::command_list, point_command_list::next, point_command_list::persistence, and xcalloc().
Referenced by add_breakpoint_commands().
|
static |
Definition at line 1166 of file mem-break.c.
References point_cond_list::cond, breakpoint::cond_list, point_cond_list::next, and xcalloc().
Referenced by add_breakpoint_condition().
int any_persistent_commands | ( | void | ) |
Definition at line 246 of file mem-break.c.
References process_info::breakpoints, breakpoint::command_list, current_process(), point_command_list::next, breakpoint::next, and point_command_list::persistence.
Referenced by process_serial_event().
int breakpoint_here | ( | CORE_ADDR | addr | ) |
Definition at line 1599 of file mem-break.c.
References current_process(), raw_breakpoint::next, raw_breakpoint::pc, raw_bkpt_type_hw, raw_bkpt_type_sw, process_info::raw_breakpoints, and raw_breakpoint::raw_type.
Referenced by linux_wait_1(), and need_step_over_p().
int breakpoint_inserted_here | ( | CORE_ADDR | addr | ) |
Definition at line 1614 of file mem-break.c.
References current_process(), raw_breakpoint::inserted, raw_breakpoint::next, raw_breakpoint::pc, raw_bkpt_type_hw, raw_bkpt_type_sw, process_info::raw_breakpoints, and raw_breakpoint::raw_type.
Referenced by linux_wait_1().
void check_breakpoints | ( | CORE_ADDR | stop_pc | ) |
Definition at line 1553 of file mem-break.c.
References process_info::breakpoints, current_process(), breakpoint::handler, raw_breakpoint::inserted, breakpoint::next, raw_breakpoint::pc, breakpoint::raw, raw_bkpt_type_hw, raw_bkpt_type_sw, raw_breakpoint::raw_type, release_breakpoint(), and warning().
Referenced by handle_exception(), and linux_wait_1().
|
static |
Definition at line 1000 of file mem-break.c.
References current_thread, and z_type_supported().
Referenced by delete_gdb_breakpoint(), and set_gdb_breakpoint().
void check_mem_read | ( | CORE_ADDR | mem_addr, |
unsigned char * | buf, | ||
int | mem_len | ||
) |
Definition at line 1723 of file mem-break.c.
References breakpoint_len, current_process(), delete_disabled_breakpoints(), fast_tracepoint_jump_shadow, process_info::fast_tracepoint_jumps, gdb_assert, raw_breakpoint::inserted, fast_tracepoint_jump::inserted, fast_tracepoint_jump::length, raw_breakpoint::next, fast_tracepoint_jump::next, raw_breakpoint::old_data, raw_breakpoint::pc, fast_tracepoint_jump::pc, raw_bkpt_type_sw, process_info::raw_breakpoints, raw_breakpoint::raw_type, and validate_inserted_breakpoint().
Referenced by read_inferior_memory().
void check_mem_write | ( | CORE_ADDR | mem_addr, |
unsigned char * | buf, | ||
const unsigned char * | myaddr, | ||
int | mem_len | ||
) |
Definition at line 1806 of file mem-break.c.
References breakpoint_data, breakpoint_len, current_process(), delete_disabled_breakpoints(), fast_tracepoint_jump_insn, fast_tracepoint_jump_shadow, process_info::fast_tracepoint_jumps, gdb_assert, raw_breakpoint::inserted, fast_tracepoint_jump::inserted, fast_tracepoint_jump::length, raw_breakpoint::next, fast_tracepoint_jump::next, raw_breakpoint::old_data, raw_breakpoint::pc, fast_tracepoint_jump::pc, raw_bkpt_type_sw, process_info::raw_breakpoints, raw_breakpoint::raw_type, and validate_inserted_breakpoint().
Referenced by write_inferior_memory().
|
static |
Definition at line 1134 of file mem-break.c.
References point_command_list::cmd, breakpoint::command_list, gdb_free_agent_expr(), and point_command_list::next.
Referenced by clear_breakpoint_conditions_and_commands().
|
static |
Definition at line 1109 of file mem-break.c.
References point_cond_list::cond, breakpoint::cond_list, gdb_free_agent_expr(), and point_cond_list::next.
Referenced by clear_breakpoint_conditions_and_commands().
void clear_breakpoint_conditions_and_commands | ( | struct breakpoint * | bp | ) |
Definition at line 1157 of file mem-break.c.
References clear_breakpoint_commands(), and clear_breakpoint_conditions().
Referenced by delete_gdb_breakpoint_1(), and process_serial_event().
|
static |
Definition at line 1936 of file mem-break.c.
References agent_expr::bytes, agent_expr::length, and xcalloc().
Referenced by clone_one_breakpoint().
void clone_all_breakpoints | ( | struct breakpoint ** | new_list, |
struct raw_breakpoint ** | new_raw_list, | ||
const struct breakpoint * | src_list | ||
) |
Definition at line 2003 of file mem-break.c.
References APPEND_TO_LIST, clone_one_breakpoint(), breakpoint::next, and breakpoint::raw.
Referenced by handle_extended_wait().
|
static |
Definition at line 1950 of file mem-break.c.
References APPEND_TO_LIST, clone_agent_expr(), point_command_list::cmd, breakpoint::command_list, point_cond_list::cond, breakpoint::cond_list, breakpoint::handler, raw_breakpoint::inserted, MAX_BREAKPOINT_LEN, point_cond_list::next, point_command_list::next, raw_breakpoint::old_data, raw_breakpoint::pc, point_command_list::persistence, breakpoint::raw, raw_breakpoint::raw_type, raw_breakpoint::refcount, raw_breakpoint::size, breakpoint::type, and xcalloc().
Referenced by clone_all_breakpoints().
void delete_all_breakpoints | ( | void | ) |
Definition at line 1898 of file mem-break.c.
References process_info::breakpoints, current_process(), and delete_breakpoint_1().
int delete_breakpoint | ( | struct breakpoint * | todel | ) |
Definition at line 888 of file mem-break.c.
References current_process(), and delete_breakpoint_1().
Referenced by clear_installed_tracepoints(), delete_gdb_breakpoint_1(), linux_wait_1(), maybe_move_out_of_jump_pad(), remove_thread_event_breakpoints(), set_gdb_breakpoint_1(), stop_tracing(), and upload_fast_traceframes().
|
static |
Definition at line 855 of file mem-break.c.
References process_info::breakpoints, breakpoint::next, release_breakpoint(), and warning().
Referenced by delete_all_breakpoints(), delete_breakpoint(), delete_disabled_breakpoints(), and free_all_breakpoints().
|
static |
Definition at line 1685 of file mem-break.c.
References process_info::breakpoints, current_process(), delete_breakpoint_1(), raw_breakpoint::inserted, breakpoint::next, and breakpoint::raw.
Referenced by check_mem_read(), check_mem_write(), and validate_breakpoints().
int delete_fast_tracepoint_jump | ( | struct fast_tracepoint_jump * | todel | ) |
Definition at line 500 of file mem-break.c.
References alloca(), current_process(), debug_printf(), debug_threads, fast_tracepoint_jump_shadow, process_info::fast_tracepoint_jumps, fast_tracepoint_jump::length, fast_tracepoint_jump::next, paddress(), fast_tracepoint_jump::pc, fast_tracepoint_jump::refcount, strerror(), warning(), and write_inferior_memory().
Referenced by clear_installed_tracepoints().
int delete_gdb_breakpoint | ( | char | z_type, |
CORE_ADDR | addr, | ||
int | size | ||
) |
Definition at line 1080 of file mem-break.c.
References check_gdb_bp_preconditions(), delete_gdb_breakpoint_1(), done_accessing_memory, prepare_to_access_memory, and Z_PACKET_SW_BP.
Referenced by process_serial_event().
|
static |
Definition at line 1057 of file mem-break.c.
References clear_breakpoint_conditions_and_commands(), delete_breakpoint(), and find_gdb_breakpoint().
Referenced by delete_gdb_breakpoint().
|
static |
Definition at line 784 of file mem-break.c.
References debug_printf(), debug_threads, raw_breakpoint::inserted, raw_breakpoint::next, paddress(), raw_breakpoint::pc, process_info::raw_breakpoints, raw_breakpoint::raw_type, target_ops::remove_point, raw_breakpoint::size, the_target, and warning().
Referenced by release_breakpoint().
void delete_reinsert_breakpoints | ( | void | ) |
Definition at line 1402 of file mem-break.c.
References process_info::breakpoints, current_process(), breakpoint::next, reinsert_breakpoint, release_breakpoint(), and breakpoint::type.
Referenced by finish_step_over().
int fast_tracepoint_jump_here | ( | CORE_ADDR | where | ) |
Definition at line 492 of file mem-break.c.
References find_fast_tracepoint_jump_at().
Referenced by need_step_over_p().
|
static |
Definition at line 266 of file mem-break.c.
References current_process(), raw_breakpoint::inserted, raw_breakpoint::next, raw_breakpoint::pc, process_info::raw_breakpoints, and raw_breakpoint::raw_type.
Referenced by set_raw_breakpoint_at().
|
static |
Definition at line 479 of file mem-break.c.
References current_process(), process_info::fast_tracepoint_jumps, fast_tracepoint_jump::next, and fast_tracepoint_jump::pc.
Referenced by fast_tracepoint_jump_here(), reinsert_fast_tracepoint_jumps_at(), set_fast_tracepoint_jump(), and uninsert_fast_tracepoint_jumps_at().
|
static |
Definition at line 899 of file mem-break.c.
References process_info::breakpoints, current_process(), breakpoint::next, raw_breakpoint::pc, breakpoint::raw, raw_breakpoint::size, breakpoint::type, and Z_packet_to_bkpt_type().
Referenced by delete_gdb_breakpoint_1(), gdb_breakpoint_here(), gdb_condition_true_at_breakpoint_z_type(), gdb_no_commands_at_breakpoint_z_type(), run_breakpoint_commands_z_type(), and set_gdb_breakpoint_1().
|
static |
Definition at line 284 of file mem-break.c.
References current_process(), raw_breakpoint::next, raw_breakpoint::pc, process_info::raw_breakpoints, raw_breakpoint::raw_type, and raw_breakpoint::size.
Referenced by set_raw_breakpoint_at().
void free_all_breakpoints | ( | struct process_info * | proc | ) |
Definition at line 1921 of file mem-break.c.
References process_info::breakpoints, delete_breakpoint_1(), and mark_breakpoints_out().
Referenced by remove_process().
int gdb_breakpoint_here | ( | CORE_ADDR | where | ) |
Definition at line 1385 of file mem-break.c.
References find_gdb_breakpoint(), Z_PACKET_HW_BP, and Z_PACKET_SW_BP.
Referenced by linux_wait_1(), move_out_of_jump_pad_callback(), need_step_over_p(), and stuck_in_jump_pad_callback().
int gdb_condition_true_at_breakpoint | ( | CORE_ADDR | where | ) |
Definition at line 1254 of file mem-break.c.
References gdb_condition_true_at_breakpoint_z_type(), Z_PACKET_HW_BP, and Z_PACKET_SW_BP.
Referenced by linux_wait_1(), and need_step_over_p().
|
static |
Definition at line 1214 of file mem-break.c.
References point_cond_list::cond, breakpoint::cond_list, current_thread, find_gdb_breakpoint(), gdb_eval_agent_expr(), get_thread_regcache(), point_cond_list::next, eval_agent_expr_context::regcache, eval_agent_expr_context::tframe, and eval_agent_expr_context::tpoint.
Referenced by gdb_condition_true_at_breakpoint().
int gdb_no_commands_at_breakpoint | ( | CORE_ADDR | where | ) |
Definition at line 1332 of file mem-break.c.
References gdb_no_commands_at_breakpoint_z_type(), Z_PACKET_HW_BP, and Z_PACKET_SW_BP.
Referenced by linux_wait_1(), and need_step_over_p().
|
static |
Definition at line 1314 of file mem-break.c.
References breakpoint::command_list, debug_printf(), debug_threads, find_gdb_breakpoint(), paddress(), and phex_nz().
Referenced by gdb_no_commands_at_breakpoint().
int hardware_breakpoint_inserted_here | ( | CORE_ADDR | addr | ) |
Definition at line 1649 of file mem-break.c.
References current_process(), raw_breakpoint::inserted, raw_breakpoint::next, raw_breakpoint::pc, raw_bkpt_type_hw, process_info::raw_breakpoints, and raw_breakpoint::raw_type.
Referenced by check_stopped_by_breakpoint(), and thread_still_has_status_pending_p().
void inc_ref_fast_tracepoint_jump | ( | struct fast_tracepoint_jump * | jp | ) |
Definition at line 562 of file mem-break.c.
References fast_tracepoint_jump::refcount.
Referenced by clone_fast_tracepoint().
int insert_memory_breakpoint | ( | struct raw_breakpoint * | bp | ) |
Definition at line 299 of file mem-break.c.
References breakpoint_data, breakpoint_len, debug_printf(), debug_threads, MAX_BREAKPOINT_LEN, raw_breakpoint::old_data, paddress(), raw_breakpoint::pc, read_inferior_memory(), raw_breakpoint::size, strerror(), the_target, and target_ops::write_memory.
Referenced by linux_insert_point().
void mark_breakpoints_out | ( | struct process_info * | proc | ) |
Definition at line 1909 of file mem-break.c.
References raw_breakpoint::inserted, raw_breakpoint::next, and process_info::raw_breakpoints.
Referenced by free_all_breakpoints(), and handle_target_event().
enum target_hw_bp_type raw_bkpt_type_to_target_hw_bp_type | ( | enum raw_bkpt_type | raw_type | ) |
Definition at line 195 of file mem-break.c.
References hw_access, hw_execute, hw_read, hw_write, internal_error(), raw_bkpt_type_access_wp, raw_bkpt_type_hw, raw_bkpt_type_read_wp, and raw_bkpt_type_write_wp.
Referenced by aarch64_insert_point(), aarch64_remove_point(), i386_insert_point(), i386_remove_point(), mips_insert_point(), mips_remove_point(), x86_insert_point(), and x86_remove_point().
void reinsert_all_breakpoints | ( | void | ) |
Definition at line 1540 of file mem-break.c.
References current_process(), raw_breakpoint::inserted, raw_breakpoint::next, raw_bkpt_type_hw, raw_bkpt_type_sw, process_info::raw_breakpoints, raw_breakpoint::raw_type, and reinsert_raw_breakpoint().
Referenced by run_inferior_command().
void reinsert_breakpoints_at | ( | CORE_ADDR | pc | ) |
Definition at line 1512 of file mem-break.c.
References current_process(), debug_printf(), debug_threads, raw_breakpoint::next, paddress(), raw_breakpoint::pc, raw_bkpt_type_hw, raw_bkpt_type_sw, process_info::raw_breakpoints, raw_breakpoint::raw_type, and reinsert_raw_breakpoint().
Referenced by finish_step_over().
void reinsert_fast_tracepoint_jumps_at | ( | CORE_ADDR | where | ) |
Definition at line 689 of file mem-break.c.
References alloca(), debug_printf(), debug_threads, error(), fast_tracepoint_jump_shadow, find_fast_tracepoint_jump_at(), fast_tracepoint_jump::inserted, fast_tracepoint_jump::length, paddress(), strerror(), and write_inferior_memory().
Referenced by finish_step_over().
|
static |
Definition at line 1496 of file mem-break.c.
References debug_printf(), debug_threads, error(), target_ops::insert_point, raw_breakpoint::inserted, paddress(), raw_breakpoint::pc, raw_breakpoint::raw_type, raw_breakpoint::size, and the_target.
Referenced by reinsert_all_breakpoints(), and reinsert_breakpoints_at().
|
static |
Definition at line 834 of file mem-break.c.
References delete_raw_breakpoint(), breakpoint::raw, and raw_breakpoint::refcount.
Referenced by check_breakpoints(), delete_breakpoint_1(), and delete_reinsert_breakpoints().
int remove_memory_breakpoint | ( | struct raw_breakpoint * | bp | ) |
Definition at line 348 of file mem-break.c.
References breakpoint_len, debug_printf(), debug_threads, MAX_BREAKPOINT_LEN, raw_breakpoint::old_data, paddress(), raw_breakpoint::pc, strerror(), and write_inferior_memory().
Referenced by linux_remove_point().
void run_breakpoint_commands | ( | CORE_ADDR | where | ) |
Definition at line 1374 of file mem-break.c.
References run_breakpoint_commands_z_type(), Z_PACKET_HW_BP, and Z_PACKET_SW_BP.
Referenced by linux_wait_1().
|
static |
Definition at line 1343 of file mem-break.c.
References point_command_list::cmd, breakpoint::command_list, current_thread, find_gdb_breakpoint(), gdb_eval_agent_expr(), get_thread_regcache(), point_command_list::next, eval_agent_expr_context::regcache, eval_agent_expr_context::tframe, and eval_agent_expr_context::tpoint.
Referenced by run_breakpoint_commands().
|
static |
Definition at line 742 of file mem-break.c.
References process_info::breakpoints, current_process(), breakpoint::handler, breakpoint::next, breakpoint::raw, set_raw_breakpoint_at(), breakpoint::type, and xcalloc().
Referenced by set_breakpoint_at(), and set_gdb_breakpoint_1().
struct breakpoint* set_breakpoint_at | ( | CORE_ADDR | where, |
int(*)(CORE_ADDR) | handler | ||
) |
Definition at line 773 of file mem-break.c.
References breakpoint_len, breakpoint::handler, other_breakpoint, raw_bkpt_type_sw, and set_breakpoint().
Referenced by cmd_qtstart(), get_child_debug_event(), install_tracepoint(), maybe_move_out_of_jump_pad(), set_reinsert_breakpoint(), thread_db_enable_reporting(), and upload_fast_traceframes().
void set_breakpoint_data | ( | const unsigned char * | bp_data, |
int | bp_len | ||
) |
Definition at line 1592 of file mem-break.c.
References breakpoint_data, and breakpoint_len.
Referenced by initialize_low().
struct fast_tracepoint_jump* set_fast_tracepoint_jump | ( | CORE_ADDR | where, |
unsigned char * | insn, | ||
ULONGEST | length | ||
) |
Definition at line 568 of file mem-break.c.
References alloca(), current_process(), debug_printf(), debug_threads, fast_tracepoint_jump_insn, fast_tracepoint_jump_shadow, process_info::fast_tracepoint_jumps, find_fast_tracepoint_jump_at(), fast_tracepoint_jump::inserted, fast_tracepoint_jump::length, fast_tracepoint_jump::next, paddress(), fast_tracepoint_jump::pc, read_inferior_memory(), fast_tracepoint_jump::refcount, strerror(), write_inferior_memory(), and xcalloc().
Referenced by install_fast_tracepoint(), and tracepoint_send_agent().
struct breakpoint* set_gdb_breakpoint | ( | char | z_type, |
CORE_ADDR | addr, | ||
int | size, | ||
int * | err | ||
) |
Definition at line 1027 of file mem-break.c.
References check_gdb_bp_preconditions(), done_accessing_memory, prepare_to_access_memory, set_gdb_breakpoint_1(), and Z_PACKET_SW_BP.
Referenced by process_serial_event().
|
static |
Definition at line 927 of file mem-break.c.
References delete_breakpoint(), find_gdb_breakpoint(), raw_breakpoint::inserted, breakpoint::raw, set_breakpoint(), raw_breakpoint::size, breakpoint::type, validate_breakpoints(), Z_PACKET_HW_BP, Z_PACKET_SW_BP, Z_packet_to_bkpt_type(), and Z_packet_to_raw_bkpt_type().
Referenced by set_gdb_breakpoint().
|
static |
Definition at line 378 of file mem-break.c.
References current_process(), debug_printf(), debug_threads, find_enabled_raw_code_breakpoint_at(), find_raw_breakpoint_at(), target_ops::insert_point, raw_breakpoint::inserted, raw_breakpoint::next, paddress(), raw_breakpoint::pc, raw_bkpt_type_hw, raw_bkpt_type_sw, process_info::raw_breakpoints, raw_breakpoint::raw_type, raw_breakpoint::refcount, raw_breakpoint::size, the_target, and xcalloc().
Referenced by set_breakpoint().
void set_reinsert_breakpoint | ( | CORE_ADDR | stop_at | ) |
Definition at line 1393 of file mem-break.c.
References reinsert_breakpoint, set_breakpoint_at(), and breakpoint::type.
Referenced by start_step_over().
int software_breakpoint_inserted_here | ( | CORE_ADDR | addr | ) |
Definition at line 1632 of file mem-break.c.
References current_process(), raw_breakpoint::inserted, raw_breakpoint::next, raw_breakpoint::pc, raw_bkpt_type_sw, process_info::raw_breakpoints, and raw_breakpoint::raw_type.
void uninsert_all_breakpoints | ( | void | ) |
Definition at line 1483 of file mem-break.c.
References current_process(), raw_breakpoint::inserted, raw_breakpoint::next, raw_bkpt_type_hw, raw_bkpt_type_sw, process_info::raw_breakpoints, raw_breakpoint::raw_type, and uninsert_raw_breakpoint().
Referenced by run_inferior_command().
void uninsert_breakpoints_at | ( | CORE_ADDR | pc | ) |
Definition at line 1454 of file mem-break.c.
References current_process(), debug_printf(), debug_threads, raw_breakpoint::inserted, raw_breakpoint::next, paddress(), raw_breakpoint::pc, raw_bkpt_type_hw, raw_bkpt_type_sw, process_info::raw_breakpoints, raw_breakpoint::raw_type, and uninsert_raw_breakpoint().
Referenced by start_step_over().
void uninsert_fast_tracepoint_jumps_at | ( | CORE_ADDR | pc | ) |
Definition at line 641 of file mem-break.c.
References alloca(), debug_printf(), debug_threads, fast_tracepoint_jump_shadow, find_fast_tracepoint_jump_at(), fast_tracepoint_jump::inserted, fast_tracepoint_jump::length, paddress(), fast_tracepoint_jump::pc, strerror(), and write_inferior_memory().
Referenced by start_step_over().
|
static |
Definition at line 1427 of file mem-break.c.
References debug_printf(), debug_threads, raw_breakpoint::inserted, paddress(), raw_breakpoint::pc, raw_breakpoint::raw_type, target_ops::remove_point, raw_breakpoint::size, and the_target.
Referenced by uninsert_all_breakpoints(), and uninsert_breakpoints_at().
void validate_breakpoints | ( | void | ) |
Definition at line 1706 of file mem-break.c.
References process_info::breakpoints, current_process(), delete_disabled_breakpoints(), raw_breakpoint::inserted, breakpoint::next, breakpoint::raw, raw_bkpt_type_sw, raw_breakpoint::raw_type, and validate_inserted_breakpoint().
Referenced by handle_query(), and set_gdb_breakpoint_1().
|
static |
Definition at line 1664 of file mem-break.c.
References alloca(), breakpoint_data, breakpoint_len, gdb_assert, raw_breakpoint::inserted, raw_breakpoint::pc, raw_bkpt_type_sw, raw_breakpoint::raw_type, target_ops::read_memory, and the_target.
Referenced by check_mem_read(), check_mem_write(), and validate_breakpoints().
|
static |
Definition at line 216 of file mem-break.c.
References gdb_assert, and gdb_breakpoint_Z0.
Referenced by find_gdb_breakpoint(), and set_gdb_breakpoint_1().
enum raw_bkpt_type Z_packet_to_raw_bkpt_type | ( | char | z_type | ) |
Definition at line 226 of file mem-break.c.
References gdb_assert_not_reached, raw_bkpt_type_access_wp, raw_bkpt_type_hw, raw_bkpt_type_read_wp, raw_bkpt_type_sw, raw_bkpt_type_write_wp, Z_PACKET_ACCESS_WP, Z_PACKET_HW_BP, Z_PACKET_READ_WP, Z_PACKET_SW_BP, and Z_PACKET_WRITE_WP.
Referenced by set_gdb_breakpoint_1().
|
static |
Definition at line 914 of file mem-break.c.
References target_ops::supports_z_point_type, and the_target.
Referenced by check_gdb_bp_preconditions().
const unsigned char* breakpoint_data |
Definition at line 24 of file mem-break.c.
Referenced by check_mem_write(), insert_memory_breakpoint(), set_breakpoint_data(), and validate_inserted_breakpoint().
int breakpoint_len |
Definition at line 25 of file mem-break.c.
Referenced by check_mem_read(), check_mem_write(), insert_memory_breakpoint(), remove_memory_breakpoint(), set_breakpoint_at(), set_breakpoint_data(), and validate_inserted_breakpoint().