Fix type of not saved registers.
authorPedro Alves <palves@redhat.com>
Wed, 27 Nov 2013 17:55:38 +0000 (17:55 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 27 Nov 2013 17:55:38 +0000 (17:55 +0000)
commit908fa2aaede2b3d1c33d167116101c2152e30616
treeb5a58cf7aae9fde316f1a4276d1ea962a3dd3ef0
parent6bd273ae450b2ba626b0f7dbda10947e69578e1d
Fix type of not saved registers.

value_of_register_lazy uses the type of REGNUM in FRAME, but given
multi-arch, the arch of FRAME might be different from the previous
frame's arch, and therefore the type of register REGNUM should be
retrieved from the unwound arch.  This used to be correct before the
previous change.

Tested on x86_64 Fedora 17.

gdb/
2013-11-27  Pedro Alves  <palves@redhat.com>

* frame-unwind.c (frame_unwind_got_optimized): Use the type of the
register in the previous frame's arch.
gdb/ChangeLog
gdb/frame-unwind.c