This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]