binutils-gdb/gdb/testsuite/gdb.reverse
Carl Love c367d9e0cb PowerPC, fix gdb.reverse/finish-reverse-bkpt.exp and gdb.reverse/next-reverse-bkpt-over-sr.exp
The tests set a break point with the command break *func.  This sets a
breakpoint on the first instruction of the function.  PowerPC uses
Global Entry Points (GEP) and Local Entry Points (LEP).  The first
instruction in the function is the GEP.  The GEP sets up register
r2 before reaching the LEP.  When the function is called with func() the
function is entered via the LEP and the test fails because GDB does not
see the breakpoint on the GEP.  However, if the function is called via a
function pointer, execution begins at the GEP as the test expects.

Currently finish-reverse-bkpt.exp uses source file finish-reverse.c and
next-reverse-bpkt-over-sr.exp uses source file step-reverse.c  A new
source file was created for tests finish-reverse-bkpt.exp and
next-reverse-bkpt-over-sr.exp.  The new files use the new function
pointer method to call the functions so the tests will work correctly on
both PowerPC with a GEP and LEP as well as on other systems.  The GEP is
the same as the LEP on non PowerPC systems.

The expect files were changed to use the new source files and to set the
initial break point for the rest of the test on the function pointer call
for the function.

This patch fixes two PowerPC test failures in each of the tests
gdb.reverse/finish-reverse-bkpt.exp and
gdb.reverse/next-reverse-bkpt-over-sr.exp.

Patch tested on PowerPC and Intel X86-64 with no regressions.

Reviewed-By: Bruno Larsen <blarsen@redhat.com>
2022-12-01 14:39:45 -05:00
..
amd64-tailcall-reverse.c
amd64-tailcall-reverse.exp
amd64-tailcall-reverse.S
break-precsave.exp
break-reverse.c
break-reverse.exp
consecutive-precsave.exp gdb/testsuite: remove use of then keyword from gdb.reverse/*.exp 2022-11-28 21:04:09 +00:00
consecutive-reverse.c
consecutive-reverse.exp gdb/testsuite: remove use of then keyword from gdb.reverse/*.exp 2022-11-28 21:04:09 +00:00
finish-precsave.exp
finish-reverse-bkpt.c PowerPC, fix gdb.reverse/finish-reverse-bkpt.exp and gdb.reverse/next-reverse-bkpt-over-sr.exp 2022-12-01 14:39:45 -05:00
finish-reverse-bkpt.exp PowerPC, fix gdb.reverse/finish-reverse-bkpt.exp and gdb.reverse/next-reverse-bkpt-over-sr.exp 2022-12-01 14:39:45 -05:00
finish-reverse.c
finish-reverse.exp
fstatat-reverse.c
fstatat-reverse.exp
getrandom.c [gdb/record] Support recording of getrandom 2022-07-12 15:15:19 +02:00
getrandom.exp [gdb/record] Support recording of getrandom 2022-07-12 15:15:19 +02:00
getresuid-reverse.c
getresuid-reverse.exp
i386-precsave.exp gdb/testsuite: remove use of then keyword from gdb.reverse/*.exp 2022-11-28 21:04:09 +00:00
i386-reverse.c
i386-reverse.exp gdb/testsuite: remove use of then keyword from gdb.reverse/*.exp 2022-11-28 21:04:09 +00:00
i386-sse-reverse.c
i386-sse-reverse.exp gdb/testsuite: remove use of then keyword from gdb.reverse/*.exp 2022-11-28 21:04:09 +00:00
i387-env-reverse.c
i387-env-reverse.exp gdb/testsuite: remove use of then keyword from gdb.reverse/*.exp 2022-11-28 21:04:09 +00:00
i387-stack-reverse.c
i387-stack-reverse.exp gdb/testsuite: remove use of then keyword from gdb.reverse/*.exp 2022-11-28 21:04:09 +00:00
insn-reverse-aarch64.c
insn-reverse-arm.c
insn-reverse-x86.c
insn-reverse.c
insn-reverse.exp gdb/testsuite: remove use of then keyword from gdb.reverse/*.exp 2022-11-28 21:04:09 +00:00
machinestate-precsave.exp
machinestate.c
machinestate.exp
ms1.c
next-reverse-bkpt-over-sr.c PowerPC, fix gdb.reverse/finish-reverse-bkpt.exp and gdb.reverse/next-reverse-bkpt-over-sr.exp 2022-12-01 14:39:45 -05:00
next-reverse-bkpt-over-sr.exp PowerPC, fix gdb.reverse/finish-reverse-bkpt.exp and gdb.reverse/next-reverse-bkpt-over-sr.exp 2022-12-01 14:39:45 -05:00
pipe-reverse.c
pipe-reverse.exp
ppc_record_test_isa_2_06.c
ppc_record_test_isa_2_06.exp gdb/testsuite: remove use of then keyword from gdb.reverse/*.exp 2022-11-28 21:04:09 +00:00
ppc_record_test_isa_3_1.c PowerPC update comments for the MMA instruction name changes. 2022-11-04 12:14:01 -04:00
ppc_record_test_isa_3_1.exp gdb/testsuite: remove use of then keyword from gdb.reverse/*.exp 2022-11-28 21:04:09 +00:00
readv-reverse.c
readv-reverse.exp
recvmsg-reverse.c
recvmsg-reverse.exp
rerun-prec.c
rerun-prec.exp
s390-mvcle.c
s390-mvcle.exp
shr.h
shr1.c
shr2.c
sigall-precsave.exp gdb/testsuite: remove use of then keyword from gdb.reverse/*.exp 2022-11-28 21:04:09 +00:00
sigall-reverse.c
sigall-reverse.exp gdb/testsuite: remove use of then keyword from gdb.reverse/*.exp 2022-11-28 21:04:09 +00:00
singlejmp-reverse-nodebug.c
singlejmp-reverse-nodebug.S
singlejmp-reverse.c
singlejmp-reverse.exp
singlejmp-reverse.S
solib-precsave.exp [gdb/testsuite] Fix gdb.base/infoline-reloc-main-from-zero.exp with clang 2022-10-14 13:09:51 +02:00
solib-reverse.c
solib-reverse.exp gdb/testsuite: remove unneeded calls to get_compiler_info 2022-06-24 15:07:29 +01:00
step-indirect-call-thunk.c
step-indirect-call-thunk.exp
step-precsave.exp gdb/reverse: Fix stepping over recursive functions 2022-10-21 12:49:26 +02:00
step-reverse.c gdb/reverse: Fix stepping over recursive functions 2022-10-21 12:49:26 +02:00
step-reverse.exp gdb/testsuite: add KFAILs to gdb.reverse/step-reverse.exp 2022-11-04 12:02:32 +01:00
test_ioctl_TCSETSW.c
test_ioctl_TCSETSW.exp gdb/testsuite: remove use of then keyword from gdb.reverse/*.exp 2022-11-28 21:04:09 +00:00
time-reverse.c
time-reverse.exp
until-precsave.exp
until-reverse.c
until-reverse.exp
ur1.c
waitpid-reverse.c
waitpid-reverse.exp
watch-precsave.exp
watch-reverse.c
watch-reverse.exp