[Bug gdb/24454] nat/x86-linux-dregs.c:146: internal-error: void x86_linux_update_debug_registers(lwp_info*): Assertion `lwp_is_stopped (lwp)' failed.

vries at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Tue Apr 16 12:52:00 GMT 2019


https://sourceware.org/bugzilla/show_bug.cgi?id=24454

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |palves at redhat dot com

--- Comment #4 from Tom de Vries <vries at gcc dot gnu.org> ---
Tentative patch:
...
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 37713b24fe..80978d5198 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -982,7 +982,14 @@ handle_vfork_child_exec_or_exit (int exec)
                }
            }

-         target_detach (inf->vfork_parent, 0);
+         /* Now that the vfork child has terminated, make sure during detach
+            that we no longer consider the vfork parent to be a vfork parent,
+            but just a regular process that we're detaching from.  */
+         struct inferior *to_detach = inf->vfork_parent;
+         inf->vfork_parent->vfork_child = NULL;
+         inf->vfork_parent = NULL;
+
+         target_detach (to_detach, 0);

          /* Put it back.  */
          inf->pspace = pspace;
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list