diff options
author | Pedro Alves <palves@redhat.com> | 2010-08-06 19:45:58 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2010-08-06 19:45:58 +0000 |
commit | c820c52a914cc9d7c63cb41ad396f4ddffff2196 (patch) | |
tree | eb5cf655fddfdef09aea873fc7cec3b2df311b3e | |
parent | 8da614df6415a7aa01ba8ebf74acef32183266c4 (diff) | |
download | gdb-c820c52a914cc9d7c63cb41ad396f4ddffff2196.zip gdb-c820c52a914cc9d7c63cb41ad396f4ddffff2196.tar.gz gdb-c820c52a914cc9d7c63cb41ad396f4ddffff2196.tar.bz2 |
* thread.c (add_thread_silent): Use null_ptid instead of
minus_one_ptid while getting rid of stale inferior_ptid.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/thread.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8771977..c36d540 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-08-06 Maciej W. Rozycki <macro@codesourcery.com> + + * thread.c (add_thread_silent): Use null_ptid instead of + minus_one_ptid while getting rid of stale inferior_ptid. + 2010-08-06 Corinna Vinschen <vinschen@redhat.com> * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member. diff --git a/gdb/thread.c b/gdb/thread.c index 2fdc7f9..0b291ba 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -187,11 +187,11 @@ add_thread_silent (ptid_t ptid) if (ptid_equal (inferior_ptid, ptid)) { - tp = new_thread (ptid); + tp = new_thread (null_ptid); /* Make switch_to_thread not read from the thread. */ tp->state_ = THREAD_EXITED; - switch_to_thread (minus_one_ptid); + switch_to_thread (null_ptid); /* Now we can delete it. */ delete_thread (ptid); |