From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A9F8C3858C50; Mon, 4 Mar 2024 09:31:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A9F8C3858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1709544700; bh=au3COG/bIVV0nVYJ3ptItHEBY2vO7cnJU+T60wnQ0Ms=; h=From:To:Subject:Date:In-Reply-To:References:From; b=H9pL0oPfwYIUly6tWgFt3NCn5n4D1FN+H2jNUY+v17SwR3GHMwS3K7w70HC5ZjHu6 zzMJKXLRHc5V+Qvo8J/hachSfd1wmxMrpXedU7ILlw6SgRG4gVgGrHno80lvuxcyT5 lCg6qexuMlEsC2sDpy0mYFD637kCvJCckp3UzRB0= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/31440] [gdb] FAIL: gdb.python/py-progspace-events.exp: inferior 1 (timeout) Date: Mon, 04 Mar 2024 09:31:40 +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=3D31440 --- Comment #4 from Tom de Vries --- I wondered about using print in the python script, and tried this patch, but that doesn't fix it either: ... diff --git a/gdb/testsuite/gdb.python/py-progspace-events.py b/gdb/testsuite/gdb.python/py-progspace-events.py index 23c6fc52f4d..6f41888b65b 100644 --- a/gdb/testsuite/gdb.python/py-progspace-events.py +++ b/gdb/testsuite/gdb.python/py-progspace-events.py @@ -21,11 +21,13 @@ import gdb.events def new_progspace(event): - print("NewProgspaceEvent: %s" % str(event.progspace)) + gdb.write("NewProgspaceEvent: %s\n" % str(event.progspace)) + gdb.flush() def free_progspace(event): - print("FreeProgspaceEvent: %s" % str(event.progspace)) + gdb.write("FreeProgspaceEvent: %s\n" % str(event.progspace)) + gdb.flush() gdb.events.new_progspace.connect(new_progspace) ... --=20 You are receiving this mail because: You are on the CC list for the bug.=