Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 May 2012 20:21:56 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r235563 - head/sys/x86/include
Message-ID:  <201205172021.q4HKLuGE015425@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205172021.q4HKLuGE015425>