mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-13 13:49:00 +08:00
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
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
2020-06-18 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* corelow.c (core_target::close): Use switch_to_no_thread instead
|
||||
|
@ -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…
x
Reference in New Issue
Block a user