gdb/testsuite: Add test to step through function epilogue
authorBruno Larsen <blarsen@redhat.com>
Wed, 20 Jul 2022 19:44:41 +0000 (16:44 -0300)
committerBruno Larsen <blarsen@redhat.com>
Thu, 22 Sep 2022 09:04:18 +0000 (11:04 +0200)
commit9c5f314314e2d14c7602a79b969e02ebdd8890ea
tree384956f61a3d0babd973866bc61ac04234d8d292
parent7e1cd467b5c12b719c764fe219c7f6736ccf8c31
gdb/testsuite: Add test to step through function epilogue

The testsuite implicitly tests GDB's ability to step through epilogues
in multiple tests, without doing it explicitly anywhere.  This is
unfortunate, as clang does not emit epilogue information, so using clang
on our testsuite makes many tests fail.  This patch adds a central,
explicit test for walking through the epilogue so we can safely remove
this from other tests and have them working with clang.

The test created attempts to step through a simple epilogue, an
epilogue that ends on another epilogue, and epilogues leading to other
function calls.
gdb/testsuite/gdb.base/step-through-epilogue.c [new file with mode: 0644]
gdb/testsuite/gdb.base/step-through-epilogue.exp [new file with mode: 0644]