aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2020-06-18 21:28:27 +0100
committerPedro Alves <palves@redhat.com>2020-06-18 23:10:53 +0100
commit1a20473059c7a088b9f3c4188c09976eebbc3ab4 (patch)
tree4f2f203b5306313449fa21cb1b60de180e756bcd /gdb
parentebe84f23d2f3c0cb145cc7b3acfb011a4c7df1c9 (diff)
downloadgdb-1a20473059c7a088b9f3c4188c09976eebbc3ab4.zip
gdb-1a20473059c7a088b9f3c4188c09976eebbc3ab4.tar.gz
gdb-1a20473059c7a088b9f3c4188c09976eebbc3ab4.tar.bz2
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 <palves@redhat.com> * go32-nat.c (go32_nat_target::create_inferior): Don't write to inferior_ptid.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/go32-nat.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index dc0202d..eff2fa2 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2020-06-18 Pedro Alves <palves@redhat.com>
+ * go32-nat.c (go32_nat_target::create_inferior): Don't write to
+ inferior_ptid.
+
+2020-06-18 Pedro Alves <palves@redhat.com>
+
* nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
inferior_ptid.
(nto_procfs_target::attach): Avoid inferior_ptid. Switch to
diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c
index 881decf..d1e508c 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 ();