OpenOCD
|
Go to the source code of this file.
Variables | |
static int | bpwp_unique_id |
static const char *const | breakpoint_type_strings [] |
static const char *const | watchpoint_rw_strings [] |
int breakpoint_add | ( | struct target * | target, |
target_addr_t | address, | ||
uint32_t | length, | ||
enum breakpoint_type | type | ||
) |
Definition at line 204 of file breakpoints.c.
References BKPT_SOFT, breakpoint_add_internal(), ERROR_OK, foreach_smp_target, length, lh(), list_first_entry, target::smp, target::smp_targets, target_list::target, and type.
Referenced by arm7_9_setup_semihosting(), armv4_5_run_algorithm_inner(), cortex_m_step(), gdb_breakpoint_watchpoint_packet(), handle_bp_command_set(), and handle_reset_halt().
|
static |
Definition at line 34 of file breakpoints.c.
References breakpoint::address, bpwp_unique_id, breakpoint_type_strings, target::breakpoints, target::coreid, ERROR_OK, ERROR_TARGET_DUPLICATE_BREAKPOINT, ERROR_TARGET_NOT_HALTED, ERROR_TARGET_RESOURCE_NOT_AVAILABLE, length, LOG_DEBUG, LOG_ERROR, breakpoint::next, NULL, target_add_breakpoint(), TARGET_ADDR_FMT, type, and breakpoint::unique_id.
Referenced by breakpoint_add().
void breakpoint_clear_target | ( | struct target * | target | ) |
Definition at line 368 of file breakpoints.c.
References breakpoint_clear_target_internal(), foreach_smp_target, target::smp, target::smp_targets, and target_list::target.
Referenced by gdb_new_connection(), and gdb_restart_inferior().
|
static |
Definition at line 360 of file breakpoints.c.
References breakpoint_free(), target::breakpoints, LOG_DEBUG, and target_name().
Referenced by breakpoint_clear_target().
struct breakpoint* breakpoint_find | ( | struct target * | target, |
target_addr_t | address | ||
) |
Definition at line 382 of file breakpoints.c.
References breakpoint::address, target::breakpoints, breakpoint::next, and NULL.
Referenced by adapter_resume(), adapter_step(), arc_step(), arm7_9_resume(), arm7_9_step(), avr32_ap7k_resume(), cortex_a_internal_restore(), cortex_a_step(), cortex_m_resume(), cortex_m_step(), esirisc_debug_entry(), esirisc_resume_or_step(), lakemont_poll(), lakemont_resume(), lakemont_step(), mips_m4k_internal_restore(), mips_m4k_step(), mips_mips64_resume(), mips_mips64_step(), or1k_debug_entry(), or1k_resume_or_step(), stm8_resume(), stm8_step(), xscale_enable_single_step(), xscale_resume(), and xscale_step().
|
static |
Definition at line 273 of file breakpoints.c.
References target::breakpoints, LOG_DEBUG, breakpoint::next, breakpoint::orig_instr, target_remove_breakpoint(), and breakpoint::unique_id.
Referenced by breakpoint_clear_target_internal(), breakpoint_remove_all_internal(), and breakpoint_remove_internal().
void breakpoint_remove | ( | struct target * | target, |
target_addr_t | address | ||
) |
Definition at line 329 of file breakpoints.c.
References breakpoint_remove_internal(), foreach_smp_target, LOG_ERROR, target::smp, target::smp_targets, target_list::target, and TARGET_ADDR_FMT.
Referenced by arm7_9_setup_semihosting(), armv4_5_run_algorithm_inner(), COMMAND_HANDLER(), cortex_m_step(), gdb_breakpoint_watchpoint_packet(), and handle_reset_halt().
void breakpoint_remove_all | ( | struct target * | target | ) |
Definition at line 346 of file breakpoints.c.
References breakpoint_remove_all_internal(), foreach_smp_target, target::smp, target::smp_targets, and target_list::target.
Referenced by COMMAND_HANDLER().
|
static |
Definition at line 318 of file breakpoints.c.
References breakpoint_free(), target::breakpoints, and breakpoint::next.
Referenced by breakpoint_remove_all().
|
static |
Definition at line 297 of file breakpoints.c.
References breakpoint::address, breakpoint::asid, breakpoint_free(), target::breakpoints, LOG_ERROR, breakpoint::next, target::smp, and TARGET_ADDR_FMT.
Referenced by breakpoint_remove().
int context_breakpoint_add | ( | struct target * | target, |
uint32_t | asid, | ||
uint32_t | length, | ||
enum breakpoint_type | type | ||
) |
Definition at line 230 of file breakpoints.c.
References context_breakpoint_add_internal(), ERROR_OK, foreach_smp_target, length, target::smp, target::smp_targets, target_list::target, and type.
Referenced by handle_bp_command_set().
|
static |
Definition at line 98 of file breakpoints.c.
References breakpoint::asid, bpwp_unique_id, breakpoint_type_strings, target::breakpoints, ERROR_OK, ERROR_TARGET_DUPLICATE_BREAKPOINT, length, LOG_DEBUG, LOG_ERROR, breakpoint::next, NULL, target_add_context_breakpoint(), type, and breakpoint::unique_id.
Referenced by context_breakpoint_add().
int hybrid_breakpoint_add | ( | struct target * | target, |
target_addr_t | address, | ||
uint32_t | asid, | ||
uint32_t | length, | ||
enum breakpoint_type | type | ||
) |
Definition at line 251 of file breakpoints.c.
References ERROR_OK, foreach_smp_target, hybrid_breakpoint_add_internal(), length, target::smp, target::smp_targets, target_list::target, and type.
Referenced by handle_bp_command_set().
|
static |
Definition at line 147 of file breakpoints.c.
References breakpoint::address, breakpoint::asid, bpwp_unique_id, breakpoint_type_strings, target::breakpoints, ERROR_OK, ERROR_TARGET_DUPLICATE_BREAKPOINT, length, LOG_DEBUG, LOG_ERROR, breakpoint::next, NULL, target_add_hybrid_breakpoint(), TARGET_ADDR_FMT, type, and breakpoint::unique_id.
Referenced by hybrid_breakpoint_add().
int watchpoint_add | ( | struct target * | target, |
target_addr_t | address, | ||
uint32_t | length, | ||
enum watchpoint_rw | rw, | ||
uint32_t | value, | ||
uint32_t | mask | ||
) |
Definition at line 462 of file breakpoints.c.
References ERROR_OK, foreach_smp_target, length, mask, target::smp, target::smp_targets, target_list::target, and watchpoint_add_internal().
Referenced by COMMAND_HANDLER(), esp_xtensa_smp_watchpoint_add(), and gdb_breakpoint_watchpoint_packet().
|
static |
Definition at line 395 of file breakpoints.c.
References watchpoint::address, bpwp_unique_id, target::coreid, ERROR_FAIL, ERROR_OK, ERROR_TARGET_NOT_HALTED, ERROR_TARGET_RESOURCE_NOT_AVAILABLE, length, watchpoint::length, LOG_DEBUG, LOG_ERROR, watchpoint::mask, mask, watchpoint::next, NULL, watchpoint::rw, target_add_watchpoint(), TARGET_ADDR_FMT, watchpoint::unique_id, watchpoint::value, watchpoint_rw_strings, and target::watchpoints.
Referenced by watchpoint_add().
void watchpoint_clear_target | ( | struct target * | target | ) |
Definition at line 540 of file breakpoints.c.
References LOG_DEBUG, target_name(), watchpoint_free(), and target::watchpoints.
Referenced by gdb_new_connection(), and gdb_restart_inferior().
|
static |
Definition at line 482 of file breakpoints.c.
References LOG_DEBUG, watchpoint::next, target_remove_watchpoint(), watchpoint::unique_id, and target::watchpoints.
Referenced by watchpoint_clear_target(), and watchpoint_remove_internal().
int watchpoint_hit | ( | struct target * | target, |
enum watchpoint_rw * | rw, | ||
target_addr_t * | address | ||
) |
Definition at line 548 of file breakpoints.c.
References watchpoint::address, ERROR_FAIL, ERROR_OK, LOG_DEBUG, watchpoint::rw, TARGET_ADDR_FMT, target_hit_watchpoint(), and watchpoint::unique_id.
Referenced by gdb_signal_reply().
void watchpoint_remove | ( | struct target * | target, |
target_addr_t | address | ||
) |
Definition at line 523 of file breakpoints.c.
References foreach_smp_target, LOG_ERROR, target::smp, target::smp_targets, target_list::target, TARGET_ADDR_FMT, and watchpoint_remove_internal().
Referenced by COMMAND_HANDLER(), esp_xtensa_smp_watchpoint_remove(), and gdb_breakpoint_watchpoint_packet().
|
static |
Definition at line 503 of file breakpoints.c.
References watchpoint::address, LOG_ERROR, watchpoint::next, target::smp, TARGET_ADDR_FMT, watchpoint_free(), and target::watchpoints.
Referenced by watchpoint_remove().
|
static |
Definition at line 32 of file breakpoints.c.
Referenced by breakpoint_add_internal(), context_breakpoint_add_internal(), hybrid_breakpoint_add_internal(), and watchpoint_add_internal().
|
static |
Definition at line 20 of file breakpoints.c.
Referenced by breakpoint_add_internal(), context_breakpoint_add_internal(), and hybrid_breakpoint_add_internal().
|
static |
Definition at line 25 of file breakpoints.c.
Referenced by watchpoint_add_internal().