)]}'
{
  "commit": "0068bd6fb3579dd8df7561e038cb3fe27f122b0e",
  "tree": "9d1c50273d00a9490e93f80fb101481c51924e8a",
  "parents": [
    "047fa8cc1cc534f19428b18d3d0c50e8139d3335"
  ],
  "author": {
    "name": "Guinevere Larsen",
    "email": "blarsen@redhat.com",
    "time": "Mon Jan 22 10:13:52 2024 +0100"
  },
  "committer": {
    "name": "Guinevere Larsen",
    "email": "blarsen@redhat.com",
    "time": "Tue Jan 23 16:58:55 2024 +0100"
  },
  "message": "gdb: fix \"list .\" related crash\n\nWhen a user attempts to use the \"list .\" command with an inferior that\ndoesn\u0027t have debug symbols, GDB would crash. This was reported as PR\ngdb/31256.\n\nThe crash would happen when attempting to get the current symtab_and_line\nfor the stop location, because the symtab would return a null pointer\nand we\u0027d attempt to dereference it to print the line.\n\nThis commit fixes that by checking for an empty symtab and erroring out\nof the function if it happens.\n\nBug: https://sourceware.org/bugzilla/show_bug.cgi?id\u003d31256\nApproved-By: Tom Tromey \u003ctom@tromey.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c1c78344a7e7422765c516688ac58ccf1c8b9070",
      "old_mode": 33188,
      "old_path": "gdb/cli/cli-cmds.c",
      "new_id": "df11f956245c51efd35fffbb51c31133650ca001",
      "new_mode": 33188,
      "new_path": "gdb/cli/cli-cmds.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "078517c011e9f265fff42e85c06bef6a189a3419",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/list-nodebug.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "08de05423afee4a6580a733f034821572478b261",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/list-nodebug.exp"
    }
  ]
}
