)]}'
{
  "commit": "45460a213097f19fb10bc5798f127d460f94b00a",
  "tree": "a59fa5fd76199426290f72c085fdecfb306e9bb2",
  "parents": [
    "15c32ab9aa24b33ae4304a416f3618ca0e3bccf9"
  ],
  "author": {
    "name": "Eduard Sargsyan",
    "email": "eduard.sargsyan@intel.com",
    "time": "Fri Mar 18 16:06:31 2022 +0100"
  },
  "committer": {
    "name": "Rohr, Stephan",
    "email": "stephan.rohr@intel.com",
    "time": "Mon Nov 09 12:45:08 2026 +0000"
  },
  "message": "gdb: fix assert after register write failure\n\nGDB tries to invalidate the register cache if a write to a register fails.\nIn case the connection to a remote inferior is closed during the write,\nthe remote target is unpushed, which deletes the regcache.  GDB receives\na TARGET_CLOSE_ERROR.  With this, the regcache is deleted and GDB runs\ninto a use-after-free bug; the previously set up make_scope_exit\ninvalidator writes to the already deleted regcache.\n\nFix this by catching the exception and only invalidating the regcache\nif the error is not a TARGET_CLOSE_ERROR.\n\nCo-Authored-By: Stephan Rohr \u003cstephan.rohr@intel.com\u003e\nApproved-By: Tom Tromey \u003ctom@tromey.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "773e8ac37d0a9d5b378f93be2294d6df029867e4",
      "old_mode": 33188,
      "old_path": "gdb/regcache.c",
      "new_id": "abdd49190eea6e52b10fef146f47edb51a42fc35",
      "new_mode": 33188,
      "new_path": "gdb/regcache.c"
    },
    {
      "type": "modify",
      "old_id": "d4bbb466f04cb71f4a38d83eaa8a3fa4e4008f11",
      "old_mode": 33188,
      "old_path": "gdb/testsuite/gdb.server/server-kill.exp",
      "new_id": "a03e04ad63ec135f80846bd9dc5044082072b4f1",
      "new_mode": 33188,
      "new_path": "gdb/testsuite/gdb.server/server-kill.exp"
    }
  ]
}
