GNU Binutils with patches for OS216
修订版 | f2e1c129f8f0985ec80e6cf775cf3e4afbced6fa (tree) |
---|---|
时间 | 2020-06-19 07:13:47 |
作者 | Pedro Alves <palves@redh...> |
Commiter | Pedro Alves |
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.
@@ -1,5 +1,10 @@ | ||
1 | 1 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2 | 2 | |
3 | + * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread | |
4 | + instead of writing to inferior_ptid directly. | |
5 | + | |
6 | +2020-06-18 Pedro Alves <palves@redhat.com> | |
7 | + | |
3 | 8 | * corelow.c (core_target::close): Use switch_to_no_thread instead |
4 | 9 | of writing to inferior_ptid directly. |
5 | 10 | (add_to_thread_list, core_target_open): Use switch_to_thread |
@@ -155,7 +155,7 @@ bsd_kvm_target::close () | ||
155 | 155 | core_kd = NULL; |
156 | 156 | } |
157 | 157 | |
158 | - inferior_ptid = null_ptid; | |
158 | + switch_to_no_thread (); | |
159 | 159 | exit_inferior_silent (current_inferior ()); |
160 | 160 | } |
161 | 161 |