From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15738 invoked by alias); 12 Apr 2012 17:21:50 -0000 Received: (qmail 15727 invoked by uid 22791); 12 Apr 2012 17:21:49 -0000 X-SWARE-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-qc0-f169.google.com (HELO mail-qc0-f169.google.com) (209.85.216.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 12 Apr 2012 17:21:36 +0000 Received: by qcsd16 with SMTP id d16so1609934qcs.0 for ; Thu, 12 Apr 2012 10:21:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.35.130 with SMTP id p2mr5165669qad.32.1334251295168; Thu, 12 Apr 2012 10:21:35 -0700 (PDT) Received: by 10.229.136.69 with HTTP; Thu, 12 Apr 2012 10:21:35 -0700 (PDT) In-Reply-To: <4F870888.9020803@redhat.com> References: <20120411191609.GA466@intel.com> <4F86D411.4000100@redhat.com> <4F86FB82.7030308@redhat.com> <4F8704F9.9040309@redhat.com> <4F870888.9020803@redhat.com> Date: Thu, 12 Apr 2012 18:05:00 -0000 Message-ID: Subject: Re: PATCH: PR gdb/13969: GDBserver doesn't check unsupported binary From: "H.J. Lu" To: Pedro Alves Cc: GDB Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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: 2012-04/txt/msg00315.txt.bz2 On Thu, Apr 12, 2012 at 9:53 AM, Pedro Alves wrote: > On 04/12/2012 05:45 PM, H.J. Lu wrote: > >> x32 ptrace returns x32 siginfo, > > > ok. > >> which is compatible with ia32 inferior > > > I believe clock_t will be 64-bit with x32, however, right? > If so, amd64-linux-nat.c:compat_siginfo_from_siginfo|siginfo_from_compat_siginfo > (and the gdbserver equivalents) will need adjustment (for the 64-bit X x32 case). > This is something most probably not caught by the testsuite. > That is true. I submitted a patch for GDBserver at: http://sourceware.org/ml/gdb-patches/2012-04/msg00313.html amd64-linux-nat.c changes on hjl/x32/master branch at http://sourceware.org/git/?p=gdb.git;a=summary which will be submitted separately. Thanks. -- H.J.