)]}'
{
  "commit": "cd02db09d26959ea58771c946b44e56fe8c0d36e",
  "tree": "605a94d83fa98f2d4514084a36e57d04d749c4c4",
  "parents": [
    "2dc60c77108cad22c270cec3f88d01fd20716a35"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Mon May 09 10:42:16 2022 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Mon May 09 10:42:16 2022 +0200"
  },
  "message": "[gdb/tdep] Handle pipe2 syscall for amd64\n\nWhen running test-case gdb.reverse/pipe-reverse.exp on openSUSE Tumbleweed,\nI run into:\n...\n(gdb) continue^M\nContinuing.^M\nProcess record and replay target doesn\u0027t support syscall number 293^M\nProcess record: failed to record execution log.^M\n^M\nProgram stopped.^M\n0x00007ffff7daabdb in pipe () from /lib64/libc.so.6^M\n(gdb) FAIL: gdb.reverse/pipe-reverse.exp: continue to breakpoint: marker2\n...\n\nThe current glibc on Tumbleweed is 2.35, which contains commit\n\"linux: Implement pipe in terms of __NR_pipe2\", and consequently syscall pipe2\nis used in stead of syscall pipe.\n\nThere is already support added for syscall pipe2 for aarch64 (which only has\nsyscall pipe2, not syscall pipe), so enable the same for amd64, by:\n- adding amd64_sys_pipe2 in enum amd64_syscall\n- translating amd64_sys_pipe2 to gdb_sys_pipe2 in amd64_canonicalize_syscall\n\nTested on x86_64-linux, specifically on:\n- openSUSE Tumbleweed (with glibc 2.35), and\n- openSUSE Leap 15.3 (with glibc 2.31).\n\nBug: https://sourceware.org/bugzilla/show_bug.cgi?id\u003d29056\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0e5194fbeee71d1b2a281cadcb906a8914112e22",
      "old_mode": 33188,
      "old_path": "gdb/amd64-linux-tdep.c",
      "new_id": "9a0759d639cb598c413936a04ed52dd70952f356",
      "new_mode": 33188,
      "new_path": "gdb/amd64-linux-tdep.c"
    },
    {
      "type": "modify",
      "old_id": "4a41b3b82451b2b6622635a6f527aa88b225ec34",
      "old_mode": 33188,
      "old_path": "gdb/amd64-linux-tdep.h",
      "new_id": "184b0c86f071e4bb892ca09877681c80304cf2a0",
      "new_mode": 33188,
      "new_path": "gdb/amd64-linux-tdep.h"
    }
  ]
}
