Strange stack trace on Windows
Joel Brobecker
brobecker@adacore.com
Tue Mar 17 19:43:00 GMT 2009
> That sounds interesting... :-)
> Could you outline that a bit more? Where and how can I do that?
> (I am digging in gdb's source only for a few days now).
You can try the attached patch. What it does is that it matches
the "current_pc" with the start address of the associated function
(if any). If they are identical, then we're at the beginning of
the function. In that case, we know that the function will appear
frameless since the frame hasn't been setup, but we also know how to
unwind properly from it. I can't test the patch right now, so let
me know how it goes.
> Hmm.. Are so few people using gdb on windows? I think there should be
> way more interest in getting gdb to deal right with MS debugging
> format in order to get also debugging with frameless functions right.
Not sure. I suspect that most people don't debug programs using
threads, and so don't need AdaCore's patch. And if you don't install
the patch, then the "next" problem goes away.
--
Joel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unwind.diff
Type: text/x-diff
Size: 546 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb/attachments/20090317/a15f98ff/attachment.bin>
More information about the Gdb
mailing list