From: Bergur Ragnarsson <Bergur.Ragnarsson@tern.is>
To: "'gdb@sourceware.cygnus.com'" <gdb@sourceware.cygnus.com>
Subject: enhancement suggestion: gdb backtrace library
Date: Tue, 14 Aug 2001 03:42:00 -0000 [thread overview]
Message-ID: <315BAD7B721AD211898F00805F853FBF37A8C2@2.10.10.10.in-addr.arpa> (raw)
The c-library assert(...) can quickly stop buggy logic and sometimes reveal
the cause by the single line error description. Often however a full stack
trace is needed to find the error.
It would be quite a productivity improvement if programmers could call a
function like
gdb_backtrace(options)
which would print up to 30 or so stack frames; this would allow the
programmer to go directly to fixing the code. This would also be great in
multithreaded code, where we often have been unable to produce stack traces.
The glibc-library has an backtrace(..) and backtrace_symbols(..), but these
functions didn't produce correct stack traces on our system.
Bergur Ragnarsson
reply other threads:[~2001-08-14 3:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=315BAD7B721AD211898F00805F853FBF37A8C2@2.10.10.10.in-addr.arpa \
--to=bergur.ragnarsson@tern.is \
--cc=gdb@sourceware.cygnus.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