From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11830 invoked by alias); 9 Jan 2004 15:16:10 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 11792 invoked from network); 9 Jan 2004 15:16:09 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (213.93.115.144) by sources.redhat.com with SMTP; 9 Jan 2004 15:16:09 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i09FFkuN000297; Fri, 9 Jan 2004 16:15:46 +0100 (CET) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i09FFkfl000405; Fri, 9 Jan 2004 16:15:46 +0100 (CET) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6/Submit) id i09FFTBh000400; Fri, 9 Jan 2004 16:15:29 +0100 (CET) Date: Fri, 09 Jan 2004 15:16:00 -0000 Message-Id: <200401091515.i09FFTBh000400@elgar.kettenis.dyndns.org> From: Mark Kettenis To: amodra@bigpond.net.au CC: geoffk@desire.geoffk.org, cagney@gnu.org, gcc-patches@gcc.gnu.org, dje@watson.ibm.com, gdb-patches@sources.redhat.com, Ulrich.Weigand@de.ibm.com In-reply-to: <20040109023442.GF2969@bubble.modra.org> (message from Alan Modra on Fri, 9 Jan 2004 13:04:42 +1030) Subject: Re: Incorrect DWARF-2 register numbers on PPC64? References: <200312182258.hBIMwgT25422@makai.watson.ibm.com> <200312201527.hBKFRHgI000712@elgar.kettenis.dyndns.org> <3FF5A069.1040306@gnu.org> <200401022317.i02NHQBR001191@desire.geoffk.org> <20040106152710.GB2533@bubble.modra.org> <200401071743.i07HhAle000811@elgar.kettenis.dyndns.org> <20040107222907.GO2533@bubble.modra.org> <3FFC97DF.2030009@gnu.org> <20040108004849.GR2533@bubble.modra.org> <200401080501.i0851VBx016440@desire.geoffk.org> <20040109023442.GF2969@bubble.modra.org> X-SW-Source: 2004-01/txt/msg00241.txt.bz2 Date: Fri, 9 Jan 2004 13:04:42 +1030 From: Alan Modra On Wed, Jan 07, 2004 at 09:01:31PM -0800, Geoff Keating wrote: > That will also mean that executables built with a new version of GCC won't > run on operating systems with an old libgcc. For Darwin, because of > historical mistakes involving non-shared libgcc, it will make life > very difficult. I hadn't thought of that. This means we are stuck with the current .eh_frame register numbering. I was afraid of that :-(. It should be possible to fix .debug_frame with something like the following totally untested patch. I'm throwing it out to the list now for comment. That way we can hope that GCC's .dwarf_frame will be compatible with DWARF CFI generated by other compilers, which would be a great win I think. GDB doesn't support different register encodings for .eh_frame and .dwarf_frame yet, but that should be fixable; we can distinguish between the two. Mark