Don't write to inferior_ptid in bsd-kvm.c
gdb/ChangeLog: 2020-06-18 Pedro Alves <palves@redhat.com> * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread instead of writing to inferior_ptid directly.
This commit is contained in:
parent
60db1b8565
commit
f2e1c129f8
2 changed files with 6 additions and 1 deletions
|
@ -155,7 +155,7 @@ bsd_kvm_target::close ()
|
|||
core_kd = NULL;
|
||||
}
|
||||
|
||||
inferior_ptid = null_ptid;
|
||||
switch_to_no_thread ();
|
||||
exit_inferior_silent (current_inferior ());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue