• 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

修订版5d971d48b922afc1cfe3ba1798477473cfbd052e (tree)
时间2020-06-19 07:14:40
作者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_open): Switch to thread after adding
it, instead of writing to inferior_ptid.

更改概述

差异

--- 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_open): Switch to thread after adding
4+ it, instead of writing to inferior_ptid.
5+
6+2020-06-18 Pedro Alves <palves@redhat.com>
7+
38 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
49 to inferior_ptid.
510
--- a/gdb/bsd-kvm.c
+++ b/gdb/bsd-kvm.c
@@ -136,8 +136,8 @@ bsd_kvm_target_open (const char *arg, int from_tty)
136136 core_kd = temp_kd;
137137 push_target (&bsd_kvm_ops);
138138
139- add_thread_silent (&bsd_kvm_ops, bsd_kvm_ptid);
140- inferior_ptid = bsd_kvm_ptid;
139+ thread_info *thr = add_thread_silent (&bsd_kvm_ops, bsd_kvm_ptid);
140+ switch_to_thread (thr);
141141
142142 target_fetch_registers (get_current_regcache (), -1);
143143