public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: Olaf Hering <olh@suse.de>
Cc: gdb@sourceware.org
Subject: Re: trouble with gdb backtraces on ppc with gcc4
Date: Wed, 09 Nov 2005 13:41:00 -0000	[thread overview]
Message-ID: <jeirv2j5ve.fsf@sykes.suse.de> (raw)
In-Reply-To: <20051109130501.GA16450@suse.de> (Olaf Hering's message of "Wed, 9 Nov 2005 14:05:01 +0100")

Olaf Hering <olh@suse.de> writes:

> the backtraces in gdb 6.3 and also in gdb-mainline are usually broken in
> openSuSE. How does gdb generate them? I guess gdb needs to deal with the
> gcc generated debug info.

When there is one.  In your example there isn't.  The openSuSE gdb has
been patched to make use of the DWARF unwind information, which works
quite well if it is present.

> (gdb) bt
> #0  0x0ff6443c in __write_nocancel () from /lib/tls/libc.so.6
> #1  0x0ff141c4 in _IO_new_file_write () from /lib/tls/libc.so.6
> #2  0x0ff126e0 in new_do_write () from /lib/tls/libc.so.6
> #3  0x0ff12898 in _IO_new_do_write () from /lib/tls/libc.so.6
> #4  0x0ff13424 in _IO_new_file_overflow () from /lib/tls/libc.so.6
> #5  0x0ff143f4 in _IO_new_file_xsputn () from /lib/tls/libc.so.6
> #6  0x0feeb990 in vfprintf () from /lib/tls/libc.so.6
> #7  0x0feeb990 in vfprintf () from /lib/tls/libc.so.6

No debug info in /lib/tls/libc.so.6.  Will work fine when debug info
exists.

> SLES9 does a better job:

SLES9 has an older compiler, which does less aggressive optimisations.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

  reply	other threads:[~2005-11-09 13:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-09 13:05 Olaf Hering
2005-11-09 13:41 ` Andreas Schwab [this message]
2005-11-09 14:02   ` Olaf Hering
2005-11-09 14:17     ` 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=jeirv2j5ve.fsf@sykes.suse.de \
    --to=schwab@suse.de \
    --cc=gdb@sourceware.org \
    --cc=olh@suse.de \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).