From owner-svn-src-head@FreeBSD.ORG Thu May 17 20:21:56 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9A1841065675; Thu, 17 May 2012 20:21:56 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 855BE8FC1A; Thu, 17 May 2012 20:21:56 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q4HKLuN2015427; Thu, 17 May 2012 20:21:56 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q4HKLuGE015425; Thu, 17 May 2012 20:21:56 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <201205172021.q4HKLuGE015425@svn.freebsd.org> From: John Baldwin Date: Thu, 17 May 2012 20:21:56 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r235563 - head/sys/x86/include X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 May 2012 20:21:56 -0000 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)