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.
This commit is contained in:
Pedro Alves 2020-06-18 21:28:27 +01:00
parent ebe84f23d2
commit 1a20473059
2 changed files with 5 additions and 4 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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 ();