)]}'
{
  "commit": "a58e6081294fd3dde8fc7397f3a09f8c8a3f87aa",
  "tree": "715bffb151fd1bb17daa8cce3bfd5a4d2cc1203d",
  "parents": [
    "8b3ea407f65571000c9fc3d79081b65d1b4e3759"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Mon Aug 03 19:51:31 2026 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Mon Aug 03 19:51:31 2026 +0200"
  },
  "message": "[gdb/testsuite] Fix gdb.dwarf2/dw-form-strx-out-of-bounds.exp\n\nWith test-case gdb.dwarf2/dw-form-strx-out-of-bounds.exp, I usually get:\n...\n(gdb) file dw-form-strx-out-of-bounds\nReading symbols from dw-form-strx-out-of-bounds...\n(gdb) ptype global_var\nDWARF Error: Offset from DW_FORM_GNU_str_index or DW_FORM_strx pointing \\\n  outside of .debug_str_offsets section in CU at offset 0x2d1 [in module \\\n  dw-form-strx-out-of-bounds]\nNo symbol \"global_var\" in current context.\n(gdb) PASS: $exp: ptype global_var\n...\n\nBut I just ran into:\n...\n(gdb) file dw-form-strx-out-of-bounds^M\nReading symbols from dw-form-strx-out-of-bounds...\nDWARF Error: Offset from DW_FORM_GNU_str_index or DW_FORM_strx pointing \\\n  outside of .debug_str_offsets section in CU at offset 0x2df [in module \\\n  dw-form-strx-out-of-bounds]^M\n(gdb) ptype global_var^M\nNo symbol \"global_var\" in current context.^M\n(gdb) FAIL: $exp: ptype global_var\n...\n\nFix this by:\n- using \"maint set dwarf synchronous on\" to ensure that the error happens\n  during the file command\n- updating the matching to check $gdb_file_cmd_msg\n\nTested gdb.dwarf2/dw-form-strx-out-of-bounds.exp and gdb.dwarf2/dw-form-strx.exp\nusing make-check-all.sh on x86_64-linux.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "be7323bce95670d2a9245a7f95e2c29e85d8c850",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.dwarf2/dw-form-strx-out-of-bounds.exp",
      "new_id": "e1e28eb432fc45e630d76b37e7dc168b60c10a71",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.dwarf2/dw-form-strx-out-of-bounds.exp"
    },
    {
      "type": "modify",
      "old_id": "931c935ccaea69eb2e4fcc600dcf9ee2d0fbcda1",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.dwarf2/dw-form-strx.exp.tcl",
      "new_id": "b261dc654af1bb1e88a9c3bb27bfe757e51a7242",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.dwarf2/dw-form-strx.exp.tcl"
    }
  ]
}
