From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AE4D2385842A; Mon, 8 Jan 2024 19:05:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE4D2385842A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1704740753; bh=hUhpG3rDe51iyYotiIxoc5ucApULzrTWj8aw6l9lhLk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QquAq7Eg//61alyIKKN2IwPbFlLs3Af7w6B6DbuVcPmNhEzfH8L+z08NLvLARknA4 tNEzJ0T6hxAbG6rRUa7/OqdEir+jKaitL2Vr5/tBYpYG16Urm3Q4LEs8ksJfXpx5Is nDpCcO0DSY6AxQbpiC5JvTwl/ooyVf0QoDEpMZJo= From: "kevinb at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/31203] [gdb] FAIL: gdb.base/kill-during-detach.exp: exit_p=true: checkpoint_p=true: python kill_and_detach() Date: Mon, 08 Jan 2024 19:05:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kevinb at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31203 --- Comment #11 from Kevin Buettner --- (In reply to Tom de Vries from comment #10) > Not sure if this is the right place or way, but this fixes the FAIL: > ... > diff --git a/gdb/linux-fork.c b/gdb/linux-fork.c > index 1430ff89fa7..0d97ec1ba04 100644 > --- a/gdb/linux-fork.c > +++ b/gdb/linux-fork.c > @@ -228,6 +228,8 @@ fork_load_infrun_state (struct fork_info *fp) > inferior_thread ()->set_stop_pc > (regcache_read_pc (get_thread_regcache (inferior_thread ()))); > nullify_last_target_wait_ptid (); > + inferior_thread ()->set_executing (false); > + inferior_thread ()->set_resumed (false); >=20=20 > /* Now restore the file positions of open file descriptors. */ > if (fp->filepos) > ... There are multiple problems with linux-fork.c that need to be addressed at some point, but your patch looks reasonable to me. --=20 You are receiving this mail because: You are on the CC list for the bug.=