mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00: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:
@@ -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 ());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user