From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 52B583858C29; Mon, 8 Jan 2024 16:29:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 52B583858C29 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1704731361; bh=rBnMxTgFDvIAZw+pJlWL3lNxDtmfR+pI2v//VImN9oE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xqs5dhRrQ9slWIZoEymft6kPLtNhmuEmqxIcxgwxj8BgOpM6JTbmYIr4bF8fOjZuJ dtraeHHI5AyOpGS4+iWkDOvmMDL7hEd0Afq9wNeappvl7MBRMPh/+GM4zoheYE/TPS kIFUBwk1SkuWKpu3OYSA+wmd2RQcOQVkKuzSYLsc= From: "vries at gcc dot gnu.org" 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 16:29:20 +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: vries at gcc dot gnu.org 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 #10 from Tom de Vries --- 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); /* Now restore the file positions of open file descriptors. */ if (fp->filepos) ... --=20 You are receiving this mail because: You are on the CC list for the bug.=