summaryrefslogtreecommitdiff
path: root/gdb/i386bsd-nat.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2002-10-20 21:18:59 +0000
committerMark Kettenis <kettenis@gnu.org>2002-10-20 21:18:59 +0000
commit8aba3cbf132b075684642648c4308781ded5759a (patch)
treedbad95f03e9fe3f713aab06acb607e38065e8f92 /gdb/i386bsd-nat.c
parenta054f29066cf93dc7c8c552d01f45da56cb0867e (diff)
downloadgdb-8aba3cbf132b075684642648c4308781ded5759a.tar.gz
* i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
DBREG_DRX macro to acces debug registers.
Diffstat (limited to 'gdb/i386bsd-nat.c')
-rw-r--r--gdb/i386bsd-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/i386bsd-nat.c b/gdb/i386bsd-nat.c
index 9e5b9a59e7a..ec38e135717 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 */