diff options
author | Tom Tromey <tom@tromey.com> | 2020-10-08 19:41:45 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-10-08 19:41:45 -0600 |
commit | b270168504d91292ec7089056ce32c68ad6c28a7 (patch) | |
tree | 636d9955d55eb696ce11f358a68764da88f884ab /gdb/testsuite/gdb.base | |
parent | b3d3944ee56d22337e30333ad1aa3864e38efa21 (diff) | |
download | gdb-b270168504d91292ec7089056ce32c68ad6c28a7.zip gdb-b270168504d91292ec7089056ce32c68ad6c28a7.tar.gz gdb-b270168504d91292ec7089056ce32c68ad6c28a7.tar.bz2 |
Style more output of "disassemble" command
I noticed a couple of spots where the "disassemble" could style its
output, but currently does not. This patch adds styling to the
function name at the start of the disassembly, and any addresses
printed there.
gdb/ChangeLog
2020-10-08 Tom Tromey <tom@tromey.com>
* cli/cli-cmds.c (print_disassembly): Style function name and
addresses. Add _() wrappers.
gdb/testsuite/ChangeLog
2020-10-08 Tom Tromey <tom@tromey.com>
* gdb.base/style.exp: Check that "main"'s name is styled.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r-- | gdb/testsuite/gdb.base/style.exp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/style.exp b/gdb/testsuite/gdb.base/style.exp index bfd2614..ef9f7c8 100644 --- a/gdb/testsuite/gdb.base/style.exp +++ b/gdb/testsuite/gdb.base/style.exp @@ -91,9 +91,12 @@ save_vars { env(TERM) } { "Defined at $base_file_expr:$macro_line\r\n#define SOME_MACRO 23" } + set main [style main function] set func [style some_called_function function] # Somewhere should see the call to the function. - gdb_test "disassemble main" "[style $hex address].*$func.*" + gdb_test "disassemble main" \ + [concat "Dump of assembler code for function $main:.*" \ + "[style $hex address].*$func.*"] set ifield [style int_field variable] set sfield [style string_field variable] |