blob: a6f7c0ec5524cb2815ff985bf4f5d560d4802647 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- gdb/i386bsd-nat.c 2003/05/19 07:22:00 1.1
+++ gdb/i386bsd-nat.c 2003/05/19 07:22:35
@@ -305,7 +305,7 @@
/* 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;
@@ -354,7 +354,7 @@
return 0;
#endif
- return dbregs.dr6;
+ return DBREG_DRX ((&dbregs), 6);
}
#endif /* PT_GETDBREGS */
|