Style URLs in GDB output

I noticed that GDB will display URLs in a few spots.  This changes
them to be styled.  Originally I thought I'd introduce a new "url"
style, but there aren't many places to use this, so I just reused
filename styling instead.  This patch also changes the debuginfod URL
list to be printed one URL per line.  I think this is probably a bit
easier to read.
This commit is contained in:
Tom Tromey 2022-03-09 17:26:37 -07:00
parent d7abb2c4bd
commit 8839e3f3b0
6 changed files with 40 additions and 15 deletions

View file

@ -404,8 +404,9 @@ internal_vproblem (struct internal_problem *problem,
gdb_puts (_("\nThis is a bug, please report it."), gdb_stderr);
if (REPORT_BUGS_TO[0])
gdb_printf (gdb_stderr, _(" For instructions, see:\n%s."),
REPORT_BUGS_TO);
gdb_printf (gdb_stderr, _(" For instructions, see:\n%ps."),
styled_string (file_name_style.style (),
REPORT_BUGS_TO));
gdb_puts ("\n\n", gdb_stderr);
if (problem->should_dump_core == internal_problem_ask)