Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Richard Earnshaw <rearnsha@arm.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: Richard.Earnshaw@arm.com, gdb-patches@sources.redhat.com
Subject: Re: [RFA] Repost ARM frame patches
Date: Mon, 09 Feb 2004 12:12:00 -0000	[thread overview]
Message-ID: <200402091212.i19CCHX24353@pc960.cambridge.arm.com> (raw)
In-Reply-To: Your message of "Sat, 07 Feb 2004 23:11:09 EST." <20040208041109.GB13033@nevyn.them.org>

> On Fri, Sep 05, 2003 at 10:50:23AM +0100, Richard Earnshaw wrote:
> > > On Tue, Sep 02, 2003 at 11:52:26PM +0100, Richard Earnshaw wrote:
> > > > My only question is, once we start using the dwarf2 unwinder, can it cope 
> > > > with the fact that gcc currently does not emit frame unwind information 
> > > > for Thumb code? (ie can it handle a mix of code that uses dwarf2 and 
> > > > traditional unwinding?)
> 
> > Consider
> > 
> > int func(void) { return 0;}
> > 
> > Which compiles to 
> > 
> > 	mov	r0, #0
> > 	bx	lr
> > 
> > I would have thought that wouldn't need any frame unwind information.  So 
> > we would have a problem distinguishing trivial cases from "not generated" 
> > cases.
> 
> Yes.  Now that GCC 3.4 does generate dwarf2 unwind information for
> Thumb, I compared the generated information for that trivial function
> to the previously produced empty FDE.  As you'd expect, there is no way
> to tell them apart.
> 
> Of course, ignoring dwarf2 FDEs containing no information would
> probably not hurt much - the prologue unwinder could handle the above
> function just fine.  But it still seems a terrible hack.
> 
> What do you think?  My inclination is to wait until after the release
> of GCC 3.4, and then switch on dwarf2 unwinding for ARM.  A second
> option would be to simply switch it on now.  A third would be to prefer
> the prologue unwinder for Thumb; not too hard to arrange.

Well, I've always thought the prologue unwinder on Thumb was irretrievably 
broken...  It's not much better in ARM state: there are just too many 
things where you have to guess.

My inclination would be to switch it on now for arm-linux and 
arm-netbsdelf if that is possible (since these platforms are predominantly 
ARM only at present and hence have had FDE generation for a while now) and 
to certainly switch it on for arm-elf as soon as 3.4 is out.

If doing the above is not really feasible, then I'd just switch it on now 
and declare thumb code without a FDE description to be buggy.

But then, I'm radical in that way.... :-)

R.


      reply	other threads:[~2004-02-09 12:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-29  1:50 Daniel Jacobowitz
2003-09-02 22:56 ` Richard Earnshaw
2003-09-03 20:41   ` Daniel Jacobowitz
2003-09-05  9:50     ` Richard Earnshaw
2003-09-05 20:43       ` Andrew Cagney
2004-02-08  4:11       ` Daniel Jacobowitz
2004-02-09 12:12         ` Richard Earnshaw [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200402091212.i19CCHX24353@pc960.cambridge.arm.com \
    --to=rearnsha@arm.com \
    --cc=Richard.Earnshaw@arm.com \
    --cc=drow@mvista.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox