Fix infinite recursion in amd64fbsd_sigcontext_addr
authorJohn Baldwin <jhb@freebsd.org>
Thu, 26 Feb 2015 11:07:57 +0000 (11:07 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 26 Feb 2015 11:07:57 +0000 (11:07 +0000)
commitc5cb74eeb3ea13a9fbeb0ec26b5bad10c4b92e4a
treeb9c18059c4879d1287591a69045df8443f0c6d39
parent17487d857c372c01fb84b028062eaf1cdb41048a
Fix infinite recursion in amd64fbsd_sigcontext_addr

amd64fbsd_sigcontext_addr is using frame_unwind_register_unsigned to
fetch the stack pointer which results in infinite recursion.  This
patch changes it to use get_frame_register to match the
sigcontext_addr methods in the i386-bsd and amd64-linux targets
instead.

gdb/ChangeLog:
2015-02-25  John Baldwin  <jhb@freebsd.org>

* amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
get_frame_register instead of frame_unwind_register_unsigned.
gdb/ChangeLog
gdb/amd64fbsd-tdep.c