Don't write to inferior_ptid in target.c
authorPedro Alves <palves@redhat.com>
Thu, 18 Jun 2020 20:28:20 +0000 (21:28 +0100)
committerPedro Alves <palves@redhat.com>
Thu, 18 Jun 2020 22:04:50 +0000 (23:04 +0100)
gdb/ChangeLog:
2020-06-18  Pedro Alves  <palves@redhat.com>

* target.c (generic_mourn_inferior): Use switch_to_no_thread
instead of writing to inferior_ptid.

gdb/ChangeLog
gdb/target.c

index 4bc9c2818bd4682fd2dc627c9e71a775c35b1224..2890b1f662a1e99b3f1287f454a6bb542aaefd58 100644 (file)
@@ -1,3 +1,8 @@
+2020-06-18  Pedro Alves  <palves@redhat.com>
+
+       * target.c (generic_mourn_inferior): Use switch_to_no_thread
+       instead of writing to inferior_ptid.
+
 2020-06-18  Pedro Alves  <palves@redhat.com>
 
        * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
index e8193b49fa0716679eaff8140ae2b3c3671232e6..f4e4f05b5fac4bb2f9eae881d6fe65c2f6604f58 100644 (file)
@@ -3108,7 +3108,7 @@ generic_mourn_inferior (void)
 {
   inferior *inf = current_inferior ();
 
-  inferior_ptid = null_ptid;
+  switch_to_no_thread ();
 
   /* Mark breakpoints uninserted in case something tries to delete a
      breakpoint while we delete the inferior's threads (which would
This page took 0.029833 seconds and 4 git commands to generate.