From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22341 invoked by alias); 2 Oct 2007 07:01:26 -0000 Received: (qmail 22332 invoked by uid 22791); 2 Oct 2007 07:01:25 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate4.de.ibm.com (HELO mtagate4.de.ibm.com) (195.212.29.153) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 02 Oct 2007 07:01:22 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate4.de.ibm.com (8.13.8/8.13.8) with ESMTP id l9271JdS190884 for ; Tue, 2 Oct 2007 07:01:19 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l9271J062298094 for ; Tue, 2 Oct 2007 09:01:19 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l9271ID9030260 for ; Tue, 2 Oct 2007 09:01:19 +0200 Received: from bbkeks.boeblingen.de.ibm.com (dyn-9-152-248-41.boeblingen.de.ibm.com [9.152.248.41]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l9271H59030211 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Oct 2007 09:01:18 +0200 Message-ID: <4701EC60.70702@de.ibm.com> Date: Tue, 02 Oct 2007 07:01:00 -0000 From: Markus Deuling User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: GDB Patches CC: Daniel Jacobowitz , Ulrich Weigand Subject: [rfc] Define PTRACE_GETSIGINFO in linux-nat.c Content-Type: multipart/mixed; boundary="------------020509090606010304000902" Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-10/txt/msg00010.txt.bz2 This is a multi-part message in MIME format. --------------020509090606010304000902 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Content-length: 604 Hi, the new save_siginfo() function from linux-nat.c breaks my build on Linux bbkeks 2.6.9-55.0.6.EL #1 Thu Aug 23 10:59:21 EDT 2007 i686 i686 i386 GNU/Linux because PTRACE_GETSIGINFO isn't defined in the includes. The patch takes over definition of it from ppc-linux-nat.c ChangeLog: * linux-nat.c (PTRACE_GETSIGINFO): Add define. Tested on x86. Is this ok to commit or would it be better to move it to a header (linux-nat.h ?) file and delete it from ppc-linux-nat.c as well to prevent redundancy? Regards, Markus -- Markus Deuling GNU Toolchain for Linux on Cell BE deuling@de.ibm.com --------------020509090606010304000902 Content-Type: text/plain; name="diff-PTRACE_GETSIGINFO" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diff-PTRACE_GETSIGINFO" Content-length: 497 diff -urpN src/gdb/linux-nat.c dev/gdb/linux-nat.c --- src/gdb/linux-nat.c 2007-10-01 09:00:51.000000000 +0200 +++ dev/gdb/linux-nat.c 2007-10-02 08:43:40.000000000 +0200 @@ -84,6 +84,10 @@ #define __WALL 0x40000000 /* Wait for any child. */ #endif +#ifndef PTRACE_GETSIGINFO +#define PTRACE_GETSIGINFO 0x4202 +#endif + /* The single-threaded native GNU/Linux target_ops. We save a pointer for the use of the multi-threaded target. */ static struct target_ops *linux_ops; --------------020509090606010304000902--