)]}'
{
  "commit": "c5a72a8d1c321fcf8ea1c5dc742f273a7429fd56",
  "tree": "4276ea4720e0f591312b52f9d43ae1a03ca26f07",
  "parents": [
    "a7e29f797cecd5a2f73c27838b09eae1f1b6c657"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Tue Jun 14 11:06:26 2022 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Tue Jun 14 11:06:26 2022 +0200"
  },
  "message": "[gdb/testsuite] Fix regexp in gdb.ada/mi_var_access.exp\n\nWith gcc-12 and target board unix/-m32, we run into:\n...\n(gdb) ^M\nExpecting: ^(-var-create A_String_Access \\* A_String_Access[^M\n]+)?(\\^done,name\u003d\"A_String_Access\",numchild\u003d\"1\",.*[^M\n]+[(]gdb[)] ^M\n[ ]*)\n-var-create A_String_Access * A_String_Access^M\n^error,msg\u003d\"Value out of range.\"^M\n(gdb) ^M\nFAIL: gdb.ada/mi_var_access.exp: Create varobj (unexpected output)\n...\n\nWhat happens is easier to understand if we take things out of the mi context:\n...\n$ gdb -q -batch \\\n    outputs/gdb.ada/mi_var_access/mi_access \\\n    -ex \"b mi_access.adb:19\" \\\n    -ex run \\\n    -ex \"p A_String_Access\"\n  ...\nBreakpoint 1, mi_access () at mi_access.adb:19\n19         A_String : String (3 .. 5) :\u003d \"345\"; -- STOP\n$1 \u003d (pck.string_access) \u003cerror reading variable: Value out of range.\u003e\n...\nwhile with target board unix we have instead:\n...\n$1 \u003d (pck.string_access) 0x431b40 \u003cada_main.sec_default_sized_stacks\u003e\n...\n\nThe var-create command samples the value of the variable at a location where\nthe variable is not yet initialized, and with target board unix we\naccidentally hit a valid address, but with target board unix/-m32 that\u0027s not\nthe case.\n\nFix the FAIL by accepting the error message.\n\nBug: https://sourceware.org/bugzilla/show_bug.cgi?id\u003d28464\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7a9fe7f7f60b8bf3a22416c4c9d3a7c0f5ca85e5",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.ada/mi_var_access.exp",
      "new_id": "0d5e4e949d68affd7bff127c68ae9fc3df73e4ea",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.ada/mi_var_access.exp"
    }
  ]
}
