From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9959 invoked by alias); 8 Oct 2012 19:48:31 -0000 Received: (qmail 9923 invoked by uid 22791); 8 Oct 2012 19:48:24 -0000 X-SWARE-Spam-Status: No, hits=-4.0 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO glazunov.sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 08 Oct 2012 19:48:08 +0000 Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3) with ESMTP id q98Jm5fI006037; Mon, 8 Oct 2012 21:48:05 +0200 (CEST) Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3/Submit) id q98Jm3D7020175; Mon, 8 Oct 2012 21:48:03 +0200 (CEST) Date: Mon, 08 Oct 2012 19:48:00 -0000 Message-Id: <201210081948.q98Jm3D7020175@glazunov.sibelius.xs4all.nl> From: Mark Kettenis To: hjl.tools@gmail.com CC: gdb-patches@sourceware.org In-reply-to: (hjl.tools@gmail.com) Subject: Re: PING: PATCH: PR backtrace/14646: [x32] backtrace doesn't work References: <20121003154712.GH3028@adacore.com> <201210040657.q946vJlc006566@glazunov.sibelius.xs4all.nl> 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/msg00135.txt.bz2 > Date: Thu, 4 Oct 2012 06:57:22 -0700 > From: "H.J. Lu" > > On Wed, Oct 3, 2012 at 11:57 PM, Mark Kettenis wrote: > > > > Perhaps the user-regs.c mechanism can be used to establish eip -> pc > > and esp -> sp mappings? > > It doesn't help as long as gdbarch_pc_regnum/gdbarch_sp_regnum > are used for both frame pc/sp value and unwind pc/sp value. For x32, > we want eip/esp for frame pc/sp value and rip/rsp for unwind pc/sp > value. That probably means we need to set gdbarch_pc_regnum (and gdbarch_sp_regnum) to -1 for x32.