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/stack.c | |
parent | Style the "Reading symbols" message (diff) | |
download | binutils-gdb-35fb8261b95c07e548a0b03f60b6c2cebf83caf8.tar.gz binutils-gdb-35fb8261b95c07e548a0b03f60b6c2cebf83caf8.tar.bz2 binutils-gdb-35fb8261b95c07e548a0b03f60b6c2cebf83caf8.zip |
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/stack.c')
-rw-r--r-- | gdb/stack.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/stack.c b/gdb/stack.c index 103b8c9531e..a139e9fa58e 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -1176,7 +1176,8 @@ print_frame (struct frame_info *frame, int print_level, if (pc_p) uiout->field_core_addr ("addr", gdbarch, pc); else - uiout->field_string ("addr", "<unavailable>"); + uiout->field_string ("addr", "<unavailable>", + ui_out_style_kind::ADDRESS); annotate_frame_address_end (); uiout->text (" in "); } |