forked from Imagelibrary/binutils-gdb
* thread.c (add_thread_silent): Use null_ptid instead of
minus_one_ptid while getting rid of stale inferior_ptid.
This commit is contained in:
@@ -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>
|
2010-08-06 Corinna Vinschen <vinschen@redhat.com>
|
||||||
|
|
||||||
* dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
|
* dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
|
||||||
|
|||||||
@@ -187,11 +187,11 @@ add_thread_silent (ptid_t ptid)
|
|||||||
|
|
||||||
if (ptid_equal (inferior_ptid, 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. */
|
/* Make switch_to_thread not read from the thread. */
|
||||||
tp->state_ = THREAD_EXITED;
|
tp->state_ = THREAD_EXITED;
|
||||||
switch_to_thread (minus_one_ptid);
|
switch_to_thread (null_ptid);
|
||||||
|
|
||||||
/* Now we can delete it. */
|
/* Now we can delete it. */
|
||||||
delete_thread (ptid);
|
delete_thread (ptid);
|
||||||
|
|||||||
Reference in New Issue
Block a user