mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-02 19:46:09 +08:00
Style addresses
This changes gdb to style addresses. gdb/ChangeLog 2018-12-28 Tom Tromey <tom@tromey.com> * ui-out.h (enum class ui_out_style_kind) <ADDRESS>: New constant. * ui-out.c (ui_out::field_core_addr): Add styling. * stack.c (print_frame): Add styling. * printcmd.c (print_address): Add styling. (print_address_demangle, info_address_command): Likewise. * cli/cli-style.h (address_style): Declare. * cli/cli-style.c (address_style): New global. (_initialize_cli_style): Register new commands. * cli-out.c (cli_ui_out::do_field_string): Update. gdb/testsuite/ChangeLog 2018-12-28 Tom Tromey <tom@tromey.com> * gdb.base/style.exp: Update test to check for address styling.
This commit is contained in:
@ -66,6 +66,10 @@ cli_style_option variable_name_style (ui_file_style::CYAN);
|
||||
|
||||
/* See cli-style.h. */
|
||||
|
||||
cli_style_option address_style (ui_file_style::BLUE);
|
||||
|
||||
/* See cli-style.h. */
|
||||
|
||||
cli_style_option::cli_style_option (ui_file_style::basic_color fg)
|
||||
: m_foreground (cli_colors[fg - ui_file_style::NONE]),
|
||||
m_background (cli_colors[0]),
|
||||
@ -265,4 +269,11 @@ Variable name display styling\n\
|
||||
Configure variable name colors and display intensity"),
|
||||
&style_set_list,
|
||||
&style_show_list);
|
||||
address_style.add_setshow_commands ("address", no_class,
|
||||
"style address",
|
||||
_("\
|
||||
Address display styling\n\
|
||||
Configure address colors and display intensity"),
|
||||
&style_set_list,
|
||||
&style_show_list);
|
||||
}
|
||||
|
Reference in New Issue
Block a user