This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Define DR_LEN_8 only if __x86_64__ is defined
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Thu, 31 May 2012 07:32:56 -0700
- Subject: PATCH: Define DR_LEN_8 only if __x86_64__ is defined
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
This patch defines DR_LEN_8 only if __x86_64__ is defined to support
"gcc -m32" on Linux/x86-64. OK to install?
Thanks.
H.J.
---
* sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
Define only if __x86_64__ is defined.
diff --git a/sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h b/sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
index 84a9017..de10277 100644
--- a/sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
+++ b/sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
@@ -54,7 +54,9 @@
#define DR_LEN_1 (0x0) /* Settings for data length to trap on */
#define DR_LEN_2 (0x4)
#define DR_LEN_4 (0xC)
-#define DR_LEN_8 (0x8)
+#ifdef __x86_64__
+# define DR_LEN_8 (0x8)
+#endif
/* The low byte to the control register determine which registers are
enabled. There are 4 fields of two bits. One bit is "local", meaning