• 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

修訂6d350754a32007465f9adbc11b87339e4493b358 (tree)
時間2020-06-19 07:15:16
作者Pedro Alves <palves@redh...>
CommiterPedro Alves

Log Message

Don't write to inferior_ptid in fork-child.c

This is no longer necessary. All targets that call fork_inferior now
also call switch_to_thread as soon as they add the main thread.

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

* fork-child.c (postfork_hook): Don't write to inferior_ptid.

Change Summary

差異

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
11 2020-06-18 Pedro Alves <palves@redhat.com>
22
3+ * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4+
5+2020-06-18 Pedro Alves <palves@redhat.com>
6+
37 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
48 it, instead of writing to inferior_ptid.
59
--- a/gdb/fork-child.c
+++ b/gdb/fork-child.c
@@ -82,9 +82,6 @@ postfork_hook (pid_t pid)
8282
8383 inferior_appeared (inf, pid);
8484
85- /* Needed for wait_for_inferior stuff. */
86- inferior_ptid = ptid_t (pid);
87-
8885 gdb_assert (saved_ui != NULL);
8986 current_ui = saved_ui;
9087 saved_ui = NULL;