GDB (xrefs)
Classes | Functions | Variables
/tmp/gdb-7.10/gdb/x86-nat.c File Reference
#include "defs.h"
#include "x86-nat.h"
#include "gdbcmd.h"
#include "inferior.h"

Go to the source code of this file.

Classes

struct  x86_process_info
 

Functions

static struct x86_process_infox86_find_process_pid (pid_t pid)
 
static struct x86_process_infox86_add_process (pid_t pid)
 
static struct x86_process_infox86_process_info_get (pid_t pid)
 
struct x86_debug_reg_statex86_debug_reg_state (pid_t pid)
 
void x86_forget_process (pid_t pid)
 
void x86_cleanup_dregs (void)
 
static int x86_insert_watchpoint (struct target_ops *self, CORE_ADDR addr, int len, int type, struct expression *cond)
 
static int x86_remove_watchpoint (struct target_ops *self, CORE_ADDR addr, int len, int type, struct expression *cond)
 
static int x86_region_ok_for_watchpoint (struct target_ops *self, CORE_ADDR addr, int len)
 
static int x86_stopped_data_address (struct target_ops *ops, CORE_ADDR *addr_p)
 
static int x86_stopped_by_watchpoint (struct target_ops *ops)
 
static int x86_insert_hw_breakpoint (struct target_ops *self, struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
 
static int x86_remove_hw_breakpoint (struct target_ops *self, struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
 
static int x86_can_use_hw_breakpoint (struct target_ops *self, int type, int cnt, int othertype)
 
static void add_show_debug_regs_command (void)
 
void x86_use_watchpoints (struct target_ops *t)
 
void x86_set_debug_register_length (int len)
 

Variables

struct x86_dr_low_type x86_dr_low
 
static struct x86_process_infox86_process_list = NULL
 

Function Documentation

static void add_show_debug_regs_command ( void  )
static
static struct x86_process_info* x86_add_process ( pid_t  pid)
static

Definition at line 76 of file x86-nat.c.

References x86_process_info::next, x86_process_info::pid, pid, x86_process_list, and xcalloc().

Referenced by x86_process_info_get().

static int x86_can_use_hw_breakpoint ( struct target_ops self,
int  type,
int  cnt,
int  othertype 
)
static

Definition at line 261 of file x86-nat.c.

Referenced by x86_use_watchpoints().

void x86_cleanup_dregs ( void  )
struct x86_debug_reg_state* x86_debug_reg_state ( pid_t  pid)
static struct x86_process_info* x86_find_process_pid ( pid_t  pid)
static

Definition at line 61 of file x86-nat.c.

References x86_process_info::next, and x86_process_info::pid.

Referenced by x86_process_info_get().

void x86_forget_process ( pid_t  pid)
static int x86_insert_hw_breakpoint ( struct target_ops self,
struct gdbarch gdbarch,
struct bp_target_info bp_tgt 
)
static
static int x86_insert_watchpoint ( struct target_ops self,
CORE_ADDR  addr,
int  len,
int  type,
struct expression cond 
)
static
static struct x86_process_info* x86_process_info_get ( pid_t  pid)
static

Definition at line 93 of file x86-nat.c.

References x86_add_process(), and x86_find_process_pid().

Referenced by x86_debug_reg_state().

static int x86_region_ok_for_watchpoint ( struct target_ops self,
CORE_ADDR  addr,
int  len 
)
static
static int x86_remove_hw_breakpoint ( struct target_ops self,
struct gdbarch gdbarch,
struct bp_target_info bp_tgt 
)
static
static int x86_remove_watchpoint ( struct target_ops self,
CORE_ADDR  addr,
int  len,
int  type,
struct expression cond 
)
static
void x86_set_debug_register_length ( int  len)
static int x86_stopped_by_watchpoint ( struct target_ops ops)
static
static int x86_stopped_data_address ( struct target_ops ops,
CORE_ADDR addr_p 
)
static
void x86_use_watchpoints ( struct target_ops t)

Variable Documentation

struct x86_dr_low_type x86_dr_low
struct x86_process_info* x86_process_list = NULL
static

Definition at line 56 of file x86-nat.c.

Referenced by x86_add_process(), and x86_forget_process().