|
GDBserver
|
Go to the source code of this file.
Classes | |
| struct | raw_breakpoint |
| struct | point_cond_list |
| struct | point_command_list |
| struct | breakpoint |
| struct | gdb_breakpoint |
| struct | other_breakpoint |
| struct | single_step_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, single_step_breakpoint, other_breakpoint } |
| #define APPEND_TO_LIST | ( | listpp, | |
| itemp, | |||
| tailp | |||
| ) |
Definition at line 34 of file mem-break.c.
Referenced by clone_all_breakpoints(), and clone_one_breakpoint().
Definition at line 527 of file mem-break.c.
Referenced by check_mem_write(), and set_fast_tracepoint_jump().
Definition at line 531 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 25 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 | |
| single_step_breakpoint | |
| other_breakpoint | |
Definition at line 119 of file mem-break.c.
| int add_breakpoint_commands | ( | struct gdb_breakpoint * | bp, |
| const char ** | command, | ||
| int | persist | ||
| ) |
Definition at line 1370 of file mem-break.c.
References add_commands_to_breakpoint(), gdb_parse_agent_expr(), and warning().
Referenced by process_point_options().
| int add_breakpoint_condition | ( | struct gdb_breakpoint * | bp, |
| const char ** | condition | ||
| ) |
Definition at line 1272 of file mem-break.c.
References add_condition_to_breakpoint(), gdb_parse_agent_expr(), and warning().
Referenced by process_point_options().
|
static |
Definition at line 1352 of file mem-break.c.
References point_command_list::cmd, gdb_breakpoint::command_list, point_command_list::next, point_command_list::persistence, and XCNEW.
Referenced by add_breakpoint_commands().
|
static |
Definition at line 1255 of file mem-break.c.
References point_cond_list::cond, gdb_breakpoint::cond_list, point_cond_list::next, and XCNEW.
Referenced by add_breakpoint_condition().
| int any_persistent_commands | ( | void | ) |
Definition at line 306 of file mem-break.c.
References process_info::breakpoints, gdb_breakpoint::command_list, current_process(), is_gdb_breakpoint(), point_command_list::next, breakpoint::next, point_command_list::persistence, and breakpoint::type.
Referenced by handle_detach().
|
static |
Definition at line 233 of file mem-break.c.
References raw_breakpoint::kind, target_ops::sw_breakpoint_from_kind, and the_target.
Referenced by check_mem_write(), insert_memory_breakpoint(), and validate_inserted_breakpoint().
|
static |
Definition at line 222 of file mem-break.c.
References raw_breakpoint::kind, target_ops::sw_breakpoint_from_kind, and the_target.
Referenced by check_mem_read(), check_mem_write(), insert_memory_breakpoint(), remove_memory_breakpoint(), and validate_inserted_breakpoint().
| int breakpoint_here | ( | CORE_ADDR | addr | ) |
Definition at line 1773 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 need_step_over_p().
| int breakpoint_inserted_here | ( | CORE_ADDR | addr | ) |
Definition at line 1788 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 1728 of file mem-break.c.
References process_info::breakpoints, current_process(), other_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(), breakpoint::type, and warning().
Referenced by handle_exception(), and linux_wait_1().
|
static |
Definition at line 1092 of file mem-break.c.
References 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 1919 of file mem-break.c.
References bp_size(), 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 2002 of file mem-break.c.
References bp_opcode(), bp_size(), 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 1223 of file mem-break.c.
References point_command_list::cmd, gdb_breakpoint::command_list, free(), and gdb_free_agent_expr().
Referenced by clear_breakpoint_conditions_and_commands().
|
static |
Definition at line 1198 of file mem-break.c.
References point_cond_list::cond, gdb_breakpoint::cond_list, free(), and gdb_free_agent_expr().
Referenced by clear_breakpoint_conditions_and_commands().
| void clear_breakpoint_conditions_and_commands | ( | struct gdb_breakpoint * | bp | ) |
Definition at line 1246 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 2132 of file mem-break.c.
References agent_expr::bytes, agent_expr::length, xcalloc(), and XCNEW.
Referenced by clone_one_breakpoint().
| void clone_all_breakpoints | ( | struct thread_info * | child_thread, |
| const struct thread_info * | parent_thread | ||
| ) |
Definition at line 2223 of file mem-break.c.
References APPEND_TO_LIST, process_info::breakpoints, clone_one_breakpoint(), get_thread_process(), breakpoint::next, ptid_of(), breakpoint::raw, and process_info::raw_breakpoints.
Referenced by handle_extended_wait().
|
static |
Definition at line 2146 of file mem-break.c.
References APPEND_TO_LIST, clone_agent_expr(), point_command_list::cmd, gdb_breakpoint::command_list, point_cond_list::cond, gdb_breakpoint::cond_list, gdb_assert_not_reached, other_breakpoint::handler, raw_breakpoint::inserted, is_gdb_breakpoint(), raw_breakpoint::kind, MAX_BREAKPOINT_LEN, point_cond_list::next, point_command_list::next, raw_breakpoint::old_data, raw_breakpoint::pc, point_command_list::persistence, single_step_breakpoint::ptid, breakpoint::raw, raw_breakpoint::raw_type, raw_breakpoint::refcount, breakpoint::type, and XCNEW.
Referenced by clone_all_breakpoints().
| void delete_all_breakpoints | ( | void | ) |
Definition at line 2094 of file mem-break.c.
References process_info::breakpoints, current_process(), and delete_breakpoint_1().
| int delete_breakpoint | ( | struct breakpoint * | todel | ) |
Definition at line 979 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(), set_gdb_breakpoint_1(), stop_tracing(), and upload_fast_traceframes().
|
static |
Definition at line 946 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 1876 of file mem-break.c.
References process_info::breakpoints, current_process(), delete_breakpoint_1(), gdb_assert, raw_breakpoint::inserted, breakpoint::next, breakpoint::raw, and breakpoint::type.
Referenced by check_mem_read(), check_mem_write(), and validate_breakpoints().
| int delete_fast_tracepoint_jump | ( | struct fast_tracepoint_jump * | todel | ) |
Definition at line 559 of file mem-break.c.
References alloca(), current_process(), debug_printf(), debug_threads, fast_tracepoint_jump_shadow, process_info::fast_tracepoint_jumps, free(), 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 | kind | ||
| ) |
Definition at line 1169 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 1146 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 875 of file mem-break.c.
References debug_printf(), debug_threads, free(), raw_breakpoint::inserted, raw_breakpoint::kind, raw_breakpoint::next, paddress(), raw_breakpoint::pc, process_info::raw_breakpoints, raw_breakpoint::raw_type, target_ops::remove_point, the_target, and warning().
Referenced by release_breakpoint().
| void delete_single_step_breakpoints | ( | struct thread_info * | thread | ) |
Definition at line 1492 of file mem-break.c.
References process_info::breakpoints, current_thread, get_thread_process(), ptid_equal(), ptid_of(), release_breakpoint(), and breakpoint::type.
Referenced by finish_step_over(), handle_extended_wait(), and linux_wait_1().
| int fast_tracepoint_jump_here | ( | CORE_ADDR | where | ) |
Definition at line 551 of file mem-break.c.
References find_fast_tracepoint_jump_at().
Referenced by need_step_over_p().
|
static |
Definition at line 331 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 538 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 990 of file mem-break.c.
References process_info::breakpoints, current_process(), raw_breakpoint::kind, breakpoint::next, raw_breakpoint::pc, breakpoint::raw, 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 349 of file mem-break.c.
References current_process(), raw_breakpoint::kind, raw_breakpoint::next, raw_breakpoint::pc, process_info::raw_breakpoints, and raw_breakpoint::raw_type.
Referenced by set_raw_breakpoint_at().
| void free_all_breakpoints | ( | struct process_info * | proc | ) |
Definition at line 2117 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 1472 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 1342 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 1302 of file mem-break.c.
References point_cond_list::cond, gdb_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 1419 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 1401 of file mem-break.c.
References gdb_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 1823 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 save_stop_reason(), and thread_still_has_status_pending_p().
| int has_single_step_breakpoints | ( | struct thread_info * | thread | ) |
Definition at line 1664 of file mem-break.c.
References process_info::breakpoints, get_thread_process(), ptid_equal(), ptid_of(), and breakpoint::type.
Referenced by finish_step_over(), handle_extended_wait(), linux_wait_1(), maybe_hw_step(), and proceed_one_lwp().
| void inc_ref_fast_tracepoint_jump | ( | struct fast_tracepoint_jump * | jp | ) |
Definition at line 621 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 364 of file mem-break.c.
References bp_opcode(), bp_size(), debug_printf(), debug_threads, MAX_BREAKPOINT_LEN, raw_breakpoint::old_data, paddress(), raw_breakpoint::pc, read_inferior_memory(), strerror(), the_target, and target_ops::write_memory.
Referenced by linux_insert_point(), and ppc_insert_point().
|
static |
Definition at line 296 of file mem-break.c.
References gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2, gdb_breakpoint_Z3, gdb_breakpoint_Z4, and breakpoint::type.
Referenced by any_persistent_commands(), clone_one_breakpoint(), and set_breakpoint().
| void mark_breakpoints_out | ( | struct process_info * | proc | ) |
Definition at line 2105 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 243 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 1689 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 1636 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 748 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 1620 of file mem-break.c.
References debug_printf(), debug_threads, target_ops::insert_point, raw_breakpoint::inserted, raw_breakpoint::kind, paddress(), raw_breakpoint::pc, raw_breakpoint::raw_type, and the_target.
Referenced by reinsert_all_breakpoints(), reinsert_breakpoints_at(), and reinsert_single_step_breakpoints().
| void reinsert_single_step_breakpoints | ( | struct thread_info * | thread | ) |
Definition at line 1702 of file mem-break.c.
References process_info::breakpoints, current_thread, gdb_assert, get_thread_process(), breakpoint::next, ptid_equal(), ptid_of(), reinsert_raw_breakpoint(), and breakpoint::type.
Referenced by handle_extended_wait().
|
static |
Definition at line 925 of file mem-break.c.
References delete_raw_breakpoint(), free(), breakpoint::raw, and raw_breakpoint::refcount.
Referenced by check_breakpoints(), delete_breakpoint_1(), and delete_single_step_breakpoints().
| int remove_memory_breakpoint | ( | struct raw_breakpoint * | bp | ) |
Definition at line 399 of file mem-break.c.
References bp_size(), 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(), and ppc_remove_point().
| void run_breakpoint_commands | ( | CORE_ADDR | where | ) |
Definition at line 1461 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 1430 of file mem-break.c.
References point_command_list::cmd, gdb_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 801 of file mem-break.c.
References process_info::breakpoints, current_process(), gdb_assert, gdb_assert_not_reached, other_breakpoint::handler, is_gdb_breakpoint(), raw_breakpoint::kind, breakpoint::next, breakpoint::raw, raw_breakpoint::raw_type, set_raw_breakpoint_at(), breakpoint::type, and XCNEW.
Referenced by set_breakpoint_type_at(), and set_gdb_breakpoint_1().
| struct breakpoint* set_breakpoint_at | ( | CORE_ADDR | where, |
| int(*)(CORE_ADDR) | handler | ||
| ) |
Definition at line 868 of file mem-break.c.
References set_breakpoint_type_at().
Referenced by cmd_qtstart(), get_child_debug_event(), install_tracepoint(), maybe_move_out_of_jump_pad(), and upload_fast_traceframes().
|
static |
Definition at line 853 of file mem-break.c.
References raw_bkpt_type_sw, set_breakpoint(), target_breakpoint_kind_from_pc, and breakpoint::type.
Referenced by set_breakpoint_at(), and set_single_step_breakpoint().
| struct fast_tracepoint_jump* set_fast_tracepoint_jump | ( | CORE_ADDR | where, |
| unsigned char * | insn, | ||
| ULONGEST | length | ||
| ) |
Definition at line 627 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(), free(), 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 gdb_breakpoint* set_gdb_breakpoint | ( | char | z_type, |
| CORE_ADDR | addr, | ||
| int | kind, | ||
| int * | err | ||
| ) |
Definition at line 1114 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 1018 of file mem-break.c.
References gdb_breakpoint::base, delete_breakpoint(), find_gdb_breakpoint(), raw_breakpoint::inserted, raw_breakpoint::kind, breakpoint::raw, set_breakpoint(), 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 429 of file mem-break.c.
References current_process(), debug_printf(), debug_threads, discard_cleanups(), do_cleanups(), find_enabled_raw_code_breakpoint_at(), find_raw_breakpoint_at(), target_ops::insert_point, raw_breakpoint::inserted, raw_breakpoint::kind, make_cleanup(), raw_breakpoint::next, null_cleanup(), paddress(), raw_breakpoint::pc, raw_bkpt_type_hw, raw_bkpt_type_sw, process_info::raw_breakpoints, raw_breakpoint::raw_type, raw_breakpoint::refcount, the_target, XCNEW, and xfree().
Referenced by set_breakpoint().
Definition at line 1480 of file mem-break.c.
References current_ptid, gdb_assert, single_step_breakpoint::ptid, ptid_get_pid(), and set_breakpoint_type_at().
Referenced by install_software_single_step_breakpoints().
| int single_step_breakpoint_inserted_here | ( | CORE_ADDR | addr | ) |
Definition at line 1840 of file mem-break.c.
References process_info::breakpoints, current_process(), raw_breakpoint::inserted, breakpoint::next, raw_breakpoint::pc, breakpoint::raw, and breakpoint::type.
Referenced by linux_wait_1().
| int software_breakpoint_inserted_here | ( | CORE_ADDR | addr | ) |
Definition at line 1806 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 1579 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 1550 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 700 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 1523 of file mem-break.c.
References debug_printf(), debug_threads, raw_breakpoint::inserted, raw_breakpoint::kind, paddress(), raw_breakpoint::pc, raw_breakpoint::raw_type, target_ops::remove_point, and the_target.
Referenced by uninsert_all_breakpoints(), uninsert_breakpoints_at(), and uninsert_single_step_breakpoints().
| void uninsert_single_step_breakpoints | ( | struct thread_info * | thread | ) |
Definition at line 1592 of file mem-break.c.
References process_info::breakpoints, current_thread, gdb_assert, get_thread_process(), breakpoint::next, ptid_equal(), ptid_of(), breakpoint::type, and uninsert_raw_breakpoint().
Referenced by handle_extended_wait().
| void validate_breakpoints | ( | void | ) |
Definition at line 1902 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 1855 of file mem-break.c.
References alloca(), bp_opcode(), bp_size(), 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 264 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 274 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 1005 of file mem-break.c.
References target_ops::supports_z_point_type, and the_target.
Referenced by check_gdb_bp_preconditions().
1.8.14