Fix amd64 windows unwinding issues within MS dlls.
authorTristan Gingold <gingold@adacore.com>
Thu, 5 Mar 2015 13:36:32 +0000 (14:36 +0100)
committerTristan Gingold <gingold@adacore.com>
Wed, 18 Mar 2015 14:55:10 +0000 (15:55 +0100)
commit670f82d437c21ec9c8f59a365336163e0381149d
tree96a41ee4d267a5b32e91ee9be56797d404defd13
parent464b0089f0068838a014a8fa27ea2eef536ebada
Fix amd64 windows unwinding issues within MS dlls.

Unwind info in system dlls uses almost all possible codes, contrary to unwind
info generated by gcc.  A few issues have been discovered: incorrect handling
of SAVE_NONVOL opcodes and incorrect in prologue range checks.  Furthermore I
added comments not to forget what has been investigated.

gdb/ChangeLog:
* amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
redirection code to ...
(amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
gdb/ChangeLog
gdb/amd64-windows-tdep.c