[gdb] Update syscalls/{amd64,i386}-linux.xml
authorTom de Vries <tdevries@suse.de>
Mon, 9 May 2022 15:22:23 +0000 (17:22 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 9 May 2022 15:22:23 +0000 (17:22 +0200)
commitf3c75b2cbe88aa1f637d08317614bbeb2cbeecea
tree4df92ffe86ee47adb609f9a5856529749f33b279
parentd9ab2743baf47aedb40afba1a0d1a5bd2b1a755d
[gdb] Update syscalls/{amd64,i386}-linux.xml

- Add a script syscalls/gen-header.py, based on syscalls/arm-linux.py.
- Add a script syscalls/update-linux.sh (alongside update-freebsd.sh and
  update-netbsd.sh).
- Use syscalls/update-linux.sh to update syscalls/{amd64,i386}-linux.xml.in.
- Regenerate syscalls/{amd64,i386}-linux.xml using syscalls/Makefile.

In gdb/syscalls/i386-linux.xml.in, updating has the following notable effect:
...
-  <syscall name="madvise1" number="220"/>
-  <syscall name="getdents64" number="221"/>
-  <syscall name="fcntl64" number="222"/>
+  <syscall name="getdents64" number="220"/>
+  <syscall name="fcntl64" number="221"/>
...

I've verified in ./arch/x86/entry/syscalls/syscall_32.tbl that the numbers are
correct.

Tested on x86_64-linux.
gdb/syscalls/amd64-linux.xml
gdb/syscalls/amd64-linux.xml.in
gdb/syscalls/gen-header.py [new file with mode: 0644]
gdb/syscalls/i386-linux.xml
gdb/syscalls/i386-linux.xml.in
gdb/syscalls/update-linux.sh [new file with mode: 0755]