aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorCarl Love <cel@us.ibm.com>2021-11-05 20:25:28 +0000
committerCarl Love <cel@us.ibm.com>2021-11-12 14:56:16 -0600
commitb626a80342db07f3cc1dae45d40897f4cee1ac6e (patch)
tree84292b3f49d47dbad07c75ab3f6021156ac16a88 /sim
parent1f28b70def1bea937fb9227c8346657016168456 (diff)
downloadgdb-b626a80342db07f3cc1dae45d40897f4cee1ac6e.zip
gdb-b626a80342db07f3cc1dae45d40897f4cee1ac6e.tar.gz
gdb-b626a80342db07f3cc1dae45d40897f4cee1ac6e.tar.bz2
Fix gdb.base/sigstep.exp test for ppc
The test stops at <signal_handler called> which is the call to the handler rather than in the handler as intended. This patch replaces the gdb_test "$enter_cmd to handler" with a gdb_test_multiple test. The multiple test looks for the stop at <signal_handler called>. If found, the command is issued again. The test passes if gdb stops in the handler as expected. (gdb) PASS: gdb.base/sigstep.exp: stepi to handler, nothing in handler, step from handler: continue to signal stepi <signal handler called> 1: x/i $pc => 0x7ffff7f80440 <__kernel_start_sigtramp_rt64>: bctrl (gdb) stepi handler (sig=551) at sigstep.c:32 32 { 1: x/i $pc => 0x10000097c <handler>: addis r2,r12,2 (gdb) PASS: gdb.base/sigstep.exp: stepi to handler, nothing in handler, step from handler: stepi to handler Patch has been tested on x86_64-linux and ppc64le-linux with no test failures.
Diffstat (limited to 'sim')
0 files changed, 0 insertions, 0 deletions