GDBserver
|
Go to the source code of this file.
int add_breakpoint_commands | ( | CORE_ADDR | addr, |
char ** | commands, | ||
int | persist | ||
) |
Definition at line 896 of file mem-break.c.
References add_commands_to_breakpoint(), find_gdb_breakpoint_at(), and gdb_parse_agent_expr().
Referenced by process_point_options().
int add_breakpoint_condition | ( | CORE_ADDR | addr, |
char ** | condition | ||
) |
Definition at line 804 of file mem-break.c.
References add_condition_to_breakpoint(), find_gdb_breakpoint_at(), and gdb_parse_agent_expr().
Referenced by process_point_options().
int any_persistent_commands | ( | void | ) |
Definition at line 142 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 1170 of file mem-break.c.
References find_raw_breakpoint_at().
Referenced by linux_wait_1(), and need_step_over_p().
int breakpoint_inserted_here | ( | CORE_ADDR | addr | ) |
Definition at line 1176 of file mem-break.c.
References find_raw_breakpoint_at(), and raw_breakpoint::inserted.
Referenced by count_events_callback(), linux_wait_1(), and select_event_lwp_callback().
void check_breakpoints | ( | CORE_ADDR | stop_pc | ) |
Definition at line 1128 of file mem-break.c.
References process_info::breakpoints, current_process(), breakpoint::handler, raw_breakpoint::inserted, breakpoint::next, raw_breakpoint::pc, breakpoint::raw, release_breakpoint(), and warning().
Referenced by handle_exception(), and linux_wait_1().
void check_mem_read | ( | CORE_ADDR | mem_addr, |
unsigned char * | buf, | ||
int | mem_len | ||
) |
Definition at line 1243 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, memcpy(), raw_breakpoint::next, fast_tracepoint_jump::next, raw_breakpoint::old_data, raw_breakpoint::pc, fast_tracepoint_jump::pc, process_info::raw_breakpoints, 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 1323 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, memcpy(), raw_breakpoint::next, fast_tracepoint_jump::next, raw_breakpoint::old_data, raw_breakpoint::pc, fast_tracepoint_jump::pc, process_info::raw_breakpoints, and validate_inserted_breakpoint().
Referenced by write_inferior_memory().
void clear_gdb_breakpoint_conditions | ( | CORE_ADDR | addr | ) |
Definition at line 760 of file mem-break.c.
References agent_expr::bytes, point_cond_list::cond, breakpoint::cond_list, find_gdb_breakpoint_at(), and point_cond_list::next.
Referenced by delete_gdb_breakpoint_at(), and process_serial_event().
void delete_all_breakpoints | ( | void | ) |
Definition at line 1412 of file mem-break.c.
References process_info::breakpoints, current_process(), and delete_breakpoint_1().
int delete_breakpoint | ( | struct breakpoint * | bkpt | ) |
Definition at line 681 of file mem-break.c.
References current_process(), and delete_breakpoint_1().
Referenced by clear_installed_tracepoints(), delete_gdb_breakpoint_at(), linux_wait_1(), maybe_move_out_of_jump_pad(), remove_thread_event_breakpoints(), stop_tracing(), and upload_fast_traceframes().
int delete_fast_tracepoint_jump | ( | struct fast_tracepoint_jump * | todel | ) |
Definition at line 298 of file mem-break.c.
References current_process(), debug_threads, fast_tracepoint_jump_shadow, process_info::fast_tracepoint_jumps, fast_tracepoint_jump::length, memcpy(), 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_at | ( | CORE_ADDR | addr | ) |
Definition at line 735 of file mem-break.c.
References breakpoint_data, clear_gdb_breakpoint_conditions(), delete_breakpoint(), and find_gdb_breakpoint_at().
Referenced by set_gdb_breakpoint_at(), and x86_remove_point().
void delete_reinsert_breakpoints | ( | void | ) |
Definition at line 989 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 | ) |
Definition at line 290 of file mem-break.c.
References find_fast_tracepoint_jump_at().
Referenced by need_step_over_p().
struct breakpoint* find_gdb_breakpoint_at | ( | CORE_ADDR | where | ) | [read] |
Definition at line 688 of file mem-break.c.
References process_info::breakpoints, current_process(), gdb_breakpoint, breakpoint::next, raw_breakpoint::pc, breakpoint::raw, and breakpoint::type.
Referenced by add_breakpoint_commands(), add_breakpoint_condition(), clear_gdb_breakpoint_conditions(), delete_gdb_breakpoint_at(), gdb_breakpoint_here(), gdb_condition_true_at_breakpoint(), gdb_no_commands_at_breakpoint(), run_breakpoint_commands(), and set_gdb_breakpoint_at().
void free_all_breakpoints | ( | struct process_info * | proc | ) |
Definition at line 1435 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 974 of file mem-break.c.
References find_gdb_breakpoint_at().
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 836 of file mem-break.c.
References point_cond_list::cond, breakpoint::cond_list, current_inferior, find_gdb_breakpoint_at(), 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 linux_wait_1(), and need_step_over_p().
int gdb_no_commands_at_breakpoint | ( | CORE_ADDR | where | ) |
Definition at line 927 of file mem-break.c.
References breakpoint::command_list, debug_threads, find_gdb_breakpoint_at(), paddress(), and phex_nz().
Referenced by linux_wait_1(), and need_step_over_p().
void inc_ref_fast_tracepoint_jump | ( | struct fast_tracepoint_jump * | jp | ) |
Definition at line 361 of file mem-break.c.
References fast_tracepoint_jump::refcount.
Referenced by clone_fast_tracepoint().
void mark_breakpoints_out | ( | struct process_info * | proc | ) |
Definition at line 1423 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().
void reinsert_all_breakpoints | ( | void | ) |
Definition at line 1117 of file mem-break.c.
References current_process(), raw_breakpoint::inserted, raw_breakpoint::next, process_info::raw_breakpoints, and reinsert_raw_breakpoint().
Referenced by run_inferior_command().
void reinsert_breakpoints_at | ( | CORE_ADDR | where | ) |
Definition at line 1096 of file mem-break.c.
References debug_threads, find_raw_breakpoint_at(), paddress(), and reinsert_raw_breakpoint().
Referenced by finish_step_over().
void reinsert_fast_tracepoint_jumps_at | ( | CORE_ADDR | where | ) |
Definition at line 491 of file mem-break.c.
References debug_threads, error(), fast_tracepoint_jump_shadow, find_fast_tracepoint_jump_at(), fast_tracepoint_jump::inserted, fast_tracepoint_jump::length, memcpy(), paddress(), strerror, and write_inferior_memory().
Referenced by finish_step_over().
void run_breakpoint_commands | ( | CORE_ADDR | where | ) |
Definition at line 942 of file mem-break.c.
References point_command_list::cmd, breakpoint::command_list, current_inferior, find_gdb_breakpoint_at(), 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 linux_wait_1().
struct breakpoint* set_breakpoint_at | ( | CORE_ADDR | where, |
int(*)(CORE_ADDR) | handler | ||
) | [read] |
Definition at line 538 of file mem-break.c.
References process_info::breakpoints, current_process(), breakpoint::handler, breakpoint::next, other_breakpoint, breakpoint::raw, set_raw_breakpoint_at(), breakpoint::type, and xcalloc().
Referenced by cmd_qtstart(), get_child_debug_event(), install_tracepoint(), maybe_move_out_of_jump_pad(), set_gdb_breakpoint_at(), 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 1163 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 | ||
) | [read] |
Definition at line 367 of file mem-break.c.
References current_process(), 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, memcpy(), 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().
int set_gdb_breakpoint_at | ( | CORE_ADDR | where | ) |
Definition at line 701 of file mem-break.c.
References breakpoint_data, delete_gdb_breakpoint_at(), find_gdb_breakpoint_at(), gdb_breakpoint, set_breakpoint_at(), breakpoint::type, and validate_breakpoints().
Referenced by x86_insert_point().
void set_reinsert_breakpoint | ( | CORE_ADDR | stop_at | ) |
Definition at line 980 of file mem-break.c.
References reinsert_breakpoint, set_breakpoint_at(), and breakpoint::type.
Referenced by start_step_over().
void uninsert_all_breakpoints | ( | void | ) |
Definition at line 1067 of file mem-break.c.
References current_process(), raw_breakpoint::inserted, raw_breakpoint::next, process_info::raw_breakpoints, and uninsert_raw_breakpoint().
Referenced by run_inferior_command().
void uninsert_breakpoints_at | ( | CORE_ADDR | where | ) |
Definition at line 1045 of file mem-break.c.
References debug_threads, find_raw_breakpoint_at(), raw_breakpoint::inserted, paddress(), and uninsert_raw_breakpoint().
Referenced by start_step_over().
void uninsert_fast_tracepoint_jumps_at | ( | CORE_ADDR | pc | ) |
Definition at line 442 of file mem-break.c.
References debug_threads, fast_tracepoint_jump_shadow, find_fast_tracepoint_jump_at(), fast_tracepoint_jump::inserted, fast_tracepoint_jump::length, memcpy(), paddress(), fast_tracepoint_jump::pc, strerror, and write_inferior_memory().
Referenced by start_step_over().
void validate_breakpoints | ( | void | ) |
Definition at line 1228 of file mem-break.c.
References process_info::breakpoints, current_process(), delete_disabled_breakpoints(), raw_breakpoint::inserted, breakpoint::next, breakpoint::raw, and validate_inserted_breakpoint().
Referenced by handle_query(), and set_gdb_breakpoint_at().