)]}'
{
  "commit": "038d8b4635eda079a63df176cfa48c47f8c32617",
  "tree": "d892d607dc8306449782ed5b66b132cf15a2f622",
  "parents": [
    "249f1cf8e669cc2fa7832601e0bbf460c5bfb97d"
  ],
  "author": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Thu Jan 06 15:32:55 2022 +0000"
  },
  "committer": {
    "name": "Andrew Burgess",
    "email": "aburgess@redhat.com",
    "time": "Sat Jan 08 22:12:57 2022 +0000"
  },
  "message": "gdb/hurd: handle inferiors exiting\n\nWhile testing on GNU/Hurd (i386) I noticed that GDB crashes when an\ninferior exits, with this error:\n\n  inferior.c:293: internal-error: inferior* find_inferior_pid(process_stratum_target*, int): Assertion `pid !\u003d 0\u0027 failed.\n\nThe problem appears to be in gnu_nat_target::wait.\n\nWe always set inferior_ptid to null_ptid before calling target_wait,\nthis has been the case since the multi-target changes were made to GDB\nin commit:\n\n  commit 5b6d1e4fa4fc6827c7b3f0e99ff120dfa14d65d2\n  Date:   Fri Jan 10 20:06:08 2020 +0000\n\n      Multi-target support\n\nWith follow up changes in commit:\n\n  commit 24ed6739b699f329c2c45aedee5f8c7d2f54e493\n  Date:   Thu Jan 30 14:35:40 2020 +0000\n\n      gdb/remote: Restore support for \u0027S\u0027 stop reply packet\n\nUnfortunately, the GNU/Hurd target is still relying on the value of\ninferior_ptid in the case where an inferior exits - we return the\nvalue of inferior_ptid as the pid of the process that exited.  This\nwas fine in the single target world, where inferior_ptid identified\nthe one running inferior, but this is no longer good enough.\n\nInstead, we should return a ptid containing the pid of the process\nthat exited, as obtained from the wait event, and this is what this\ncommit does.\n\nI\u0027ve not run the full testsuite on GNU/Hurd as there appear to be lots\nof other issues with this target that makes running the full testsuite\nvery painful, but I think this looks like a small easy improvement.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1d3b5f1a357725b31f1d69aca8edf0036c139c83",
      "old_mode": 33188,
      "old_path": "gdb/gnu-nat.c",
      "new_id": "9c53e3c0c2f408550f7929453cf5073fd7db74ef",
      "new_mode": 33188,
      "new_path": "gdb/gnu-nat.c"
    }
  ]
}
