OpenOCD
|
Go to the source code of this file.
Enumerations | |
enum | breakpoint_watchpoint { BREAKPOINT , WATCHPOINT } |
Variables | |
static int | bpwp_unique_id |
static const char *const | breakpoint_type_strings [] |
static const char *const | watchpoint_rw_strings [] |
Enumerator | |
---|---|
BREAKPOINT | |
WATCHPOINT |
Definition at line 20 of file breakpoints.c.
int breakpoint_add | ( | struct target * | target, |
target_addr_t | address, | ||
unsigned int | length, | ||
enum breakpoint_type | type | ||
) |
Definition at line 208 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(), esp32_apptrace_safe_halt_targets(), gdb_breakpoint_watchpoint_packet(), handle_bp_command_set(), and handle_reset_halt().
|
static |
Definition at line 39 of file breakpoints.c.
References breakpoint::address, bpwp_unique_id, breakpoint_type_strings, target::breakpoints, ERROR_OK, ERROR_TARGET_DUPLICATE_BREAKPOINT, ERROR_TARGET_NOT_HALTED, ERROR_TARGET_RESOURCE_NOT_AVAILABLE, length, LOG_TARGET_DEBUG, LOG_TARGET_ERROR, breakpoint::next, NULL, target_add_breakpoint(), TARGET_ADDR_FMT, type, and breakpoint::unique_id.
Referenced by breakpoint_add().
int breakpoint_clear_target | ( | struct target * | target | ) |
Definition at line 468 of file breakpoints.c.
References breakpoint_remove_all_internal(), ERROR_OK, foreach_smp_target, target::smp, target::smp_targets, status, and target_list::target.
Referenced by gdb_new_connection(), and gdb_restart_inferior().
struct breakpoint* breakpoint_find | ( | struct target * | target, |
target_addr_t | address | ||
) |
Definition at line 489 of file breakpoints.c.
References breakpoint::address, target::breakpoints, breakpoint::next, and NULL.
Referenced by adapter_resume(), adapter_step(), arc_resume(), arc_step(), arm7_9_resume(), arm7_9_step(), avr32_ap7k_resume(), cortex_a_internal_restore(), cortex_a_step(), cortex_m_erratum_check_breakpoint(), cortex_m_restore_one(), 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 277 of file breakpoints.c.
References target::breakpoints, ERROR_OK, LOG_TARGET_DEBUG, LOG_TARGET_ERROR, breakpoint::next, breakpoint::number, breakpoint::orig_instr, target_remove_breakpoint(), and breakpoint::unique_id.
Referenced by breakpoint_remove_all_internal(), and breakpoint_remove_internal().
int breakpoint_remove | ( | struct target * | target, |
target_addr_t | address | ||
) |
Definition at line 344 of file breakpoints.c.
References breakpoint_remove_internal(), ERROR_BREAKPOINT_NOT_FOUND, ERROR_OK, foreach_smp_target, LOG_TARGET_ERROR, target::smp, target::smp_targets, status, target_list::target, and TARGET_ADDR_FMT.
Referenced by arm7_9_setup_semihosting(), armv4_5_run_algorithm_inner(), COMMAND_HANDLER(), cortex_m_step(), esp32_apptrace_safe_halt_targets(), gdb_breakpoint_watchpoint_packet(), and handle_reset_halt().
int breakpoint_remove_all | ( | struct target * | target | ) |
Definition at line 458 of file breakpoints.c.
References BREAKPOINT, and breakpoint_watchpoint_remove_all().
Referenced by COMMAND_HANDLER(), and target_destroy().
|
static |
Definition at line 326 of file breakpoints.c.
References breakpoint_free(), target::breakpoints, ERROR_OK, LOG_TARGET_DEBUG, breakpoint::next, and status.
Referenced by breakpoint_clear_target(), and breakpoint_watchpoint_remove_all().
|
static |
Definition at line 308 of file breakpoints.c.
References breakpoint::address, breakpoint::asid, breakpoint_free(), target::breakpoints, ERROR_BREAKPOINT_NOT_FOUND, and breakpoint::next.
Referenced by breakpoint_remove().
|
static |
Definition at line 429 of file breakpoints.c.
References BREAKPOINT, breakpoint_remove_all_internal(), ERROR_OK, foreach_smp_target, target::smp, target::smp_targets, status, target_list::target, WATCHPOINT, and watchpoint_remove_all_internal().
Referenced by breakpoint_remove_all(), and watchpoint_remove_all().
int context_breakpoint_add | ( | struct target * | target, |
uint32_t | asid, | ||
unsigned int | length, | ||
enum breakpoint_type | type | ||
) |
Definition at line 234 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 102 of file breakpoints.c.
References breakpoint::asid, bpwp_unique_id, breakpoint_type_strings, target::breakpoints, ERROR_OK, ERROR_TARGET_DUPLICATE_BREAKPOINT, length, LOG_TARGET_DEBUG, LOG_TARGET_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, | ||
unsigned int | length, | ||
enum breakpoint_type | type | ||
) |
Definition at line 255 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 151 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_TARGET_DEBUG, LOG_TARGET_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, | ||
unsigned int | length, | ||
enum watchpoint_rw | rw, | ||
uint64_t | value, | ||
uint64_t | mask | ||
) |
Definition at line 568 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 502 of file breakpoints.c.
References watchpoint::address, bpwp_unique_id, ERROR_FAIL, ERROR_OK, ERROR_TARGET_NOT_HALTED, ERROR_TARGET_RESOURCE_NOT_AVAILABLE, length, watchpoint::length, LOG_TARGET_DEBUG, LOG_TARGET_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().
int watchpoint_clear_target | ( | struct target * | target | ) |
Definition at line 644 of file breakpoints.c.
References ERROR_OK, LOG_TARGET_DEBUG, watchpoint::next, status, watchpoint_free(), and target::watchpoints.
Referenced by gdb_new_connection(), and gdb_restart_inferior().
|
static |
Definition at line 384 of file breakpoints.c.
References ERROR_OK, LOG_TARGET_DEBUG, LOG_TARGET_ERROR, watchpoint::next, watchpoint::number, target_remove_watchpoint(), watchpoint::unique_id, and target::watchpoints.
Referenced by watchpoint_clear_target(), watchpoint_remove_all_internal(), and watchpoint_remove_internal().
int watchpoint_hit | ( | struct target * | target, |
enum watchpoint_rw * | rw, | ||
target_addr_t * | address | ||
) |
Definition at line 661 of file breakpoints.c.
References watchpoint::address, ERROR_FAIL, ERROR_OK, LOG_TARGET_DEBUG, watchpoint::rw, TARGET_ADDR_FMT, target_hit_watchpoint(), and watchpoint::unique_id.
Referenced by gdb_signal_reply().
int watchpoint_remove | ( | struct target * | target, |
target_addr_t | address | ||
) |
Definition at line 605 of file breakpoints.c.
References ERROR_OK, ERROR_WATCHPOINT_NOT_FOUND, foreach_smp_target, LOG_TARGET_ERROR, target::smp, target::smp_targets, status, target_list::target, TARGET_ADDR_FMT, and watchpoint_remove_internal().
Referenced by COMMAND_HANDLER(), esp_xtensa_smp_watchpoint_remove(), and gdb_breakpoint_watchpoint_packet().
int watchpoint_remove_all | ( | struct target * | target | ) |
Definition at line 463 of file breakpoints.c.
References breakpoint_watchpoint_remove_all(), and WATCHPOINT.
Referenced by COMMAND_HANDLER(), and target_destroy().
|
static |
Definition at line 413 of file breakpoints.c.
References ERROR_OK, watchpoint::next, status, watchpoint_free(), and target::watchpoints.
Referenced by breakpoint_watchpoint_remove_all().
|
static |
Definition at line 588 of file breakpoints.c.
References watchpoint::address, ERROR_WATCHPOINT_NOT_FOUND, watchpoint::next, watchpoint_free(), and target::watchpoints.
Referenced by watchpoint_remove().
|
static |
Definition at line 37 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 25 of file breakpoints.c.
Referenced by breakpoint_add_internal(), context_breakpoint_add_internal(), and hybrid_breakpoint_add_internal().
|
static |
Definition at line 30 of file breakpoints.c.
Referenced by watchpoint_add_internal().