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-out.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-out.c')
-rw-r--r-- | gdb/cli-out.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/cli-out.c b/gdb/cli-out.c index e1005e1..691f993 100644 --- a/gdb/cli-out.c +++ b/gdb/cli-out.c @@ -176,6 +176,9 @@ cli_ui_out::do_field_string (int fldno, int width, ui_align align, case ui_out_style_kind::VARIABLE: fstyle = variable_name_style.style (); break; + case ui_out_style_kind::ADDRESS: + fstyle = address_style.style (); + break; default: gdb_assert_not_reached ("missing case"); } |