svn commit: r235563 - head/sys/x86/include

John Baldwin jhb at FreeBSD.org
Thu May 17 20:21:56 UTC 2012


Author: jhb
Date: Thu May 17 20:21:55 2012
New Revision: 235563
URL: http://svn.freebsd.org/changeset/base/235563

Log:
  Don't expose i386-only ptrace constants on amd64.  This broke gdb with
  libthread_db on amd64.
  
  Reported by:	avg

Modified:
  head/sys/x86/include/ptrace.h

Modified: head/sys/x86/include/ptrace.h
==============================================================================
--- head/sys/x86/include/ptrace.h	Thu May 17 20:05:13 2012	(r235562)
+++ head/sys/x86/include/ptrace.h	Thu May 17 20:21:55 2012	(r235563)
@@ -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)
 


More information about the svn-src-all mailing list