[gdb/testsuite] Fix gdb.reverse/test_ioctl_TCSETSW.exp with libc debuginfo
authorTom de Vries <tdevries@suse.de>
Mon, 13 Jun 2022 22:26:46 +0000 (00:26 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 13 Jun 2022 22:26:46 +0000 (00:26 +0200)
commitc2ac533e98438df5e5c2c58cce104c927ad42d09
treeace1bf2cd65239f2cf1b7bcca0accc28479ac09a
parentc722093960edc1291df0a19ab0136fdb8934bdc2
[gdb/testsuite] Fix gdb.reverse/test_ioctl_TCSETSW.exp with libc debuginfo

When running test-case gdb.reverse/test_ioctl_TCSETSW.exp with glibc debuginfo
installed, I run into:
...
(gdb) PASS: gdb.reverse/test_ioctl_TCSETSW.exp: at TCSETSW call
step^M
__tcsetattr (fd=0, optional_actions=1, termios_p=0x7fffffffcf50) at \
  ../sysdeps/unix/sysv/linux/tcsetattr.c:45^M
45      {^M
(gdb) FAIL: gdb.reverse/test_ioctl_TCSETSW.exp: handle TCSETSW
...

The problem is that the step is expected to step over the call to tcsetattr,
but due to glibc debuginfo being installed, we step into the call.

Fix this by using next instead of step.

Tested on x86_64-linux.
gdb/testsuite/gdb.reverse/test_ioctl_TCSETSW.exp