diff options
author | Tom de Vries <tdevries@suse.de> | 2022-05-09 12:01:42 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-05-09 12:01:42 +0200 |
commit | 5463a15c18bf01ba33bfbdc6739649fe1d00058b (patch) | |
tree | f80c273d9cdfa49705fff0d6075d129179cea221 /gdb/rust-lang.c | |
parent | cd02db09d26959ea58771c946b44e56fe8c0d36e (diff) | |
download | gdb-5463a15c18bf01ba33bfbdc6739649fe1d00058b.zip gdb-5463a15c18bf01ba33bfbdc6739649fe1d00058b.tar.gz gdb-5463a15c18bf01ba33bfbdc6739649fe1d00058b.tar.bz2 |
[gdb/testsuite] Handle pipe2 syscall in gdb.base/catch-syscall.exp
When running test-case gdb.reverse/pipe-reverse.exp on openSUSE Tumbleweed,
I run into:
...
(gdb) continue^M
Continuing.^M
^M
Catchpoint 2 (returned from syscall pipe2), in pipe () from /lib64/libc.so.6^M
(gdb) FAIL: gdb.base/catch-syscall.exp: without arguments: \
syscall pipe has returned
...
The current glibc on Tumbleweed is 2.35, which contains commit
"linux: Implement pipe in terms of __NR_pipe2", and consequently syscall pipe2
is used instead of syscall pipe.
Fix this by detecting whether syscall pipe or pipe2 is used before running the
tests.
Tested on x86_64-linux, specifically on:
- openSUSE Tumbleweed (with glibc 2.35), and
- openSUSE Leap 15.3 (with glibc 2.31).
On openSUSE Tumbleweed + target board unix/-m32, this exposes:
...
(gdb) catch syscall pipe2^M
Unknown syscall name 'pipe2'.^M
...
which will be fixed in a folllow-up patch.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29056
Diffstat (limited to 'gdb/rust-lang.c')
0 files changed, 0 insertions, 0 deletions