Decoding stack in core file without correct libs?

Pierre Ossman <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
Hi,

I'd like to see if there is a way to produce binaries so that gdb can 
walk the stack in a core dump even if the libraries gdb sees doesn't 
match the libraries when the core dump was generated.

My scenario is simply that we might get crashes at customer sites. 
Rather than getting some kind of remote access up an running, it would 
be easier to have them send us a core dump from the crash. We then load 
the core file together with a binary with debug symbols on our end.

Unfortunately gdb doesn't traverse the stack correctly if the crash is 
in a system library. We just get random addresses for each frame.

It's okay that we cannot get the proper symbols or local variables for 
frames that are in system libraries, but is there some way to get access 
to the frames that are in our binary?

Regards
-- 
Pierre Ossman           Software Development
Cendio AB               https://cendio.com
Teknikringen 8          https://twitter.com/ThinLinc
583 30 Linköping        https://facebook.com/ThinLinc
Phone: +46-13-214600    https://plus.google.com/+CendioThinLinc

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.