summaryrefslogtreecommitdiffstats
path: root/sys/x86/include/ptrace.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2012-05-17 20:21:55 +0000
committerjhb <jhb@FreeBSD.org>2012-05-17 20:21:55 +0000
commit9185c7e2f741f7dc245a2e427ace1736d7702ae7 (patch)
tree5739d4da47dab1acf0f1243247c736bc301c30c7 /sys/x86/include/ptrace.h
parent17e1a41ad183ff20cd39435982450567e0b2e338 (diff)
downloadFreeBSD-src-9185c7e2f741f7dc245a2e427ace1736d7702ae7.zip
FreeBSD-src-9185c7e2f741f7dc245a2e427ace1736d7702ae7.tar.gz
Don't expose i386-only ptrace constants on amd64. This broke gdb with
libthread_db on amd64. Reported by: avg
Diffstat (limited to 'sys/x86/include/ptrace.h')
-rw-r--r--sys/x86/include/ptrace.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/x86/include/ptrace.h b/sys/x86/include/ptrace.h
index 475e369..16a04d1 100644
--- a/sys/x86/include/ptrace.h
+++ b/sys/x86/include/ptrace.h
@@ -40,8 +40,10 @@
* PT_GETXSTATE and PT_SETXSTATE. They should not be (re)used.
*/
-#define PT_GETXMMREGS (PT_FIRSTMACH + 0) /* i386 only */
-#define PT_SETXMMREGS (PT_FIRSTMACH + 1) /* i386 only */
+#ifdef __i386__
+#define PT_GETXMMREGS (PT_FIRSTMACH + 0)
+#define PT_SETXMMREGS (PT_FIRSTMACH + 1)
+#endif
#define PT_GETXSTATE (PT_FIRSTMACH + 2)
#define PT_SETXSTATE (PT_FIRSTMACH + 3)
OpenPOWER on IntegriCloud