)]}'
{
  "commit": "bcacc8e58cd86bf9cbbeb75c5103aed5e6f84cb4",
  "tree": "c12174322bf1e9ae3dc55ffdf92161ce81c94807",
  "parents": [
    "da82701f3123b6cbf36758c06b00f25b62634d52"
  ],
  "author": {
    "name": "Pedro Alves",
    "email": "pedro@palves.net",
    "time": "Wed Apr 03 22:34:47 2024 +0100"
  },
  "committer": {
    "name": "Pedro Alves",
    "email": "pedro@palves.net",
    "time": "Wed Jun 11 14:54:21 2025 +0100"
  },
  "message": "Convert gdb.base/watchpoint-hw-attach.exp to spawn_wait_for_attach\n\nOn Cygwin, starting an inferior under GDB, and detaching it, quitting\nGDB, and then closing the shell, like so:\n\n  (gdb) start\n  (gdb) detach\n  (gdb) quit\n  # close shell\n\n... hangs the parent shell of GDB (not GDB!) until the inferior\nprocess that was detached (as it is still using the same terminal GDB\nwas using) exits too.\n\nThis leads to odd failures in gdb.base/watchpoint-hw-attach.exp like\nso:\n\n detach\n Detaching from program: .../outputs/gdb.base/watchpoint-hw-attach/watchpoint-hw-attach, process 16580\n [Inferior 1 (process 16580) detached]\n (gdb) FAIL: gdb.base/watchpoint-hw-attach.exp: detach\n\nFix this by converting the testcase to spawn the inferior outside GDB,\nwith spawn_wait_for_attach.\n\nWith this patch, the testcase passes cleanly on Cygwin, for me.\n\nApproved-By: Tom Tromey \u003ctom@tromey.com\u003e\nChange-Id: I8e3884073a510d6fd2fff611e1d26fc808adc4fa\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b3892f3989b79d08734d784f779f8ad9e15da24d",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.base/watchpoint-hw-attach.exp",
      "new_id": "fa63edb935d82095deb8deb28d5725d47a59b6a6",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.base/watchpoint-hw-attach.exp"
    }
  ]
}
