)]}'
{
  "commit": "57d2ceb311aaaf02fe6fae194e1280001a087b6f",
  "tree": "8e18230f7e811b03ff47289f884c936d12711d90",
  "parents": [
    "7b2a5f7183b946a0a2644a505892b7e0aefbbfd1"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Tue Mar 18 08:45:54 2025 +0100"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Tue Mar 18 08:45:54 2025 +0100"
  },
  "message": "[gdb/tdep] Use SYSCALL_MAP_RENAME for aarch64 and loongarch\n\nThere are currently two functions using macros SYSCALL_MAP and\nUNSUPPORTED_SYSCALL_MAP: aarch64_canonicalize_syscall, and\nloongarch_canonicalize_syscall.\n\nHere [1] I propose to do the same in i386_canonicalize_syscall, using one\nadditional macro: SYSCALL_MAP_RENAME.\n\nAdd the same macro in aarch64_canonicalize_syscall and\nloongarch_canonicalize_syscall, and use it to map aarch64_sys_mmap and\nloongarch_sys_mmap to gdb_sys_mmap2.\n\nWhile we\u0027re at it:\n- reformat the macro definitions to be more readable,\n- add missing macro undefs in aarch64_canonicalize_syscall, and\n- fix indentation in aarch64_canonicalize_syscall.\n\nNo functional changes.\n\nTested by rebuilding on x86_64-linux.\n\nReviewed-By: Alexandra Petlanova Hajkova \u003cahajkova@redhat.com\u003e\n\n[1] https://sourceware.org/pipermail/gdb-patches/2025-March/216230.html\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7f396194867612ae7addc4138a9c28c2a65f7e79",
      "old_mode": 33188,
      "old_path": "gdb/aarch64-linux-tdep.c",
      "new_id": "0b4ae7f604c6d881969f92e9f2822d2829655462",
      "new_mode": 33188,
      "new_path": "gdb/aarch64-linux-tdep.c"
    },
    {
      "type": "modify",
      "old_id": "2168ce642b9ec3f735a5d9e99568f88e4648c181",
      "old_mode": 33188,
      "old_path": "gdb/loongarch-linux-tdep.c",
      "new_id": "bd42d0990e89459929121958f1415e97e8afa8d9",
      "new_mode": 33188,
      "new_path": "gdb/loongarch-linux-tdep.c"
    }
  ]
}
