Use 'event_ptid' instead of 'resume_ptid' on startup_inferior (fix for regression...
authorSergio Durigan Junior <sergiodj@redhat.com>
Mon, 19 Sep 2016 21:00:22 +0000 (17:00 -0400)
committerSergio Durigan Junior <sergiodj@redhat.com>
Tue, 20 Sep 2016 11:10:26 +0000 (07:10 -0400)
commit7d5adfe3118050243e85469ad891c7813e4db68a
tree49f664777108f7f427f1b3773e4fa57ab8558eec
parente8eafa2bf8c95c1f2afc073e5244ff4ad0c0a805
Use 'event_ptid' instead of 'resume_ptid' on startup_inferior (fix for regression on my last commit)

Pedro pointed out a regression happening on gdb.mi/mi-exec-run.exp,
and as it turned out, this was a thinko when dealing with some events
on startup_inferior.  Basically, one needs to pass 'event_ptid' to
target_mourn_inferior, but I mistakenly passed 'resume_ptid'.

This commit fixes it.

Built and regtested on BuildBot, now with fixed e-mail notifications!

gdb/ChangeLog:
2016-09-20  Sergio Durigan Junior  <sergiodj@redhat.com>

* fork-inferior.c (startup_inferior): Pass 'event_ptid' instead of
'resume_ptid' to 'target_mourn_inferior'.  Fix regression
introduced by my last commit.
gdb/ChangeLog
gdb/fork-child.c