diff options
author | Tom de Vries <tdevries@suse.de> | 2024-06-10 10:43:10 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2024-06-10 10:43:10 +0200 |
commit | 3ee50921cb47f71c62b335cc36d1188e6b6ce1b3 (patch) | |
tree | acadbb95181401976c0255974d7530cd8151f6b9 /gdb/testsuite/gdb.fortran/array-slices.exp | |
parent | 1e3c814459d83247707f8c9840ac660726cfaae0 (diff) | |
download | gdb-3ee50921cb47f71c62b335cc36d1188e6b6ce1b3.zip gdb-3ee50921cb47f71c62b335cc36d1188e6b6ce1b3.tar.gz gdb-3ee50921cb47f71c62b335cc36d1188e6b6ce1b3.tar.bz2 |
[gdb/testsuite] Don't use set auto-solib-add off
In test-case gdb.mi/mi-var-child-f.exp, we have:
...
mi_gdb_test "-gdb-set auto-solib-add off" "\\^done"
mi_runto prog_array
mi_gdb_test "nosharedlibrary" ".*\\^done"
...
This was added to avoid a name clash between the array variable as defined in
gdb.mi/array.f90 and debug info in shared libraries, and used in other places
in the testsuite.
The same workaround is also used to ignore symbols from shared libraries when
excercising for instance a command that prints all symbols.
However, this approach can cause problems for targets like arm that require
symbol info for some libraries like ld.so and libc to fully function.
While absense of debug info for shared libraries should be handled gracefully
(which does need fixing, see PR31817), failure to do so should not result
in failures in unrelated test-cases.
Fix this by removing "set auto-solib-add off".
This ensures that we don't run into PR31817, while the presence of
nosharedlibrary still ensures that in the rest of the test-case we're not
bothered by shared library symbols.
Likewise in other test-cases.
Approved-by: Kevin Buettner <kevinb@redhat.com>
Tested on arm-linux.
Diffstat (limited to 'gdb/testsuite/gdb.fortran/array-slices.exp')
-rw-r--r-- | gdb/testsuite/gdb.fortran/array-slices.exp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.fortran/array-slices.exp b/gdb/testsuite/gdb.fortran/array-slices.exp index f292867..919a2c6 100644 --- a/gdb/testsuite/gdb.fortran/array-slices.exp +++ b/gdb/testsuite/gdb.fortran/array-slices.exp @@ -58,9 +58,6 @@ proc run_test { repack } { clean_restart ${binfile} - # Avoid shared lib symbols. - gdb_test_no_output "set auto-solib-add off" - if ![fortran_runto_main] { return -1 } |