From 887ae0cf2be5cb10d68b14f16df8faf666f4e43b Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 14 Sep 2024 15:07:17 -0600 Subject: Add line-number styling This patch adds separate styling for line numbers. That is, whenever gdb prints a source line number, it uses this style. v2 includes a change to ensure that %ps works in query. Reviewed-By: Eli Zaretskii Reviewed-by: Keith Seitz --- gdb/cli-out.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gdb/cli-out.c') diff --git a/gdb/cli-out.c b/gdb/cli-out.c index 1c303f0..d8a542d 100644 --- a/gdb/cli-out.c +++ b/gdb/cli-out.c @@ -94,13 +94,14 @@ cli_ui_out::do_end (ui_out_type type) void cli_ui_out::do_field_signed (int fldno, int width, ui_align alignment, - const char *fldname, LONGEST value) + const char *fldname, LONGEST value, + const ui_file_style &style) { if (m_suppress_output) return; do_field_string (fldno, width, alignment, fldname, plongest (value), - ui_file_style ()); + style); } /* output an unsigned field */ -- cgit v1.1