GNU Binutils with patches for OS216
修訂 | 6d350754a32007465f9adbc11b87339e4493b358 (tree) |
---|---|
時間 | 2020-06-19 07:15:16 |
作者 | Pedro Alves <palves@redh...> |
Commiter | Pedro Alves |
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.
@@ -1,5 +1,9 @@ | ||
1 | 1 | 2020-06-18 Pedro Alves <palves@redhat.com> |
2 | 2 | |
3 | + * fork-child.c (postfork_hook): Don't write to inferior_ptid. | |
4 | + | |
5 | +2020-06-18 Pedro Alves <palves@redhat.com> | |
6 | + | |
3 | 7 | * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding |
4 | 8 | it, instead of writing to inferior_ptid. |
5 | 9 |
@@ -82,9 +82,6 @@ postfork_hook (pid_t pid) | ||
82 | 82 | |
83 | 83 | inferior_appeared (inf, pid); |
84 | 84 | |
85 | - /* Needed for wait_for_inferior stuff. */ | |
86 | - inferior_ptid = ptid_t (pid); | |
87 | - | |
88 | 85 | gdb_assert (saved_ui != NULL); |
89 | 86 | current_ui = saved_ui; |
90 | 87 | saved_ui = NULL; |