aboutsummaryrefslogtreecommitdiff
path: root/gdb/ui-out.h
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.h
parent47fd17cdc14a0d295a2cbdc02eff144e3fb4e900 (diff)
downloadbinutils-35fb8261b95c07e548a0b03f60b6c2cebf83caf8.zip
binutils-35fb8261b95c07e548a0b03f60b6c2cebf83caf8.tar.gz
binutils-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.h')
-rw-r--r--gdb/ui-out.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/ui-out.h b/gdb/ui-out.h
index 93be9a9..96466d8 100644
--- a/gdb/ui-out.h
+++ b/gdb/ui-out.h
@@ -77,7 +77,9 @@ enum class ui_out_style_kind
/* Function name. */
FUNCTION,
/* Variable name. */
- VARIABLE
+ VARIABLE,
+ /* Address. */
+ ADDRESS
};
class ui_out