)]}'
{
  "commit": "b235e90e740aa486e6bbe8243eedf109fed41a5c",
  "tree": "1f2e0ebe0f3418dab5f2916c992b4e06f3d93d56",
  "parents": [
    "363baa11378c6383eada19f6bc851fc7230c5dea"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Wed Feb 14 09:55:23 2024 +0100"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Wed Feb 14 09:55:23 2024 +0100"
  },
  "message": "[gdb/testsuite] Fix another fail and tcl error in gdb.dap/sources.exp\n\nWith gdb.dap/sources.exp on aarch64-linux, I\u0027m running into:\n...\n{\"request_seq\": 3, \"type\": \"response\", \"command\": \"loadedSources\", \\\n  \"success\": false, \"message\": \"notStopped\", \"seq\": 7}Content-Length: 92^M\n^M\n{\"type\": \"event\", \"event\": \"thread\", \\\n  \"body\": {\"reason\": \"started\", \"threadId\": 1}, \\\n  \"seq\": 8}FAIL: gdb.dap/sources.exp: loadedSources success\nERROR: tcl error sourcing gdb.dap/sources.exp.\nERROR: tcl error code TCL LOOKUP DICT body\nERROR: key \"body\" not known in dictionary\n    while executing\n\"dict get [lindex $obj 0] body sources\"\n...\n\nThese are the same type of tcl error and FAIL I just fixed for a later\nrequest in the same test-case.\n\nFix this by:\n- moving the wait-for-stop to before the loadedSources request to fix the\n  FAIL, and\n- checking for $obj \u003d\u003d \"\" to fix the tcl error.\n\nAlso make the code a bit less indented and more readable by wrapping the tests\nin a proc, allowing the use of return to bail out, while still running\ndap_shutdown afterwards.\n\nApproved-By: Tom Tromey \u003ctom@tromey.com\u003e\n\nTested on aarch64-linux.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "9b56337e5a8b1486afa349b1ce753ec8c3ccdaa9",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.dap/sources.exp",
      "new_id": "ee853cc68aab636bb22a93ee53afe4b4ca9bfd45",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.dap/sources.exp"
    }
  ]
}
