diff options
author | Pedro Alves <palves@redhat.com> | 2020-06-18 21:28:30 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2020-06-18 23:13:47 +0100 |
commit | f2e1c129f8f0985ec80e6cf775cf3e4afbced6fa (patch) | |
tree | b1e26e5a91c7ab5a8c49579fb331b3b39f694bce /gdb | |
parent | 60db1b8565060f4bd2287b060ea9724c93289982 (diff) | |
download | gdb-f2e1c129f8f0985ec80e6cf775cf3e4afbced6fa.zip gdb-f2e1c129f8f0985ec80e6cf775cf3e4afbced6fa.tar.gz gdb-f2e1c129f8f0985ec80e6cf775cf3e4afbced6fa.tar.bz2 |
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/bsd-kvm.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 96335cb..c465a4d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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 of writing to inferior_ptid directly. (add_to_thread_list, core_target_open): Use switch_to_thread diff --git a/gdb/bsd-kvm.c b/gdb/bsd-kvm.c index b1b1fee..f35c85a 100644 --- a/gdb/bsd-kvm.c +++ b/gdb/bsd-kvm.c @@ -155,7 +155,7 @@ bsd_kvm_target::close () core_kd = NULL; } - inferior_ptid = null_ptid; + switch_to_no_thread (); exit_inferior_silent (current_inferior ()); } |