From 1a20473059c7a088b9f3c4188c09976eebbc3ab4 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 18 Jun 2020 21:28:27 +0100 Subject: [PATCH] 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. --- gdb/ChangeLog | 5 +++++ gdb/go32-nat.c | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) 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 (); -- 2.30.2