binutils-gdb/gdb/testsuite/gdb.mi
Tom de Vries 3ee50921cb [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.
2024-06-10 10:43:10 +02:00
..
array.f90
basics.c
ChangeLog-1999-2003
dw2-ref-missing-frame-func.c
dw2-ref-missing-frame-main.c
dw2-ref-missing-frame.exp
dw2-ref-missing-frame.S
gdb669.exp
gdb680.exp
gdb701.c
gdb701.exp
gdb792.cc
gdb792.exp
gdb2549.exp
interrupt-thread-group.c
interrupt-thread-group.exp
list-thread-groups-available.c
list-thread-groups-available.exp
list-thread-groups-no-inferior.exp
mi2-amd64-entry-value.c
mi2-amd64-entry-value.exp
mi2-amd64-entry-value.s
mi2-cli-display.c
mi2-cli-display.exp
mi2-prompt.exp
mi2-var-child.exp
mi-add-inferior.exp
mi-async-run.c
mi-async-run.exp
mi-async.exp [gdb/testsuite] Use save_vars to restore GDBFLAGS 2024-05-03 15:07:33 +02:00
mi-basics.exp
mi-break-qualified.cc
mi-break-qualified.exp
mi-break.exp
mi-breakpoint-changed.exp
mi-breakpoint-multiple-locations.cc
mi-breakpoint-multiple-locations.exp
mi-breakpoint-script.c
mi-breakpoint-script.exp
mi-catch-cpp-exceptions.cc
mi-catch-cpp-exceptions.exp
mi-catch-load-so.c
mi-catch-load.c
mi-catch-load.exp
mi-cli.exp
mi-cmd-error.exp
mi-cmd-param-changed.exp
mi-cmd-user-context.c
mi-cmd-user-context.exp
mi-complete.cc
mi-complete.exp
mi-condbreak-call-thr-state-mt.c
mi-condbreak-call-thr-state-st.c
mi-condbreak-call-thr-state.c
mi-condbreak-call-thr-state.exp
mi-condbreak-fail.c
mi-condbreak-fail.exp
mi-condbreak-throw.cc
mi-condbreak-throw.exp
mi-console.c
mi-console.exp
mi-corefile.c
mi-corefile.exp
mi-detach.exp
mi-disassemble.exp
mi-dprintf-pending.c
mi-dprintf-pending.exp
mi-dprintf-pendshr.c
mi-dprintf.c
mi-dprintf.exp
mi-editing.exp
mi-eval.exp
mi-exec-run.exp
mi-exit-code.c
mi-exit-code.exp
mi-file-transfer.exp
mi-file.exp
mi-fill-memory.exp
mi-fortran-modules-2.f90
mi-fortran-modules.exp [gdb/testsuite] Don't use set auto-solib-add off 2024-06-10 10:43:10 +02:00
mi-fortran-modules.f90
mi-frame-regs.exp
mi-fullname-deleted.exp
mi-hack-cli.exp
mi-i-cmd.exp
mi-info-os.exp
mi-info-sources-base.c
mi-info-sources.c
mi-info-sources.exp
mi-inheritance-syntax-error.cc
mi-inheritance-syntax-error.exp
mi-language.exp
mi-linespec-err-cp.cc
mi-linespec-err-cp.exp
mi-logging.exp
mi-memory-changed.exp
mi-multi-commands.exp
mi-nonstop-exit.exp
mi-nonstop.exp gdb_is_target_remote -> gdb_protocol_is_remote 2024-04-26 21:22:48 +01:00
mi-ns-stale-regcache.exp
mi-nsintrall.exp
mi-nsmoribund.exp
mi-nsthrexec.exp
mi-pending.c
mi-pending.exp
mi-pendshr2.c
mi-pendshr.c
mi-pthreads.exp
mi-py-modify-bp.c
mi-py-modify-bp.exp
mi-py-modify-bp.py
mi-read-memory.c
mi-read-memory.exp
mi-record-changed.exp
mi-reg-undefined.c
mi-reg-undefined.exp
mi-reg-undefined.S
mi-regs.exp
mi-return.exp
mi-reverse.exp
mi-simplerun.exp
mi-solib.exp
mi-stack.c
mi-stack.exp
mi-start.c
mi-start.exp
mi-stepi.exp
mi-stepn.c
mi-stepn.exp
mi-sym-info-1.c
mi-sym-info-2.c
mi-sym-info.exp
mi-syn-frame.c
mi-syn-frame.exp
mi-thread-bp-deleted.c
mi-thread-bp-deleted.exp
mi-thread-specific-bp.c
mi-thread-specific-bp.exp
mi-threads-interrupt.c
mi-threads-interrupt.exp
mi-undefined-cmd.exp
mi-until.exp
mi-var-block.exp
mi-var-child-f.exp [gdb/testsuite] Don't use set auto-solib-add off 2024-06-10 10:43:10 +02:00
mi-var-child.c
mi-var-child.exp
mi-var-cmd.exp
mi-var-cp.cc
mi-var-cp.exp
mi-var-create-rtti.c
mi-var-create-rtti.exp
mi-var-display.exp
mi-var-invalidate-shlib-lib.c
mi-var-invalidate-shlib.c
mi-var-invalidate-shlib.exp
mi-var-invalidate.exp
mi-var-list-children-invalid-grandchild.c
mi-var-list-children-invalid-grandchild.exp
mi-var-rtti.cc
mi-var-rtti.exp
mi-vla-c99.exp
mi-vla-fortran.exp
mi-watch-nonstop.exp
mi-watch.exp
new-ui-bp-deleted.c
new-ui-bp-deleted.exp
new-ui-mi-sync.c
new-ui-mi-sync.exp
non-stop-exit.c
non-stop.c
ns-stale-regcache.c
nsintrall.c
nsmoribund.c
nsthrexec.c
pending.c
pendshr1.c
pendshr2.c
pr11022.c
pr11022.exp
print-simple-values.cc
print-simple-values.exp
pthreads.c
run-with-two-mi-uis.c
run-with-two-mi-uis.exp
solib-lib.c
solib-main.c
testcmds
until.c
user-selected-context-sync.c
user-selected-context-sync.exp
var-cmd.c
vla.c
vla.f90
watch-nonstop.c