)]}'
{
  "commit": "99d679e7b30ea9a0b6ffcd64e9ba35e43166151b",
  "tree": "5055a9044da2cdf85d999d3c3d5298bae9af5bd1",
  "parents": [
    "5e3cecb21acfbdc16f65efc276733efe89f5aa25"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Sat Sep 17 08:22:32 2022 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Sat Sep 17 08:22:32 2022 +0200"
  },
  "message": "[gdb/symtab] Fix \"file index out of range\" complaint\n\nWith the test-case included in this commit, we run into this FAIL:\n...\n(gdb) p var^M\nDuring symbol reading: file index out of range^M\n$1 \u003d 0^M\n(gdb) FAIL: gdb.dwarf2/dw2-no-code-cu.exp: p var with no complaints\n...\n\nThis is a regression since commit 6d263fe46e0 (\"Avoid bad breakpoints with\n--gc-sections\"), which contains this change in read_file_scope:\n...\n-  handle_DW_AT_stmt_list (die, cu, fnd, lowpc);\n+  if (lowpc !\u003d highpc)\n+    handle_DW_AT_stmt_list (die, cu, fnd, lowpc);\n...\n\nThe change intends to avoid a problem with a check in\nlnp_state_machine::check_line_address, but also prevents the file and dir\ntables from being read, which causes the complaint.\n\nFix the FAIL by reducing the scope of the \"lowpc !\u003d highpc\" condition to the\ncall to dwarf_decode_lines in handle_DW_AT_stmt_list.\n\nTested on x86_64-linux.\n\nBug: https://sourceware.org/bugzilla/show_bug.cgi?id\u003d29561\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0a3c29212b48c6bf46009f1a1c86f3a4376b5b2c",
      "old_mode": 33188,
      "old_path": "gdb/dwarf2/read.c",
      "new_id": "ceb14511f8b5d0e5e385678dbe6d10a8e08ca2a4",
      "new_mode": 33188,
      "new_path": "gdb/dwarf2/read.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "576b1a21442baa9b74fb6a53e6a0b1bb12c5dd1a",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.dwarf2/dw2-no-code-cu.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "911bb7e2a7df98e3485dc3e8991337207c805608",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.dwarf2/dw2-no-code-cu.exp"
    }
  ]
}
