freebsd-ports/devel/gdb53-act/files/patch-gdb_i386bsd-nat.c
Edwin Groothuis 5ee17cb3c6 new port - ACT modified gdb53, a gdb that understands the Ada programming language
Ada programming knowledgeable version of gdb53

PR:		ports/56371
Submitted by:	John R. Shannon <john@johnrshannon.com>
2003-09-27 07:38:23 +00:00

20 lines
557 B
C

--- gdb/i386bsd-nat.c 2003/01/02 20:22:00 1.1
+++ gdb/i386bsd-nat.c 2003/01/02 20:22:35
@@ -306,7 +306,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;
@@ -355,7 +355,7 @@
return 0;
#endif
- return dbregs.dr6;
+ return DBREG_DRX ((&dbregs), 6);
}
#endif /* PT_GETDBREGS */