Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@gnat.com>
To: David Carlton <carlton@kealia.com>
Cc: gdb <gdb@sources.redhat.com>
Subject: Re: backtrace issues
Date: Sat, 07 Feb 2004 04:25:00 -0000	[thread overview]
Message-ID: <20040207042507.GI18961@gnat.com> (raw)
In-Reply-To: <yf2r7x8f23k.fsf@hawaii.kealia.com>

> Actually, the fact that the program was compiled with a recent GCC
> seems to be irrelevant.
> 
> I did come up with a stripped-down test case; I've filed PR gdb/1545
> about it.

Note that I have also reported a similar problem with the
pthread_library. With 5.3, GDB was doing an approximate job, and
lost a few frames in the way, but we still had the useful part of
the backtrace more or less intact. With the new frame code, however,
the unwinder just stops :-( and leaves the user with a bactracke which
he can't use.

Given the level of optimization involved in the code from which we
wanted to backtrace from, it was determined that there was very little
that we could do, which is unfortunate because it used to be able
to get out of this quagmire before...

At the time when we discussed this, we argued that the only hope was
with dwarf2 CFI, but it just so happens that I noticed the exact same
sort of problem on Windows XP (where we don't have dwarf-2 :-/).

I have been brooding for a while over this, and really don't see any
solution to this, right now. Maybe it's unfair to say this: I find
the new frame code well structured and blissfully free of all the hacks
we used to have. However, it seems less tolerant to difficult cases,
where we just stop unwinding while we used to be able to have a useful
backtrace with 5.3.

(please don't see this as a complaint or don't think I am pointing
finger at anybody - if I had found a better solution, believe me, 
I would have sent a suggestion).

-- 
Joel


  reply	other threads:[~2004-02-07  4:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-06 18:32 David Carlton
2004-02-06 19:20 ` David Carlton
2004-02-07  4:25   ` Joel Brobecker [this message]
2004-02-10 22:22     ` 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=20040207042507.GI18961@gnat.com \
    --to=brobecker@gnat.com \
    --cc=carlton@kealia.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