diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-02-22 01:52:20 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-02-22 01:52:20 +0000 |
commit | 95c01a7ffade817ad93dcb886be5145b4c87294f (patch) | |
tree | 6b074ab9d16f0c91e117bc07f15d021e13aabec5 /devel/fpc-gdb/files/patch-gdb_i386bsd-nat.c | |
parent | Don my portmgr hat and return dirk@FreeBSD.org's ports back to the (diff) |
Add fpc-gdb, a GNU GDB 5.2.1 modified for use with Free Pascal and to provide
static libraries for linking with fpc-ide.
PR: 62570
Submitted by: John Merryweather Cooper <coop9211@uidaho.edu>
Notes
Notes:
svn path=/head/; revision=101648
Diffstat (limited to 'devel/fpc-gdb/files/patch-gdb_i386bsd-nat.c')
-rw-r--r-- | devel/fpc-gdb/files/patch-gdb_i386bsd-nat.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/fpc-gdb/files/patch-gdb_i386bsd-nat.c b/devel/fpc-gdb/files/patch-gdb_i386bsd-nat.c new file mode 100644 index 000000000000..a6f7c0ec5524 --- /dev/null +++ b/devel/fpc-gdb/files/patch-gdb_i386bsd-nat.c @@ -0,0 +1,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 */ |