aboutsummaryrefslogtreecommitdiff
path: root/gdb/ui-out.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-10-19 16:22:35 -0600
committerTom Tromey <tom@tromey.com>2018-12-28 12:49:52 -0700
commit35fb8261b95c07e548a0b03f60b6c2cebf83caf8 (patch)
treebc743f84964d5cbb252578826288456108365bce /gdb/ui-out.c
parent47fd17cdc14a0d295a2cbdc02eff144e3fb4e900 (diff)
downloadgdb-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/ui-out.c')
-rw-r--r--gdb/ui-out.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ui-out.c b/gdb/ui-out.c
index 761d6c0..49f04dd 100644
--- a/gdb/ui-out.c
+++ b/gdb/ui-out.c
@@ -469,7 +469,8 @@ void
ui_out::field_core_addr (const char *fldname, struct gdbarch *gdbarch,
CORE_ADDR address)
{
- field_string (fldname, print_core_address (gdbarch, address));
+ field_string (fldname, print_core_address (gdbarch, address),
+ ui_out_style_kind::ADDRESS);
}
void