GDB (xrefs)
|
#include "defs.h"
#include "gdbarch.h"
#include "inferior.h"
#include "cli/cli-cmds.h"
#include "aarch64-nat.h"
#include <unordered_map>
Go to the source code of this file.
Functions | |
struct aarch64_debug_reg_state * | aarch64_lookup_debug_reg_state (pid_t pid) |
struct aarch64_debug_reg_state * | aarch64_get_debug_reg_state (pid_t pid) |
void | aarch64_remove_debug_reg_state (pid_t pid) |
int | aarch64_can_use_hw_breakpoint (enum bptype type, int cnt, int othertype) |
int | aarch64_insert_hw_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt) |
int | aarch64_remove_hw_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt) |
int | aarch64_insert_watchpoint (CORE_ADDR addr, int len, enum target_hw_bp_type type, struct expression *cond) |
int | aarch64_remove_watchpoint (CORE_ADDR addr, int len, enum target_hw_bp_type type, struct expression *cond) |
bool | aarch64_stopped_data_address (const struct aarch64_debug_reg_state *state, CORE_ADDR addr_trap, CORE_ADDR *addr_p) |
static void | add_show_debug_regs_command (void) |
void | aarch64_initialize_hw_point () |
Variables | |
static std::unordered_map< pid_t, aarch64_debug_reg_state > | aarch64_debug_process_state |
int aarch64_can_use_hw_breakpoint | ( | enum bptype | type, |
int | cnt, | ||
int | othertype ) |
Definition at line 75 of file aarch64-nat.c.
References aarch64_num_bp_regs, aarch64_num_wp_regs, bp_access_watchpoint, bp_hardware_breakpoint, bp_hardware_watchpoint, bp_read_watchpoint, and bp_watchpoint.
Referenced by aarch64_nat_target< BaseTarget >::can_use_hw_breakpoint().
struct aarch64_debug_reg_state * aarch64_get_debug_reg_state | ( | pid_t | pid | ) |
Definition at line 51 of file aarch64-nat.c.
References aarch64_debug_process_state, and pid.
Referenced by aarch64_insert_hw_breakpoint(), aarch64_insert_watchpoint(), aarch64_linux_new_thread(), aarch64_linux_prepare_to_resume(), aarch64_remove_hw_breakpoint(), aarch64_remove_watchpoint(), aarch64_linux_nat_target::low_new_fork(), and aarch64_linux_nat_target::stopped_data_address().
void aarch64_initialize_hw_point | ( | ) |
Definition at line 298 of file aarch64-nat.c.
References add_show_debug_regs_command().
Referenced by _initialize_aarch64_fbsd_nat(), and _initialize_aarch64_linux_nat().
int aarch64_insert_hw_breakpoint | ( | struct gdbarch * | gdbarch, |
struct bp_target_info * | bp_tgt ) |
Definition at line 104 of file aarch64-nat.c.
References aarch64_get_debug_reg_state(), aarch64_handle_breakpoint(), aarch64_show_debug_reg_state(), gdb_printf(), gdb_stdlog, gdbarch_breakpoint_from_pc(), inferior_ptid, bp_target_info::placed_address, and bp_target_info::reqstd_address.
Referenced by aarch64_nat_target< BaseTarget >::insert_hw_breakpoint().
int aarch64_insert_watchpoint | ( | CORE_ADDR | addr, |
int | len, | ||
enum target_hw_bp_type | type, | ||
struct expression * | cond ) |
Definition at line 171 of file aarch64-nat.c.
References aarch64_get_debug_reg_state(), aarch64_handle_watchpoint(), aarch64_show_debug_reg_state(), gdb_printf(), gdb_stdlog, and inferior_ptid.
Referenced by aarch64_nat_target< BaseTarget >::insert_watchpoint().
struct aarch64_debug_reg_state * aarch64_lookup_debug_reg_state | ( | pid_t | pid | ) |
Definition at line 39 of file aarch64-nat.c.
References aarch64_debug_process_state, and pid.
void aarch64_remove_debug_reg_state | ( | pid_t | pid | ) |
Definition at line 59 of file aarch64-nat.c.
References aarch64_debug_process_state, and pid.
Referenced by aarch64_linux_nat_target::low_forget_process().
int aarch64_remove_hw_breakpoint | ( | struct gdbarch * | gdbarch, |
struct bp_target_info * | bp_tgt ) |
Definition at line 137 of file aarch64-nat.c.
References aarch64_get_debug_reg_state(), aarch64_handle_breakpoint(), aarch64_show_debug_reg_state(), gdb_printf(), gdb_stdlog, gdbarch_breakpoint_from_pc(), inferior_ptid, and bp_target_info::placed_address.
Referenced by aarch64_nat_target< BaseTarget >::remove_hw_breakpoint().
int aarch64_remove_watchpoint | ( | CORE_ADDR | addr, |
int | len, | ||
enum target_hw_bp_type | type, | ||
struct expression * | cond ) |
Definition at line 202 of file aarch64-nat.c.
References aarch64_get_debug_reg_state(), aarch64_handle_watchpoint(), aarch64_show_debug_reg_state(), gdb_printf(), gdb_stdlog, and inferior_ptid.
Referenced by aarch64_nat_target< BaseTarget >::remove_watchpoint().
bool aarch64_stopped_data_address | ( | const struct aarch64_debug_reg_state * | state, |
CORE_ADDR | addr_trap, | ||
CORE_ADDR * | addr_p ) |
Definition at line 231 of file aarch64-nat.c.
References aarch64_num_wp_regs, aarch64_watchpoint_length(), aarch64_watchpoint_offset(), aarch64_debug_reg_state::dr_addr_orig_wp, aarch64_debug_reg_state::dr_addr_wp, DR_CONTROL_ENABLED, aarch64_debug_reg_state::dr_ctrl_wp, and aarch64_debug_reg_state::dr_ref_count_wp.
Referenced by aarch64_linux_nat_target::stopped_data_address().
|
static |
Definition at line 279 of file aarch64-nat.c.
References add_setshow_boolean_cmd(), class_maintenance, maintenance_set_cmdlist, and maintenance_show_cmdlist.
Referenced by aarch64_initialize_hw_point().
|
static |
Definition at line 34 of file aarch64-nat.c.
Referenced by aarch64_get_debug_reg_state(), aarch64_lookup_debug_reg_state(), and aarch64_remove_debug_reg_state().