[gdb/testsuite] Add gdb.arch/ppc64-break-on-_exit.exp
authorTom de Vries <tdevries@suse.de>
Thu, 11 Nov 2021 09:48:50 +0000 (10:48 +0100)
committerTom de Vries <tdevries@suse.de>
Thu, 11 Nov 2021 09:48:50 +0000 (10:48 +0100)
commit585d6e39eb4662b4c725e7ed297783529130e598
tree12bee55f3f8e6797b5e21f698df4738600ba73e2
parentf786c359c1e3227fe8ecfcb2819bb3b80ed351ed
[gdb/testsuite] Add gdb.arch/ppc64-break-on-_exit.exp

Add a regression test-case for commit a50bdb99afe "[gdb/tdep, rs6000] Don't
skip system call in skip_prologue":
- set a breakpoint on a local copy of glibc's _exit, and
- verify that it triggers.

The test-case uses an assembly file by default, but also has the possibility
to use a C source file instead.

Tested on ppc64le-linux.  Verified that the test-case fails without
aforementioned commit, and passes with the commit.  Both with assembly
and C source.
gdb/testsuite/gdb.arch/ppc64-break-on-_exit-main.c [new file with mode: 0644]
gdb/testsuite/gdb.arch/ppc64-break-on-_exit.c [new file with mode: 0644]
gdb/testsuite/gdb.arch/ppc64-break-on-_exit.exp [new file with mode: 0644]
gdb/testsuite/gdb.arch/ppc64-break-on-_exit.s [new file with mode: 0644]