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) _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"