This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
PATCH: Avoid unused variable warning on Linux/x86-64
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GDB <gdb-patches at sourceware dot org>
- Date: Mon, 12 Apr 2010 06:19:25 -0700
- Subject: PATCH: Avoid unused variable warning on Linux/x86-64
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
I checked in this patch to avoid unused variable warning on
Linux/x86-64.
H.J.
---
2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
* linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
variable warning on Linux/x86-64.
diff --git a/gdb/gdbserver/linux-x86-low.c b/gdb/gdbserver/linux-x86-low.c
index d79713f..1c28279 100644
--- a/gdb/gdbserver/linux-x86-low.c
+++ b/gdb/gdbserver/linux-x86-low.c
@@ -834,7 +834,7 @@ x86_linux_update_xmltarget (void)
struct regset_info *regset;
static unsigned long long xcr0;
static int have_ptrace_getregset = -1;
-#ifdef HAVE_PTRACE_GETFPXREGS
+#if !defined(__x86_64__) && defined(HAVE_PTRACE_GETFPXREGS)
static int have_ptrace_getfpxregs = -1;
#endif