* enhancement suggestion: gdb backtrace library
@ 2001-08-14 3:42 Bergur Ragnarsson
0 siblings, 0 replies; only message in thread
From: Bergur Ragnarsson @ 2001-08-14 3:42 UTC (permalink / raw)
To: 'gdb@sourceware.cygnus.com'
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-08-14 3:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-14 3:42 enhancement suggestion: gdb backtrace library Bergur Ragnarsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox