diff options
author | Tom de Vries <tdevries@suse.de> | 2022-05-11 08:35:33 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-05-11 08:35:33 +0200 |
commit | d423425393e4ef27cabdda4134ae27905a18fcf7 (patch) | |
tree | f6df5aaa65dd53bee4b58ba1769abbbe660fceae /ld/testplug3.c | |
parent | 0dfdb5234a22308c5d1e732652eeee7fa6f608c7 (diff) | |
download | gdb-d423425393e4ef27cabdda4134ae27905a18fcf7.zip gdb-d423425393e4ef27cabdda4134ae27905a18fcf7.tar.gz gdb-d423425393e4ef27cabdda4134ae27905a18fcf7.tar.bz2 |
[gdb/record] Handle statx system call
When running test-case gdb.reverse/fstatat-reverse.exp with target board
unix/-m32 on openSUSE Tumbleweed, I run into:
...
(gdb) PASS: gdb.reverse/fstatat-reverse.exp: set breakpoint at marker2
continue^M
Continuing.^M
Process record and replay target doesn't support syscall number 383^M
Process record: failed to record execution log.^M
^M
Program stopped.^M
0xf7fc5555 in __kernel_vsyscall ()^M
(gdb) FAIL: gdb.reverse/fstatat-reverse.exp: continue to breakpoint: marker2
...
The problems is that while with native we're trying to record these syscalls
(showing strace output):
...
openat(AT_FDCWD, "/", O_RDONLY|O_PATH) = 3
newfstatat(3, ".", {st_mode=S_IFDIR|0755, st_size=146, ...}, 0) = 0
...
with unix/-m32 we have instead:
...
openat(AT_FDCWD, "/", O_RDONLY|O_PATH) = 3
statx(3, ".", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT, STATX_BASIC_STATS, \
{stx_mask=STATX_ALL|STATX_MNT_ID, stx_attributes=STATX_ATTR_MOUNT_ROOT, \
stx_mode=S_IFDIR|0755, stx_size=146, ...}) = 0
...
and statx is not supported.
Fix this by adding support for recording syscall statx.
Tested on x86_64-linux.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=28461
Diffstat (limited to 'ld/testplug3.c')
0 files changed, 0 insertions, 0 deletions