mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-25 16:57:52 +00:00
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 <eliz@gnu.org> Reviewed-by: Keith Seitz <keiths@redhat.com>
This commit is contained in:
@@ -126,6 +126,10 @@ cli_style_option disasm_comment_style ("comment", ui_file_style::WHITE,
|
||||
|
||||
/* See cli-style.h. */
|
||||
|
||||
cli_style_option line_number_style ("line-number", ui_file_style::DIM);
|
||||
|
||||
/* See cli-style.h. */
|
||||
|
||||
cli_style_option::cli_style_option (const char *name,
|
||||
ui_file_style::basic_color fg,
|
||||
ui_file_style::intensity intensity)
|
||||
@@ -529,6 +533,14 @@ then this style has no effect."),
|
||||
&style_disasm_show_list,
|
||||
false);
|
||||
|
||||
line_number_style.add_setshow_commands (no_class, _("\
|
||||
Line number display styling.\n\
|
||||
Configure colors and display intensity for line numbers\n\
|
||||
The \"line-number\" style is used when GDB displays line numbers\n\
|
||||
coming from your source code."),
|
||||
&style_set_list, &style_show_list,
|
||||
false);
|
||||
|
||||
/* Setup 'disassembler address' style and 'disassembler symbol' style,
|
||||
these are aliases for 'address' and 'function' styles respectively. */
|
||||
add_alias_cmd ("address", address_prefix_cmds.set, no_class, 0,
|
||||
|
||||
Reference in New Issue
Block a user