27 #include <sys/types.h> 28 #include <sys/ptrace.h> 29 #include <machine/reg.h> 36 #ifdef PT_GETXSTATE_INFO 42 #ifdef HAVE_PT_GETDBREGS 43 static void (*super_mourn_inferior) (
struct target_ops *ops);
51 super_mourn_inferior (ops);
59 #define DBREG_DRX(d, x) ((d)->dr[x]) 61 #define DBREG_DRX(d, x) ((&d->dr0)[x]) 74 return DBREG_DRX ((&dbregs),
regnum);
90 DBREG_DRX ((&dbregs), 7) &= ~(0xffffffff0000fc00);
104 x86bsd_dr_set_control (
unsigned long control)
106 x86bsd_dr_set (7, control);
114 x86bsd_dr_set (
regnum, addr);
118 x86bsd_dr_get_addr (
int regnum)
124 x86bsd_dr_get_status (
void)
130 x86bsd_dr_get_control (
void)
147 #ifdef HAVE_PT_GETDBREGS
void(* set_control)(unsigned long)
struct target_ops * inf_ptrace_target(void)
struct x86_dr_low_type x86_dr_low
CORE_ADDR(* get_addr)(int)
struct target_ops * x86bsd_target(void)
void(* set_addr)(int, CORE_ADDR)
unsigned long(* get_status)(void)
unsigned long(* get_control)(void)
void(* to_mourn_inferior)(struct target_ops *) TARGET_DEFAULT_FUNC(default_mourn_inferior)
void void void void void void void void void perror_with_name(const char *string) ATTRIBUTE_NORETURN
#define ALL_NON_EXITED_THREADS(T)
struct inferior * current_inferior(void)
void x86_set_debug_register_length(int len)
void x86_use_watchpoints(struct target_ops *t)
pid_t get_ptrace_pid(ptid_t ptid)
void x86_cleanup_dregs(void)