This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 2/2] FreeBSD: Removed definition of DBREG_DRX macro because it is already in FreeBSD.


2011-12-20  Valery Khromov  <valery.khromov@gmail.com>

    * i386bsd-nat.c (DBREG_DRX): Delete.
    * amd64bsd-nat.c (DBREG_DRX): Delete.
---
 gdb/amd64bsd-nat.c |    6 ------
 gdb/i386bsd-nat.c  |    6 ------
 2 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/gdb/amd64bsd-nat.c b/gdb/amd64bsd-nat.c
index b31002f..21ab3ea 100644
--- a/gdb/amd64bsd-nat.c
+++ b/gdb/amd64bsd-nat.c
@@ -132,12 +132,6 @@ amd64bsd_target (void)
 
 #ifdef HAVE_PT_GETDBREGS
 
-/* Not all versions of FreeBSD/amd64 that support the debug registers
-   have this macro.  */
-#ifndef DBREG_DRX
-#define DBREG_DRX(d, x) ((&d->dr0)[x])
-#endif
-
 static unsigned long
 amd64bsd_dr_get (ptid_t ptid, int regnum)
 {
diff --git a/gdb/i386bsd-nat.c b/gdb/i386bsd-nat.c
index 2301c69..b727466 100644
--- a/gdb/i386bsd-nat.c
+++ b/gdb/i386bsd-nat.c
@@ -258,10 +258,4 @@ i386bsd_target (void)
 
 #ifdef HAVE_PT_GETDBREGS
 
-/* Not all versions of FreeBSD/i386 that support the debug registers
-   have this macro.  */
-#ifndef DBREG_DRX
-#define DBREG_DRX(d, x) ((&d->dr0)[x])
-#endif
-
 static void
-- 
WBR,
Valery Khromov


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]