From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5C4113857C6C; Wed, 29 Jan 2025 09:12:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5C4113857C6C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1738141920; bh=saFaYqFsYBFnmnewgHi29lCSXYHneX6ozl0j9ntOsMs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=URXhhaeuNCfgXa+iCSCEgpaS/s271er2gwC1dhRvac+Y6zwo6N3YgSHWvyd+yECAr hwFBdwROFKcZNSKEj0nzTjURu/iAMyIe7bRryJGplmIpem983ChcuLF+ICSV5PBI/7 pva4Q6J+/ZnpfYvl3RgGPfgDXySiHU29IHCPY3OE= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug tui/32614] [gdb/tui] resize triggers source window to change contents Date: Wed, 29 Jan 2025 09:12:00 +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: 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=3D32614 --- Comment #2 from Tom de Vries --- (In reply to Tom de Vries from comment #1) > (In reply to Tom de Vries from comment #0) > > It's also a question, before the resize, why main.c is displayed on a s= ource > > window showing "[ No Source Available ]" for foo.c. >=20 > Using this patch: > ... > diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c > index a5d0c594545..5ddf0f73a34 100644 > --- a/gdb/tui/tui-winsource.c > +++ b/gdb/tui/tui-winsource.c > @@ -220,8 +220,11 @@ void > tui_source_window_base::do_erase_source_content (const char *str) > { > m_content.clear (); > + > if (handle !=3D nullptr) > center_string (str); > + > + set_title (""); > } >=20=20 > /* See tui-winsource.h. */ > ... > I get instead: > ... > =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =90 > =E2=94=82 =E2=94=82 > =E2=94=82 =E2=94=82 > =E2=94=82 =E2=94=82 > =E2=94=82 [ No Source Available ] =E2=94=82 > =E2=94=82 =E2=94=82 > =E2=94=82 =E2=94=82 > =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =98 > (src) In: foo L?? PC: 0x400566=20 > db.so.1". >=20 > Breakpoint 1, 0x0000000000400566 in foo () > (gdb)=20 > ... https://sourceware.org/pipermail/gdb-patches/2025-January/215029.html --=20 You are receiving this mail because: You are on the CC list for the bug.=