This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Backtrace showing different value from stack?
Philipp Marek wrote:
> Note: it's entirely possible that I'm trashing the stack somewhere. I'd
> just like to know why GDB shows something different for "bt" and the
> "manual" stack dump.
gdb uses a bunch of heuristics along with the debug information
to do its backtraces. These heuristics don't always work, and the
debug information might be incorrect.
Andrew.