diff options
author | Tom Tromey <tom@tromey.com> | 2018-10-19 16:22:35 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-12-28 12:49:52 -0700 |
commit | 35fb8261b95c07e548a0b03f60b6c2cebf83caf8 (patch) | |
tree | bc743f84964d5cbb252578826288456108365bce /gdb/cli/cli-style.c | |
parent | 47fd17cdc14a0d295a2cbdc02eff144e3fb4e900 (diff) | |
download | gdb-35fb8261b95c07e548a0b03f60b6c2cebf83caf8.zip gdb-35fb8261b95c07e548a0b03f60b6c2cebf83caf8.tar.gz gdb-35fb8261b95c07e548a0b03f60b6c2cebf83caf8.tar.bz2 |
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.
Diffstat (limited to 'gdb/cli/cli-style.c')
-rw-r--r-- | gdb/cli/cli-style.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/cli/cli-style.c b/gdb/cli/cli-style.c index 929f18f..0d850b1 100644 --- a/gdb/cli/cli-style.c +++ b/gdb/cli/cli-style.c @@ -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); } |