From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A645A3864C56; Thu, 23 May 2024 06:57:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A645A3864C56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1716447425; bh=C3tjXz6Oopx+B/4ZsTBGcSm5+WqJHWvWS8YqDcslf7Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=l+MfsG0TRr9twp8bVBV2YzW4lU3kNUt7kPiXFDh0NlzW1kS7jTbptckqIecvYr9Sh FSvk4/VkiuRraThwfy3ZDrPTnRYLvX8IrWfeiBkh9KNuORK9y+0q5WgSY/5l4ls15+ O7DJRguEqrre9YGC+lZgriJFpSEmR9lzyUWLBMmk= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug tui/31301] TUI layout reset with file command Date: Thu, 23 May 2024 06:57:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: tui X-Bugzilla-Version: 14.1 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: cc 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=3D31301 Tom de Vries changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vries at gcc dot gnu.org --- Comment #1 from Tom de Vries --- This demonstrator patch fixes it: ... diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c index 70874e5460a..cb5486cfe34 100644 --- a/gdb/tui/tui-hooks.c +++ b/gdb/tui/tui-hooks.c @@ -137,7 +137,7 @@ tui_refresh_frame_and_register_information () else { /* Make sure that the source window is displayed. */ - tui_add_win_to_layout (SRC_WIN); + //tui_add_win_to_layout (SRC_WIN); struct symtab_and_line sal =3D get_current_source_symtab_and_line (); tui_update_source_windows_with_line (sal); ... but that regresses: ... FAIL: gdb.tui/list.exp: list -q main FAIL: gdb.tui/list.exp: source is still visible ... --=20 You are receiving this mail because: You are on the CC list for the bug.=