• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

修订版f2e1c129f8f0985ec80e6cf775cf3e4afbced6fa (tree)
时间2020-06-19 07:13:47
作者Pedro Alves <palves@redh...>
CommiterPedro Alves

Log Message

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.

更改概述

差异

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
11 2020-06-18 Pedro Alves <palves@redhat.com>
22
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+
38 * corelow.c (core_target::close): Use switch_to_no_thread instead
49 of writing to inferior_ptid directly.
510 (add_to_thread_list, core_target_open): Use switch_to_thread
--- a/gdb/bsd-kvm.c
+++ b/gdb/bsd-kvm.c
@@ -155,7 +155,7 @@ bsd_kvm_target::close ()
155155 core_kd = NULL;
156156 }
157157
158- inferior_ptid = null_ptid;
158+ switch_to_no_thread ();
159159 exit_inferior_silent (current_inferior ());
160160 }
161161