aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base
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/testsuite/gdb.base
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/testsuite/gdb.base')
-rw-r--r--gdb/testsuite/gdb.base/style.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/style.exp b/gdb/testsuite/gdb.base/style.exp
index 8bababc..191130c 100644
--- a/gdb/testsuite/gdb.base/style.exp
+++ b/gdb/testsuite/gdb.base/style.exp
@@ -43,7 +43,7 @@ save_vars { env(TERM) } {
gdb_test "break main" "file $base_file_expr.*"
- gdb_test "print &main" " = .* <$main_expr>"
+ gdb_test "print &main" " = .* \033\\\[34m$hex\033\\\[m <$main_expr>"
gdb_exit
gdb_spawn