From 35fb8261b95c07e548a0b03f60b6c2cebf83caf8 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 19 Oct 2018 16:22:35 -0600 Subject: Style addresses This changes gdb to style addresses. gdb/ChangeLog 2018-12-28 Tom Tromey * ui-out.h (enum class ui_out_style_kind)
: 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 * gdb.base/style.exp: Update test to check for address styling. --- gdb/ui-out.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/ui-out.c') 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 -- cgit v1.1