Don't write to inferior_ptid in go32-nat.c
gdb/ChangeLog: 2020-06-18 Pedro Alves <palves@redhat.com> * go32-nat.c (go32_nat_target::create_inferior): Switch to thread after creating it, instead of writing to inferior_ptid. Don't write to inferior_ptid.
This commit is contained in:
parent
6d350754a3
commit
1ee1a36345
|
@ -1,3 +1,9 @@
|
||||||
|
2020-06-18 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
|
* go32-nat.c (go32_nat_target::create_inferior): Switch to thread
|
||||||
|
after creating it, instead of writing to inferior_ptid. Don't
|
||||||
|
write to inferior_ptid.
|
||||||
|
|
||||||
2020-06-18 Pedro Alves <palves@redhat.com>
|
2020-06-18 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
* fork-child.c (postfork_hook): Don't write to inferior_ptid.
|
* fork-child.c (postfork_hook): Don't write to inferior_ptid.
|
||||||
|
|
|
@ -753,14 +753,14 @@ go32_nat_target::create_inferior (const char *exec_file,
|
||||||
save_npx ();
|
save_npx ();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
inferior_ptid = ptid_t (SOME_PID);
|
|
||||||
inf = current_inferior ();
|
inf = current_inferior ();
|
||||||
inferior_appeared (inf, SOME_PID);
|
inferior_appeared (inf, SOME_PID);
|
||||||
|
|
||||||
if (!target_is_pushed (this))
|
if (!target_is_pushed (this))
|
||||||
push_target (this);
|
push_target (this);
|
||||||
|
|
||||||
add_thread_silent (inferior_ptid);
|
thread_info *thr = add_thread_silent (ptid_t (SOME_PID));
|
||||||
|
switch_to_thread (thr);
|
||||||
|
|
||||||
clear_proceed_status (0);
|
clear_proceed_status (0);
|
||||||
insert_breakpoints ();
|
insert_breakpoints ();
|
||||||
|
|
Loading…
Reference in New Issue