GDB (xrefs)
|
#include "defs.h"
#include "x86-nat.h"
#include "gdbcmd.h"
#include "inferior.h"
#include <unordered_map>
Go to the source code of this file.
Functions | |
struct x86_debug_reg_state * | x86_lookup_debug_reg_state (pid_t pid) |
struct x86_debug_reg_state * | x86_debug_reg_state (pid_t pid) |
void | x86_forget_process (pid_t pid) |
void | x86_cleanup_dregs (void) |
int | x86_insert_watchpoint (CORE_ADDR addr, int len, enum target_hw_bp_type type, struct expression *cond) |
int | x86_remove_watchpoint (CORE_ADDR addr, int len, enum target_hw_bp_type type, struct expression *cond) |
int | x86_region_ok_for_hw_watchpoint (CORE_ADDR addr, int len) |
int | x86_stopped_data_address (CORE_ADDR *addr_p) |
int | x86_stopped_by_watchpoint () |
int | x86_insert_hw_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt) |
int | x86_remove_hw_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt) |
int | x86_can_use_hw_breakpoint (enum bptype type, int cnt, int othertype) |
int | x86_stopped_by_hw_breakpoint () |
static void | add_show_debug_regs_command (void) |
void | x86_set_debug_register_length (int len) |
Variables | |
struct x86_dr_low_type | x86_dr_low |
static std::unordered_map< pid_t, struct x86_debug_reg_state > | x86_debug_process_state |
|
static |
Definition at line 215 of file x86-nat.c.
References add_setshow_boolean_cmd(), class_maintenance, maintenance_set_cmdlist, and maintenance_show_cmdlist.
Referenced by x86_set_debug_register_length().
int x86_can_use_hw_breakpoint | ( | enum bptype | type, |
int | cnt, | ||
int | othertype ) |
Definition at line 197 of file x86-nat.c.
Referenced by x86_nat_target< BaseTarget >::can_use_hw_breakpoint().
void x86_cleanup_dregs | ( | void | ) |
Definition at line 81 of file x86-nat.c.
References inferior_ptid, and x86_forget_process().
Referenced by windows_nat_target::detach(), go32_nat_target::mourn_inferior(), windows_nat_target::mourn_inferior(), and x86_linux_nat_target::post_startup_inferior().
struct x86_debug_reg_state * x86_debug_reg_state | ( | pid_t | pid | ) |
Definition at line 64 of file x86-nat.c.
References pid, and x86_debug_process_state.
Referenced by x86_fbsd_nat_target::low_new_fork(), x86_linux_nat_target::low_new_fork(), x86_insert_hw_breakpoint(), x86_insert_watchpoint(), x86_linux_update_debug_registers(), x86_region_ok_for_hw_watchpoint(), x86_remove_hw_breakpoint(), x86_remove_watchpoint(), x86_stopped_by_hw_breakpoint(), x86_stopped_by_watchpoint(), and x86_stopped_data_address().
void x86_forget_process | ( | pid_t | pid | ) |
Definition at line 72 of file x86-nat.c.
References pid, and x86_debug_process_state.
Referenced by x86_linux_nat_target::low_forget_process(), and x86_cleanup_dregs().
int x86_insert_hw_breakpoint | ( | struct gdbarch * | gdbarch, |
struct bp_target_info * | bp_tgt ) |
Definition at line 155 of file x86-nat.c.
References inferior_ptid, bp_target_info::placed_address, bp_target_info::reqstd_address, x86_debug_reg_state(), and x86_dr_insert_watchpoint().
Referenced by x86_nat_target< BaseTarget >::insert_hw_breakpoint().
int x86_insert_watchpoint | ( | CORE_ADDR | addr, |
int | len, | ||
enum target_hw_bp_type | type, | ||
struct expression * | cond ) |
Definition at line 92 of file x86-nat.c.
References inferior_ptid, x86_debug_reg_state(), and x86_dr_insert_watchpoint().
Referenced by x86_nat_target< BaseTarget >::insert_watchpoint().
struct x86_debug_reg_state * x86_lookup_debug_reg_state | ( | pid_t | pid | ) |
Definition at line 52 of file x86-nat.c.
References pid, and x86_debug_process_state.
Referenced by x86_fbsd_nat_target::low_new_fork().
int x86_region_ok_for_hw_watchpoint | ( | CORE_ADDR | addr, |
int | len ) |
Definition at line 118 of file x86-nat.c.
References inferior_ptid, x86_debug_reg_state(), and x86_dr_region_ok_for_watchpoint().
Referenced by x86_nat_target< BaseTarget >::region_ok_for_hw_watchpoint().
int x86_remove_hw_breakpoint | ( | struct gdbarch * | gdbarch, |
struct bp_target_info * | bp_tgt ) |
Definition at line 169 of file x86-nat.c.
References inferior_ptid, bp_target_info::placed_address, x86_debug_reg_state(), and x86_dr_remove_watchpoint().
Referenced by x86_nat_target< BaseTarget >::remove_hw_breakpoint().
int x86_remove_watchpoint | ( | CORE_ADDR | addr, |
int | len, | ||
enum target_hw_bp_type | type, | ||
struct expression * | cond ) |
Definition at line 105 of file x86-nat.c.
References inferior_ptid, x86_debug_reg_state(), and x86_dr_remove_watchpoint().
Referenced by x86_nat_target< BaseTarget >::remove_watchpoint().
void x86_set_debug_register_length | ( | int | len | ) |
Definition at line 236 of file x86-nat.c.
References add_show_debug_regs_command(), x86_dr_low_type::debug_register_length, and x86_dr_low.
Referenced by _initialize_amd64_windows_nat(), _initialize_go32_nat(), _initialize_i386_darwin_nat(), _initialize_i386_windows_nat(), _initialize_i386gnu_nat(), and _initialize_x86_bsd_nat().
int x86_stopped_by_hw_breakpoint | ( | ) |
Definition at line 206 of file x86-nat.c.
References inferior_ptid, x86_debug_reg_state(), and x86_dr_stopped_by_hw_breakpoint().
Referenced by x86_nat_target< BaseTarget >::stopped_by_hw_breakpoint().
int x86_stopped_by_watchpoint | ( | ) |
Definition at line 143 of file x86-nat.c.
References inferior_ptid, x86_debug_reg_state(), and x86_dr_stopped_by_watchpoint().
Referenced by x86_nat_target< BaseTarget >::stopped_by_watchpoint().
int x86_stopped_data_address | ( | CORE_ADDR * | addr_p | ) |
Definition at line 131 of file x86-nat.c.
References inferior_ptid, x86_debug_reg_state(), and x86_dr_stopped_data_address().
Referenced by x86_nat_target< BaseTarget >::stopped_data_address().
|
static |
Definition at line 47 of file x86-nat.c.
Referenced by x86_debug_reg_state(), x86_forget_process(), and x86_lookup_debug_reg_state().
struct x86_dr_low_type x86_dr_low |
Definition at line 39 of file x86-nat.c.
Referenced by _initialize_go32_nat(), _initialize_i386_darwin_nat(), _initialize_i386gnu_nat(), _initialize_windows_nat(), _initialize_x86_bsd_nat(), x86_dr_low_can_set_addr(), x86_dr_low_can_set_control(), x86_dr_low_get_addr(), x86_dr_low_get_control(), x86_dr_low_get_status(), x86_dr_low_set_addr(), x86_dr_low_set_control(), x86_get_debug_register_length(), and x86_set_debug_register_length().