)]}'
{
  "commit": "d3685ec080cc5bfb9646cdc1f5ddda0c3da92b76",
  "tree": "3aefc3df027f534959927f4e5f7bccf1c5641802",
  "parents": [
    "39c219c58c2937b8c78335f46eb0b12c77c3188a"
  ],
  "author": {
    "name": "Yang Liu",
    "email": "liuyang22@iscas.ac.cn",
    "time": "Mon Dec 23 00:33:30 2024 +0800"
  },
  "committer": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Tue Jan 14 18:02:19 2025 +0000"
  },
  "message": "gdb/jit: fix jit-reader linetable integrity\n\nThe custom linetable functionality in GDB\u0027s JIT Interface has been broken\nsince commit 1acc9dca423f78e44553928f0de839b618c13766.\n\nIn that commit, linetables were made independent from the objfile, which\nrequires objfile-\u003esection_offsets to be initialized. However, section_offsets\nwere never initialized in objfiles generated by GDB\u0027s JIT Interface\nwith custom jit-readers, leading to GDB crashes when stepping into JITed code\nblocks with the following command already executed:\n\n  jit-reader-load libmygdbjitreader.so\n\nThis patch fixes the issue by initializing the minimum section_offsets required\nfor linetable parsing procedures.\n\nA minimal test is included.  The test sets up some very simple line\ntable information, which is enough to trigger the bug.  However, the\nline table information is crafted such that none of the line table\nentries will end up being displayed in GDB\u0027s output when the test is\nrun, as such, none of the expected output actually changes.\n\nIt might be nice in the future to extend some of the jit tests to\nactually test hitting line table entries added via the jit reader.\n\nApproved-By: Tom Tromey \u003ctom@tromey.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "39c17a5ab989aaa206df293c6193ed494d62b408",
      "old_mode": 33188,
      "old_path": "gdb/jit.c",
      "new_id": "9736f84cf873011e349c2104c7c910b4a7878535",
      "new_mode": 33188,
      "new_path": "gdb/jit.c"
    },
    {
      "type": "modify",
      "old_id": "414be072a67ef6c13e73d8dd76e6928e3892cba2",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.base/jit-reader.c",
      "new_id": "78117f0417949ea5b4eacb01dd823624ba40dc90",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/jit-reader.c"
    }
  ]
}
