From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CEF733858D1E; Tue, 2 May 2023 09:20:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CEF733858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1683019249; bh=9caUlXJkJLizLfotKcYjulTlXuZ9wQWsW/okVFxB3JM=; h=From:To:Subject:Date:From; b=KQsLyovbq14lblW2Rb4tQITnU4xFFiUr8ybE46DAJzVc8n1U2LvYr2/bSd5zJvKAX htlhVGcLHveVxPZyRcnhpaKKhJFE5p0nUI9g2Vb1ddpLMW9oubYAZezj6bbdSHiHnG F+IOoeoPuzjK4qsSDr3o/wN/1VnYzl/wTkN1AfUU= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug cli/30411] New: [gdb/cli] CLI in ansi terminal has off-by-one width problem (info sources output) Date: Tue, 02 May 2023 09:20:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: cli 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D30411 Bug ID: 30411 Summary: [gdb/cli] CLI in ansi terminal has off-by-one width problem (info sources output) Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: cli Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- Consider a terminal with 70 columns. With TERM=3Dxterm we have for info sources: ... /data/vries/hello.c,=20 /usr/lib64/gcc/x86_64-suse-linux/7/include/stddef.h,=20 /usr/include/bits/types.h, /usr/include/bits/types/struct_FILE.h,=20 /usr/include/bits/types/FILE.h, /usr/include/stdio.h,=20 /usr/include/bits/sys_errlist.h,=20 /home/abuild/rpmbuild/BUILD/glibc-2.31/csu/../sysdeps/x86_64/start.S, /home/abuild/rpmbuild/BUILD/glibc-2.31/csu/init.c,=20 /home/abuild/rpmbuild/BUILD/glibc-2.31/csu/../sysdeps/x86_64/crti.S,=20 /home/abuild/rpmbuild/BUILD/glibc-2.31/csu/elf-init.c,=20 /home/abuild/rpmbuild/BUILD/glibc-2.31/csu/../sysdeps/x86_64/crtn.S ... With TERM=3Dansi, we have instead: ... /data/vries/hello.c,=20 /usr/lib64/gcc/x86_64-suse-linux/7/include/stddef.h,=20 /usr/include/bits/types.h, /usr/include/bits/types/struct_FILE.h,=20 /usr/include/bits/types/FILE.h, /usr/include/stdio.h,=20 /usr/include/bits/sys_errlist.h,=20 /home/abuild/rpmbuild/BUILD/glibc-2.31/csu/../sysdeps/x86_64/start.S, /home/abuild/rpmbuild/BUILD/glibc-2.31/csu/init.c,=20 /home/abuild/rpmbuild/BUILD/glibc-2.31/csu/../sysdeps/x86_64/crti.S, / home/abuild/rpmbuild/BUILD/glibc-2.31/csu/elf-init.c,=20 /home/abuild/rpmbuild/BUILD/glibc-2.31/csu/../sysdeps/x86_64/crtn.S ... Note the line break after "/". --=20 You are receiving this mail because: You are on the CC list for the bug.=