mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-28 04:25:10 +08:00
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.
This commit is contained in:
parent
5d971d48b9
commit
6d350754a3
@ -1,3 +1,7 @@
|
||||
2020-06-18 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* fork-child.c (postfork_hook): Don't write to inferior_ptid.
|
||||
|
||||
2020-06-18 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
|
||||
|
@ -82,9 +82,6 @@ postfork_hook (pid_t pid)
|
||||
|
||||
inferior_appeared (inf, pid);
|
||||
|
||||
/* Needed for wait_for_inferior stuff. */
|
||||
inferior_ptid = ptid_t (pid);
|
||||
|
||||
gdb_assert (saved_ui != NULL);
|
||||
current_ui = saved_ui;
|
||||
saved_ui = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user