diff options
author | Tom Tromey <tom@tromey.com> | 2018-07-04 11:32:50 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-07-04 11:32:50 -0600 |
commit | a7d0f0f000b39269c25509a22a12549c6ef26b1f (patch) | |
tree | 9ba030bda9fcbca7f77d3848ead4b33aef8fd5e1 /gdb/darwin-nat.c | |
parent | 6242c6a690ce8e18aad711103902bfff00cc2757 (diff) | |
download | gdb-a7d0f0f000b39269c25509a22a12549c6ef26b1f.zip gdb-a7d0f0f000b39269c25509a22a12549c6ef26b1f.tar.gz gdb-a7d0f0f000b39269c25509a22a12549c6ef26b1f.tar.bz2 |
Use exit_inferior in darwin_attach_pid
Commit a50c11c666 was intended to use exit_inferior in
darwin_attach_pid, but I accidentally pushed the wrong version of the
patch. This fixes the problem.
gdb/ChangeLog
2018-07-04 Tom Tromey <tom@tromey.com>
* darwin-nat.c (darwin_attach_pid): Use exit_inferior.
Diffstat (limited to 'gdb/darwin-nat.c')
-rw-r--r-- | gdb/darwin-nat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c index 8104de5..5aed285 100644 --- a/gdb/darwin-nat.c +++ b/gdb/darwin-nat.c @@ -1662,8 +1662,7 @@ darwin_attach_pid (struct inferior *inf) } CATCH (ex, RETURN_MASK_ALL) { - inf->pid = 0; - inf->priv.reset (); + exit_inferior (inf); inferior_ptid = null_ptid; throw_exception (ex); |