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:
Pedro Alves 2020-06-18 21:28:30 +01:00
parent 60db1b8565
commit f2e1c129f8
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -155,7 +155,7 @@ bsd_kvm_target::close ()
core_kd = NULL;
}
inferior_ptid = null_ptid;
switch_to_no_thread ();
exit_inferior_silent (current_inferior ());
}