diff options
author | Tom Tromey <tom@tromey.com> | 2024-10-03 16:25:05 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-12-12 20:18:23 -0700 |
commit | b5f91cd4dfbc1ef8e2ff7ce198d0f4357e20638c (patch) | |
tree | 29f6866ba137bff1bd5da754662e4215dd9e3498 /gdb/testsuite | |
parent | 9e69a2e127940cc577d4e0c6eefdfe33a31ea397 (diff) | |
download | binutils-b5f91cd4dfbc1ef8e2ff7ce198d0f4357e20638c.zip binutils-b5f91cd4dfbc1ef8e2ff7ce198d0f4357e20638c.tar.gz binutils-b5f91cd4dfbc1ef8e2ff7ce198d0f4357e20638c.tar.bz2 |
Replace uses of "title" style with "command"
Currently the "title" style is only used when printing command names.
The "title" name itself is probably a misnomer, but meanwhile this
patch changes the existing uses to instead use the new "command" style
for consistency.
The "title" style is not removed; see the next patch.
Reviewed-By: Keith Seitz <keiths@redhat.com>
Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/gdb.base/style.exp | 14 | ||||
-rw-r--r-- | gdb/testsuite/lib/gdb-utils.exp | 1 |
2 files changed, 8 insertions, 7 deletions
diff --git a/gdb/testsuite/gdb.base/style.exp b/gdb/testsuite/gdb.base/style.exp index d29b238..83e0fae 100644 --- a/gdb/testsuite/gdb.base/style.exp +++ b/gdb/testsuite/gdb.base/style.exp @@ -238,8 +238,8 @@ proc run_style_tests { } { "The ${address_style_expr} foreground color is: ${color}" \ "style name and style word styled using its own style in show style" - set aliases_expr [limited_style ".*aliases.*" title] - set breakpoints_expr [limited_style ".*breakpoints.*" title] + set aliases_expr [limited_style ".*aliases.*" command] + set breakpoints_expr [limited_style ".*breakpoints.*" command] gdb_test "help" \ [multi_line \ "List of classes of commands:" \ @@ -248,10 +248,10 @@ proc run_style_tests { } { "${breakpoints_expr} -- Making program stop at certain points\." \ ".*" \ ] \ - "help classes of commands styled with title" + "help classes of commands styled with command" - set taas_expr [limited_style ".*taas.*" title] - set tfaas_expr [limited_style ".*tfaas.*" title] + set taas_expr [limited_style ".*taas.*" command] + set tfaas_expr [limited_style ".*tfaas.*" command] set cut_for_thre_expr [limited_style "cut for 'thre" highlight] gdb_test "apropos -v cut for 'thre" \ [multi_line \ @@ -301,7 +301,7 @@ proc run_style_tests { } { gdb_test_no_output "maintenance deprecate p \"new_p\"" \ "maintenance deprecate p \"new_p\" /1/" gdb_test "p 5" \ - "Warning: '[limited_style p title]', an alias for the command '[limited_style print title]', is deprecated.*Use '[limited_style new_p title]'.*" \ + "Warning: '[limited_style p command]', an alias for the command '[limited_style print command]', is deprecated.*Use '[limited_style new_p command]'.*" \ "p deprecated warning, with replacement" # Check that the version string is styled in the output of 'show @@ -503,7 +503,7 @@ with_test_prefix "all styles enabled" { # Now, for each style in turn. Disable that style only and run the # test again. Things in that style should NOT now be styled. -foreach style { title file function highlight variable \ +foreach style { command title file function highlight variable \ address metadata } { set currently_disabled_style $style with_test_prefix "disable style $style" { diff --git a/gdb/testsuite/lib/gdb-utils.exp b/gdb/testsuite/lib/gdb-utils.exp index 33b56fb..34223e6 100644 --- a/gdb/testsuite/lib/gdb-utils.exp +++ b/gdb/testsuite/lib/gdb-utils.exp @@ -69,6 +69,7 @@ proc string_list_to_regexp { args } { proc style {str style} { switch -exact -- $style { title { set style 1 } + command { set style 1 } file { set style 32 } function { set style 33 } highlight { set style 31 } |