From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21341 invoked by alias); 15 Oct 2012 20:41:43 -0000 Received: (qmail 21332 invoked by uid 22791); 15 Oct 2012 20:41:42 -0000 X-SWARE-Spam-Status: No, hits=-3.8 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-vc0-f169.google.com (HELO mail-vc0-f169.google.com) (209.85.220.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 15 Oct 2012 20:41:37 +0000 Received: by mail-vc0-f169.google.com with SMTP id fl17so7352080vcb.0 for ; Mon, 15 Oct 2012 13:41:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.222.212 with SMTP id ih20mr7349995vcb.59.1350333697059; Mon, 15 Oct 2012 13:41:37 -0700 (PDT) Received: by 10.58.146.138 with HTTP; Mon, 15 Oct 2012 13:41:37 -0700 (PDT) In-Reply-To: <201210151009.q9FA9r3O027266@glazunov.sibelius.xs4all.nl> References: <20121003154712.GH3028@adacore.com> <201210040657.q946vJlc006566@glazunov.sibelius.xs4all.nl> <201210081948.q98Jm3D7020175@glazunov.sibelius.xs4all.nl> <201210082022.q98KM82d014759@glazunov.sibelius.xs4all.nl> <201210082047.q98KlQ6V031554@glazunov.sibelius.xs4all.nl> <20121008210142.GA14305@gmail.com> <20121009153217.GA6936@gmail.com> <201210091539.q99Fdj3D027359@glazunov.sibelius.xs4all.nl> <201210091547.q99FlrrT005368@glazunov.sibelius.xs4all.nl> <201210151009.q9FA9r3O027266@glazunov.sibelius.xs4all.nl> Date: Mon, 15 Oct 2012 20:41:00 -0000 Message-ID: Subject: Re: PING: PATCH: PR backtrace/14646: [x32] backtrace doesn't work From: "H.J. Lu" To: Mark Kettenis Cc: gdb-patches@sourceware.org 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-10/txt/msg00244.txt.bz2 On Mon, Oct 15, 2012 at 3:09 AM, Mark Kettenis wrote: >> Date: Tue, 9 Oct 2012 09:38:32 -0700 >> From: "H.J. Lu" >> >> The current GDB doesn't work on x32. This patch: >> >> http://sourceware.org/ml/gdb-patches/2012-09/msg00714.html >> >> isn't perfect where $pc/$sp is displayed as 64-bit integer. But >> otherwise, GDB works fine. > > Finally found some time to dig a little bit deeper. The x32 ABI isn't > the only 32-bit ABI with 64-bit registers. The mips n32 ABI has > exactly the same issue. The relevant code there carries the following > comment: > > /* Use pointer types for registers if we can. For n32 we can not, > since we do not have a 64-bit pointer type. */ > > So I'd say that you should probably commit the diff in: > > > > on the grounds that other 32-bit on 64-bit ABIs also punt on the issue. I checked it into trunk. OK for 7.5? > But it would be good to try to come up with a way to print 64-bit > registers as pointers for this class of ABIs. But that should almost > certainly done by fixing target-independent parts of GDB and not by > adding more complexity to the target descriptions like your last > couple of diffs did. I will give it a try. Thanks. -- H.J.