Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Matz <matz@suse.de>
To: "Frank Ch. Eigler" <fche@redhat.com>
Cc: gdb-patches@sourceware.org, Mark Kettenis <kettenis@gnu.org>
Subject: Re: RFC: %ebp-based backtrace patch
Date: Tue, 07 Jul 2009 13:49:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.64.0907071544380.29566@wotan.suse.de> (raw)
In-Reply-To: <20090707131932.GA1933@redhat.com>

Hi,

On Tue, 7 Jul 2009, Frank Ch. Eigler wrote:

> On Tue, Jul 07, 2009 at 02:15:19PM +0200, Michael Matz wrote:
> > [...]
> > > Could gdb partially disassemble such functions to check
> > > whether %ebp is likely being used as this heuristic expects?
> > 
> > Nope.  We don't know the function borders.  [...]
> 
> I'm feeling dense, so can you explain why?  We have at least a
> PC value, which one could map in the symbol table, no?

There is no complete symbol table anymore, only the exported symbol table 
which is empty for executable by default and doesn't contain e.g. static 
functions for shared libs.  That's the whole point.  We are talking about 
stripped objects for which we still want to generate useful backtraces (or 
at least not disturb backtracing when even just one shared lib in the call 
stack was stripped) so that bugreports of crashes are not completely 
useless and misleading.


Ciao,
Michael.


  reply	other threads:[~2009-07-07 13:49 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-06 18:33 Daniel Jacobowitz
2009-07-06 20:11 ` Frank Ch. Eigler
2009-07-06 20:21   ` Daniel Jacobowitz
2009-07-07 12:15   ` Michael Matz
2009-07-07 13:19     ` Frank Ch. Eigler
2009-07-07 13:49       ` Michael Matz [this message]
2009-07-06 21:57 ` Mark Kettenis
2009-07-07 12:00   ` Michael Matz
2009-07-07 13:00   ` Daniel Jacobowitz
2009-07-07 13:07     ` Mark Kettenis
2009-07-08  9:01     ` Mark Kettenis
2009-07-08 12:53       ` Daniel Jacobowitz
2009-12-27 16:59         ` Daniel Jacobowitz
2009-12-27 21:37           ` Mark Kettenis
2009-12-27 22:03             ` Daniel Jacobowitz
2010-02-01 19:46               ` Daniel Jacobowitz

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.64.0907071544380.29566@wotan.suse.de \
    --to=matz@suse.de \
    --cc=fche@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=kettenis@gnu.org \
    /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