Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Berlin <dan@dberlin.org>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: gdb@sources.redhat.com
Subject: Re: think-o: dwarf2 CFA != frame->frame (x86-64)
Date: Tue, 09 Apr 2002 12:42:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.44.0204091533180.14144-100000@dberlin.org> (raw)
In-Reply-To: <3CB33E54.6050605@cygnus.com>

On Tue, 9 Apr 2002, Andrew Cagney wrote:

> 
> >> Please re-read what I wrote.
> > 
> > 
> > You said " The problem is that this algorithm assumes that each frame uses 
> > the same mechanism for locating register values.  With
> >                        the introduction of dwarf2cfi, this is no longer 
> > true.  Some frames may use the debug info while others may use the
> >                        old prologue analysis technique.
> > "
> > 
> > You are incorrect.
> 
> We're going to have to agree to disagree.
> 
Okeydokey.

> > It's an either-or case. Never is their a mixture of methods, unless you do 
> > something illegal.
> 
> If GDB decides to do what you state, it will be incapable of unwinding 
> through libraries (where there is no debug info).

Libraries have debug info as well.

Even those without debug info, can still have dwarf2 frame info.
Most do these days.
You just don't realize it.
The default libc that came with my ppc linux distribution contains unwind 
info for all routines, fer instance. It's glibc 2.2.4 based, for the 
curious.  I installed this distribution a *while* ago, so it's not a 
recent happening.
All the libraries have unwind info as well.
No debug info, just unwind info.
> 
> I think that is a significant feature loss and one I don't consder 
> acceptable.
Who says you have lost a feature?
> 
> I see no reason why GDB shouldn't act ``illegally'' and use the 
> traditional prolog scanner as a fallback to debug info.
Now you've twisted my words.
I said it would be illegal to attempt to use .eh_frame under the 
assumption it contains unwind info for all routines. It might, it might 
not.
I said nothing about prolog scanning, besides that it is unnecessary when 
the dwarf2 unwind info is present.
 > 
> Andrew
> 


  reply	other threads:[~2002-04-09 19:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-08 22:45 Andrew Cagney
2002-04-08 23:43 ` Daniel Berlin
2002-04-09  9:12   ` Andrew Cagney
2002-04-09 10:03     ` Daniel Berlin
2002-04-09 10:32       ` Andrew Cagney
2002-04-09 10:58         ` Daniel Berlin
2002-04-09 12:17           ` Andrew Cagney
2002-04-09 12:42             ` Daniel Berlin [this message]
2002-04-09 10:58       ` Andrew Cagney
2002-04-09 11:00         ` Daniel Berlin
2002-04-09 11:52           ` Andrew Cagney

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=Pine.LNX.4.44.0204091533180.14144-100000@dberlin.org \
    --to=dan@dberlin.org \
    --cc=ac131313@cygnus.com \
    --cc=gdb@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