Don't write to inferior_ptid in target.c
gdb/ChangeLog: 2020-06-18 Pedro Alves <palves@redhat.com> * target.c (generic_mourn_inferior): Use switch_to_no_thread instead of writing to inferior_ptid.
This commit is contained in:
parent
6155c136cc
commit
a0776b131d
|
@ -1,3 +1,8 @@
|
|||
2020-06-18 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* target.c (generic_mourn_inferior): Use switch_to_no_thread
|
||||
instead of writing to inferior_ptid.
|
||||
|
||||
2020-06-18 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
|
||||
|
|
|
@ -3108,7 +3108,7 @@ generic_mourn_inferior (void)
|
|||
{
|
||||
inferior *inf = current_inferior ();
|
||||
|
||||
inferior_ptid = null_ptid;
|
||||
switch_to_no_thread ();
|
||||
|
||||
/* Mark breakpoints uninserted in case something tries to delete a
|
||||
breakpoint while we delete the inferior's threads (which would
|
||||
|
|
Loading…
Reference in New Issue