* remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
before calling discard_all_inferiors.
This commit is contained in:
parent
c9def01dfc
commit
f67fd822d0
|
@ -1,3 +1,8 @@
|
||||||
|
2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||||
|
|
||||||
|
* remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
|
||||||
|
before calling discard_all_inferiors.
|
||||||
|
|
||||||
2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
|
2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
|
||||||
|
|
||||||
* opencl-lang.c (STRUCT_OCL_TYPE): Remove.
|
* opencl-lang.c (STRUCT_OCL_TYPE): Remove.
|
||||||
|
|
|
@ -2908,9 +2908,11 @@ remote_close (int quitting)
|
||||||
remote_desc = NULL;
|
remote_desc = NULL;
|
||||||
|
|
||||||
/* We don't have a connection to the remote stub anymore. Get rid
|
/* We don't have a connection to the remote stub anymore. Get rid
|
||||||
of all the inferiors and their threads we were controlling. */
|
of all the inferiors and their threads we were controlling.
|
||||||
discard_all_inferiors ();
|
Reset inferior_ptid to null_ptid first, as otherwise has_stack_frame
|
||||||
|
will be unable to find the thread corresponding to (pid, 0, 0). */
|
||||||
inferior_ptid = null_ptid;
|
inferior_ptid = null_ptid;
|
||||||
|
discard_all_inferiors ();
|
||||||
|
|
||||||
/* We're no longer interested in any of these events. */
|
/* We're no longer interested in any of these events. */
|
||||||
discard_pending_stop_replies (-1);
|
discard_pending_stop_replies (-1);
|
||||||
|
|
Loading…
Reference in New Issue