diff options
author | Pierre Muller <muller@sourceware.org> | 2011-02-21 15:56:16 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2011-02-21 15:56:16 +0000 |
commit | f67fd822d03bd263034b549d89d98e98356ff194 (patch) | |
tree | e80e7b0b3ab467638d70c2a1b5cb2a5ea07564f9 /gdb | |
parent | c9def01dfcb63c3970dd99274d44597045ee7fc2 (diff) | |
download | gdb-f67fd822d03bd263034b549d89d98e98356ff194.zip gdb-f67fd822d03bd263034b549d89d98e98356ff194.tar.gz gdb-f67fd822d03bd263034b549d89d98e98356ff194.tar.bz2 |
* remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
before calling discard_all_inferiors.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/remote.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b1d233c..89f74ac 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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> * opencl-lang.c (STRUCT_OCL_TYPE): Remove. diff --git a/gdb/remote.c b/gdb/remote.c index c0fd9a7..322b26e 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -2908,9 +2908,11 @@ remote_close (int quitting) remote_desc = NULL; /* We don't have a connection to the remote stub anymore. Get rid - of all the inferiors and their threads we were controlling. */ - discard_all_inferiors (); + of all the inferiors and their threads we were controlling. + 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; + discard_all_inferiors (); /* We're no longer interested in any of these events. */ discard_pending_stop_replies (-1); |