From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25940 invoked by alias); 12 Apr 2012 16:25:26 -0000 Received: (qmail 25926 invoked by uid 22791); 12 Apr 2012 16:25:24 -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-qa0-f48.google.com (HELO mail-qa0-f48.google.com) (209.85.216.48) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 12 Apr 2012 16:25:12 +0000 Received: by qam2 with SMTP id 2so1793718qam.0 for ; Thu, 12 Apr 2012 09:25:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.116.5 with SMTP id k5mr4920588qaq.19.1334247911239; Thu, 12 Apr 2012 09:25:11 -0700 (PDT) Received: by 10.229.136.69 with HTTP; Thu, 12 Apr 2012 09:25:11 -0700 (PDT) In-Reply-To: <4F86FB82.7030308@redhat.com> References: <20120411191609.GA466@intel.com> <4F86D411.4000100@redhat.com> <4F86FB82.7030308@redhat.com> Date: Thu, 12 Apr 2012 16:38: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 Content-Transfer-Encoding: quoted-printable 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/msg00310.txt.bz2 On Thu, Apr 12, 2012 at 8:57 AM, Pedro Alves wrote: > On 04/12/2012 04:37 PM, H.J. Lu wrote: > >> It doesn't work since x32 is a 32-bit process. =A0Although x32 >> GDBserver can get registers of 64-bit process, =A0it can't handle 64-bit= address > >> in 64b-bit process, like setting break points. > > Oh yeah... =A0PowerPC has PPC_PTRACE_PEEKDATA_3264/PPC_PTRACE_POKEDATA_32= 64 > for that, but well, it's PowerPC specific. > Also x32 siginfo is different from 64bit signfo. X32 ptrace can't get 64bit siginfo due to address fields in siginfo. --=20 H.J.