]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/sparc-tdep.c
Fix sparc prologue skipping
authorTom Tromey <tromey@adacore.com>
Mon, 21 Sep 2020 13:09:10 +0000 (07:09 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 21 Sep 2020 13:09:10 +0000 (07:09 -0600)
commit5dd918d980cbcd31a569a6577d520c9da2ef9964
tree7eab1ecf9aa748bdc44b169eb2fab6396022d346
parentc73eac969a8e14ebc5e3a1671951368728d01066
Fix sparc prologue skipping

sparc can fail at inline prologue skipping.  Andrew Burgess tracked
this down to sparc32_skip_prologue, which should use
skip_prologue_using_sal rather than its hand-rolled variant.

I don't have a good way to test this with the gdb test suite (is there
a board file for using qemu?  That would help), but it fixes a
regression in the internal AdaCore test suite.  We've had this patch
internally at AdaCore for a while, but I just now finally got around
to making sure that backing it out reintroduces the problem.

gdb/ChangeLog
2020-09-21  Tom Tromey  <tromey@adacore.com>

* sparc-tdep.c (sparc32_skip_prologue): Use
skip_prologue_using_sal.
gdb/ChangeLog
gdb/sparc-tdep.c