public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug cli/30411] New: [gdb/cli] CLI in ansi terminal has off-by-one width problem (info sources output)
@ 2023-05-02  9:20 vries at gcc dot gnu.org
  2023-05-05 10:20 ` [Bug cli/30411] " cvs-commit at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: vries at gcc dot gnu.org @ 2023-05-02  9:20 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30411

            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=xterm we have for info sources:
...
/data/vries/hello.c, 
/usr/lib64/gcc/x86_64-suse-linux/7/include/stddef.h, 
/usr/include/bits/types.h, /usr/include/bits/types/struct_FILE.h, 
/usr/include/bits/types/FILE.h, /usr/include/stdio.h, 
/usr/include/bits/sys_errlist.h, 
/home/abuild/rpmbuild/BUILD/glibc-2.31/csu/../sysdeps/x86_64/start.S,
/home/abuild/rpmbuild/BUILD/glibc-2.31/csu/init.c, 
/home/abuild/rpmbuild/BUILD/glibc-2.31/csu/../sysdeps/x86_64/crti.S, 
/home/abuild/rpmbuild/BUILD/glibc-2.31/csu/elf-init.c, 
/home/abuild/rpmbuild/BUILD/glibc-2.31/csu/../sysdeps/x86_64/crtn.S
...

With TERM=ansi, we have instead:
...
/data/vries/hello.c, 
/usr/lib64/gcc/x86_64-suse-linux/7/include/stddef.h, 
/usr/include/bits/types.h, /usr/include/bits/types/struct_FILE.h, 
/usr/include/bits/types/FILE.h, /usr/include/stdio.h, 
/usr/include/bits/sys_errlist.h, 
/home/abuild/rpmbuild/BUILD/glibc-2.31/csu/../sysdeps/x86_64/start.S,
/home/abuild/rpmbuild/BUILD/glibc-2.31/csu/init.c, 
/home/abuild/rpmbuild/BUILD/glibc-2.31/csu/../sysdeps/x86_64/crti.S, /
home/abuild/rpmbuild/BUILD/glibc-2.31/csu/elf-init.c, 
/home/abuild/rpmbuild/BUILD/glibc-2.31/csu/../sysdeps/x86_64/crtn.S
...

Note the line break after "/".

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-05-12  9:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-02  9:20 [Bug cli/30411] New: [gdb/cli] CLI in ansi terminal has off-by-one width problem (info sources output) vries at gcc dot gnu.org
2023-05-05 10:20 ` [Bug cli/30411] " cvs-commit at gcc dot gnu.org
2023-05-12  9:43 ` cvs-commit at gcc dot gnu.org
2023-05-12  9:46 ` vries at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).