[gdb/tdep] Support catch syscall pipe2 for i386
authorTom de Vries <tdevries@suse.de>
Mon, 9 May 2022 10:22:02 +0000 (12:22 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 9 May 2022 10:22:02 +0000 (12:22 +0200)
With test-case gdb.base/catch-syscall.exp and target board unix/-m32, we run
into:
...
(gdb) catch syscall pipe2^M
Unknown syscall name 'pipe2'.^M
(gdb) FAIL: gdb.base/catch-syscall.exp: determine pipe syscall: catch syscall pipe2
...

Fix this by:
- adding a pipe2 entry in gdb/syscalls/i386-linux.xml.in, and
- regenerating gdb/syscalls/i386-linux.xml using
  "xsltproc --output i386-linux.xml apply-defaults.xsl i386-linux.xml.in".

Tested on x86_64-linux with native and unix/-m32.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29056

gdb/syscalls/i386-linux.xml
gdb/syscalls/i386-linux.xml.in

index a783dd10af35b611329548309c9919587b60396d..4a7a2345186978f8b0e4dd9c6fe93d973c7c0f62 100644 (file)
   <syscall name="eventfd" number="323" groups="descriptor"/>
   <syscall name="fallocate" number="324" groups="descriptor"/>
   <syscall name="timerfd_settime" number="325" groups="descriptor"/>
+  <syscall name="pipe2" number="331" groups="descriptor"/>
 </syscalls_info>
index e778ab54043e212903bf49d2d603a838c119ed10..13c4d1d99d4e486b44afa3731237fff0b19e29ec 100644 (file)
   <syscall name="eventfd" number="323"/>
   <syscall name="fallocate" number="324"/>
   <syscall name="timerfd_settime" number="325"/>
+  <syscall name="pipe2" number="331"/>
 </syscalls_info>