From: Pedro Alves Date: Thu, 18 Jun 2020 20:28:27 +0000 (+0100) Subject: Don't write to inferior_ptid in go32-nat.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1a20473059c7a088b9f3c4188c09976eebbc3ab4;p=binutils-gdb.git Don't write to inferior_ptid in go32-nat.c generic_mourn_inferior already takes care of switching to no thread. gdb/ChangeLog: 2020-06-18 Pedro Alves * go32-nat.c (go32_nat_target::create_inferior): Don't write to inferior_ptid. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index dc0202d3374..eff2fa2093e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2020-06-18 Pedro Alves + + * go32-nat.c (go32_nat_target::create_inferior): Don't write to + inferior_ptid. + 2020-06-18 Pedro Alves * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c index 881decf0789..d1e508cc780 100644 --- a/gdb/go32-nat.c +++ b/gdb/go32-nat.c @@ -770,8 +770,6 @@ go32_nat_target::create_inferior (const char *exec_file, void go32_nat_target::mourn_inferior () { - ptid_t ptid; - redir_cmdline_delete (&child_cmd); resume_signal = -1; resume_is_step = 0; @@ -787,8 +785,6 @@ go32_nat_target::mourn_inferior () the OS cleans up when the debuggee exits. */ x86_cleanup_dregs (); - ptid = inferior_ptid; - inferior_ptid = null_ptid; prog_has_started = 0; generic_mourn_inferior ();