From 6313a8d7928f7513c69bfe6b9046ffd40043ad22 Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Fri, 10 Jan 2003 10:40:20 +0000 Subject: [PATCH] port to FreeBSD 5.0 --- gdb/gdb.patch | 20 ++++++++++++++++++++ gdb/gdb.spec | 4 +++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 gdb/gdb.patch diff --git a/gdb/gdb.patch b/gdb/gdb.patch new file mode 100644 index 0000000000..a28ce60b09 --- /dev/null +++ b/gdb/gdb.patch @@ -0,0 +1,20 @@ +--- 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 */ diff --git a/gdb/gdb.spec b/gdb/gdb.spec index b1aa212d81..627e760834 100644 --- a/gdb/gdb.spec +++ b/gdb/gdb.spec @@ -33,10 +33,11 @@ Packager: The OpenPKG Project Distribution: OpenPKG [BASE] License: GPL Version: 5.3 -Release: 20021212 +Release: 20030110 # list of sources Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-%{version}.tar.gz +Patch0: gdb.patch # build information Prefix: %{l_prefix} @@ -53,6 +54,7 @@ AutoReqProv: no %prep %setup -q + %patch -p0 %build CC="%{l_cc}" \