diff options
author | Tom Tromey <tom@tromey.com> | 2025-01-05 15:20:50 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2025-01-07 17:17:56 -0700 |
commit | 0d70c008b7b1a996d5084175593ab46a5af33811 (patch) | |
tree | b288b54f5bb9e8e11942a5165849071a48e4e213 /gdb/testsuite | |
parent | 4e9fb2b0a5db150492a23a9ef04671c7c9eb4e33 (diff) | |
download | binutils-0d70c008b7b1a996d5084175593ab46a5af33811.zip binutils-0d70c008b7b1a996d5084175593ab46a5af33811.tar.gz binutils-0d70c008b7b1a996d5084175593ab46a5af33811.tar.bz2 |
Rename two maint commands
This renames two maint commands, removing a hyphen from
"check-symtabs" and "check-psymtabs"; that is, moving them under the
existing "maint check" prefix.
Regression tested on x86-64 Fedora 40.
Reviewed-By: Tom de Vries <tdevries@suse.de>
Approved-By: Andrew Burgess <aburgess@redhat.com>
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/gdb.ada/maint_with_ada.exp | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/check-psymtab.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/maint.exp | 10 |
3 files changed, 9 insertions, 9 deletions
diff --git a/gdb/testsuite/gdb.ada/maint_with_ada.exp b/gdb/testsuite/gdb.ada/maint_with_ada.exp index 89c8c01..063213d 100644 --- a/gdb/testsuite/gdb.ada/maint_with_ada.exp +++ b/gdb/testsuite/gdb.ada/maint_with_ada.exp @@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } clean_restart ${testfile} # Insert a breakpoint in each compilation unit, to force their psymtab's -# expansion to a full symtab. This will allow the check-psymtabs command +# expansion to a full symtab. This will allow the check psymtabs command # to perform a more extensive check regarding those units which are in # Ada. @@ -34,6 +34,6 @@ gdb_breakpoint "adainit" gdb_breakpoint "Var_Arr_Typedef" gdb_breakpoint "Do_Nothing" -gdb_test_no_output "maintenance check-psymtabs" +gdb_test_no_output "maintenance check psymtabs" -gdb_test_no_output "maintenance check-symtabs" +gdb_test_no_output "maintenance check symtabs" diff --git a/gdb/testsuite/gdb.base/check-psymtab.exp b/gdb/testsuite/gdb.base/check-psymtab.exp index 6ae211c..43e232c 100644 --- a/gdb/testsuite/gdb.base/check-psymtab.exp +++ b/gdb/testsuite/gdb.base/check-psymtab.exp @@ -23,4 +23,4 @@ gdb_test_no_output "maint expand-symtabs" # Check that we don't get: # Static symbol `foo' only found in check-psymtab.c psymtab -gdb_test_no_output "maint check-psymtab" +gdb_test_no_output "maint check psymtab" diff --git a/gdb/testsuite/gdb.base/maint.exp b/gdb/testsuite/gdb.base/maint.exp index 2c58ffa..9745076 100644 --- a/gdb/testsuite/gdb.base/maint.exp +++ b/gdb/testsuite/gdb.base/maint.exp @@ -20,8 +20,8 @@ # source file used is break.c -#maintenance check-psymtabs -- Check consistency of psymtabs vs symtabs -#maintenance check-symtabs -- Check consistency of symtabs +#maintenance check psymtabs -- Check consistency of psymtabs vs symtabs +#maintenance check symtabs -- Check consistency of symtabs #maintenance expand-symtabs -- Expand symtabs matching a file regexp #maintenance set -- Set GDB internal variables used by the GDB maintainer #maintenance show -- Show GDB internal variables used by the GDB maintainer @@ -156,8 +156,8 @@ set have_psyms [expr ! ( $have_gdb_index || $readnow_p )] # issues. set seen_command false -gdb_test_multiple "maint check-psymtabs" "" { - -re "^maint check-psymtabs\r\n" { +gdb_test_multiple "maint check psymtabs" "" { + -re "^maint check psymtabs\r\n" { set seen_command true exp_continue } @@ -174,7 +174,7 @@ gdb_test_multiple "maint check-psymtabs" "" { # This command does not produce any output unless there is some problem # with the symtabs, so that branch will really never be covered in the # tests here!! -gdb_test_no_output "maint check-symtabs" +gdb_test_no_output "maint check symtabs" # Test per-command stats. gdb_test_no_output "maint set per-command on" |