)]}'
{
  "commit": "8db6f1bd27086c9623e2b8eb8d01bc4c0a863ca7",
  "tree": "da85f05579a6e4b3f549ac2dac76659010b0f346",
  "parents": [
    "64ba0c58a79bdec307b722cc09aab724d34ba28b"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Sat Oct 29 09:43:32 2022 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Sat Oct 29 09:43:32 2022 +0200"
  },
  "message": "[gdb/testsuite] Fix gdb.server/multi-ui-errors.exp with local-remote-host-notty\n\nWith test-case gdb.server/multi-ui-errors.exp and host board\nlocal-remote-host-notty, I run into:\n...\n(gdb) PASS: gdb.server/multi-ui-errors.exp: interact with GDB\u0027s main UI\nExecuting on target: kill -9 29666    (timeout \u003d 300)\nbuiltin_spawn -ignore SIGHUP kill -9 29666^M\necho^M\nRemote connection closed^M\n(gdb) (gdb) FAIL: gdb.server/multi-ui-errors.exp: \\\n  main UI, prompt after gdbserver dies (timeout)\n...\n\nIn contrast, with local-remote-host (so, everything the same but editing off):\n...\n(gdb) PASS: gdb.server/multi-ui-errors.exp: interact with GDB\u0027s main UI\nExecuting on target: kill -9 31245    (timeout \u003d 300)\nbuiltin_spawn -ignore SIGHUP kill -9 31245^M\nRemote connection closed^M\n(gdb) echo^M\n(gdb) PASS: gdb.server/multi-ui-errors.exp: main UI, prompt after gdbserver dies\n...\n\nThe test-case issues a kill, which results in a \"Remote connection closed\"\nmessage and a prompt.\n\nThe problem is that the prompt is not consumed, so the subsequent echo may be\nissued before that prompt, which causes a mismatch when matching the result\nof the echo.\n\nFix this by consuming the \"Remote connection closed\" message and prompt.\n\nTested on x86_64-linux.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "8a1276fb272d3ac592f5eee5c9367464cc288d90",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.server/multi-ui-errors.exp",
      "new_id": "45a2dabbd6cc48ced549da2fa1f9cc8ce2809d1f",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.server/multi-ui-errors.exp"
    }
  ]
}
