diff options
author | Mark Kettenis <kettenis@gnu.org> | 2002-10-20 21:18:59 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2002-10-20 21:18:59 +0000 |
commit | afdb036ab6504d81724a1a38700aa9862757af5e (patch) | |
tree | 7e0ee055cbce056d0dbe742527e5417a597169b5 | |
parent | ca02e098c514acdb63073f7fee89b23c47f4321f (diff) | |
download | gdb-afdb036ab6504d81724a1a38700aa9862757af5e.zip gdb-afdb036ab6504d81724a1a38700aa9862757af5e.tar.gz gdb-afdb036ab6504d81724a1a38700aa9862757af5e.tar.bz2 |
* i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
DBREG_DRX macro to acces debug registers.
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/i386bsd-nat.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 756c471..f1be8a8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2002-10-20 Mark Kettenis <kettenis@gnu.org> + * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use + DBREG_DRX macro to acces debug registers. + * Makefile.in (i386obsd-tdep.o): New target. * solib-sunos.c: Include "bcache.h" and "regcache.h". diff --git a/gdb/i386bsd-nat.c b/gdb/i386bsd-nat.c index 9e5b9a5..ec38e13 100644 --- a/gdb/i386bsd-nat.c +++ b/gdb/i386bsd-nat.c @@ -306,7 +306,7 @@ i386bsd_dr_set (int regnum, unsigned int value) /* For some mysterious reason, some of the reserved bits in the debug control register get set. Mask these off, otherwise the ptrace call below will fail. */ - dbregs.dr7 &= ~(0x0000fc00); + DBREG_DRX ((&dbregs), 7) &= ~(0x0000fc00); DBREG_DRX ((&dbregs), regnum) = value; @@ -355,7 +355,7 @@ i386bsd_dr_get_status (void) return 0; #endif - return dbregs.dr6; + return DBREG_DRX ((&dbregs), 6); } #endif /* PT_GETDBREGS */ |