)]}'
{
  "commit": "a08dc2aa004b28abef80967ef34b3a060ea78007",
  "tree": "ff41fc0d44326f13a78e9fe4e54a9b4929f31854",
  "parents": [
    "950895a209a7e6fd04a40bcd1dcc5411f92f5288"
  ],
  "author": {
    "name": "Tiezhu Yang",
    "email": "yangtiezhu@loongson.cn",
    "time": "Thu Feb 29 16:39:07 2024 +0800"
  },
  "committer": {
    "name": "Tiezhu Yang",
    "email": "yangtiezhu@loongson.cn",
    "time": "Wed Mar 20 18:50:29 2024 +0800"
  },
  "message": "gdb: syscalls: Add loongarch-linux.xml.in\n\nThere is no syscall.tbl for LoongArch because it uses generic syscalls,\nso it can not generate loongarch-linux.xml.in automatically through the\nscript update-linux-from-src.sh, make use of the script update-linux.sh\nto generate loongarch-linux.xml.in.\n\nLike this:\n\n  $ git clone https://sourceware.org/git/binutils-gdb.git gdb.git\n  $ cd gdb.git/gdb/syscalls/\n  $ touch loongarch-linux.xml.in\n  $ ./update-linux.sh loongarch-linux.xml.in\n\nNote that the system header file /usr/include/asm-generic/unistd.h\nmay be different with the latest upstream Linux kernel uapi header\nfile include/uapi/asm-generic/unistd.h, it is better to copy the\nupstream header file into the system header file when generating\nloongarch-linux.xml.in.\n\nThere exist some __NR3264_ prefixed syscall numbers, replace them\nwith digital numbers according to /usr/include/asm-generic/unistd.h\nand sort them by syscall number manually, maybe we can modify the\nscript to do it automatically in the future.\n\n  \u003csyscall name\u003d\"fcntl\" number\u003d\"__NR3264_fcntl\"/\u003e\n  \u003csyscall name\u003d\"statfs\" number\u003d\"__NR3264_statfs\"/\u003e\n  \u003csyscall name\u003d\"fstatfs\" number\u003d\"__NR3264_fstatfs\"/\u003e\n  \u003csyscall name\u003d\"truncate\" number\u003d\"__NR3264_truncate\"/\u003e\n  \u003csyscall name\u003d\"ftruncate\" number\u003d\"__NR3264_ftruncate\"/\u003e\n  \u003csyscall name\u003d\"lseek\" number\u003d\"__NR3264_lseek\"/\u003e\n  \u003csyscall name\u003d\"sendfile\" number\u003d\"__NR3264_sendfile\"/\u003e\n  \u003csyscall name\u003d\"mmap\" number\u003d\"__NR3264_mmap\"/\u003e\n  \u003csyscall name\u003d\"fadvise64\" number\u003d\"__NR3264_fadvise64\"/\u003e\n\nSigned-off-by: Tiezhu Yang \u003cyangtiezhu@loongson.cn\u003e\nApproved-By: John Baldwin \u003cjhb@FreeBSD.org\u003e\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e6e17b3f2b61c14fbaa814c66a271378bba27a7d",
      "new_mode": 33188,
      "new_path": "gdb/syscalls/loongarch-linux.xml.in"
    }
  ]
}
