GDB (xrefs)
Loading...
Searching...
No Matches
Functions | Variables
x86-nat.c File Reference
#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_statex86_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_statex86_debug_process_state
 

Function Documentation

◆ add_show_debug_regs_command()

static void add_show_debug_regs_command ( void )
static

◆ x86_can_use_hw_breakpoint()

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().

◆ x86_cleanup_dregs()

void x86_cleanup_dregs ( void )

◆ x86_debug_reg_state()

struct x86_debug_reg_state * x86_debug_reg_state ( pid_t pid)

◆ x86_forget_process()

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().

◆ x86_insert_hw_breakpoint()

int x86_insert_hw_breakpoint ( struct gdbarch * gdbarch,
struct bp_target_info * bp_tgt )

◆ x86_insert_watchpoint()

int x86_insert_watchpoint ( CORE_ADDR addr,
int len,
enum target_hw_bp_type type,
struct expression * cond )

◆ x86_lookup_debug_reg_state()

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().

◆ x86_region_ok_for_hw_watchpoint()

int x86_region_ok_for_hw_watchpoint ( CORE_ADDR addr,
int len )

◆ x86_remove_hw_breakpoint()

int x86_remove_hw_breakpoint ( struct gdbarch * gdbarch,
struct bp_target_info * bp_tgt )

◆ x86_remove_watchpoint()

int x86_remove_watchpoint ( CORE_ADDR addr,
int len,
enum target_hw_bp_type type,
struct expression * cond )

◆ x86_set_debug_register_length()

void x86_set_debug_register_length ( int len)

◆ x86_stopped_by_hw_breakpoint()

int x86_stopped_by_hw_breakpoint ( )

◆ x86_stopped_by_watchpoint()

int x86_stopped_by_watchpoint ( )

◆ x86_stopped_data_address()

int x86_stopped_data_address ( CORE_ADDR * addr_p)

Variable Documentation

◆ x86_debug_process_state

std::unordered_map<pid_t, struct x86_debug_reg_state> x86_debug_process_state
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().

◆ x86_dr_low

struct x86_dr_low_type x86_dr_low