• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

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

修訂a0776b131d7a154125fdc4d22b1dda967c790ae9 (tree)
時間2020-06-19 07:04:50
作者Pedro Alves <palves@redh...>
CommiterPedro Alves

Log Message

Don't write to inferior_ptid in target.c

gdb/ChangeLog:
2020-06-18 Pedro Alves <palves@redhat.com>

* target.c (generic_mourn_inferior): Use switch_to_no_thread
instead of writing to inferior_ptid.

Change Summary

差異

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
11 2020-06-18 Pedro Alves <palves@redhat.com>
22
3+ * target.c (generic_mourn_inferior): Use switch_to_no_thread
4+ instead of writing to inferior_ptid.
5+
6+2020-06-18 Pedro Alves <palves@redhat.com>
7+
38 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
49 added thread.
510 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -3108,7 +3108,7 @@ generic_mourn_inferior (void)
31083108 {
31093109 inferior *inf = current_inferior ();
31103110
3111- inferior_ptid = null_ptid;
3111+ switch_to_no_thread ();
31123112
31133113 /* Mark breakpoints uninserted in case something tries to delete a
31143114 breakpoint while we delete the inferior's threads (which would