aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-03-27 23:11:41 +0200
committerTom de Vries <tdevries@suse.de>2023-03-27 23:11:41 +0200
commit7e28879b3d49bed826aa764ee56e61f6220cf2c5 (patch)
tree376b9df85283c957fe54c6526d9814d642dc92d0 /gdb
parent5b9e851408c1933ddb45390768421cd0b2918637 (diff)
downloadgdb-7e28879b3d49bed826aa764ee56e61f6220cf2c5.zip
gdb-7e28879b3d49bed826aa764ee56e61f6220cf2c5.tar.gz
gdb-7e28879b3d49bed826aa764ee56e61f6220cf2c5.tar.bz2
[gdb/testsuite] Fix gnat_runtime_has_debug_info for remote host
Fix gnat_runtime_has_debug_info for remote host by checking for allow_ada_tests. This fixes an error for test-case gdb.testsuite/gdb-caching-proc.exp and remote host. Tested on x86_64-linux.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/lib/ada.exp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/ada.exp b/gdb/testsuite/lib/ada.exp
index 02a5d1a..4395f31 100644
--- a/gdb/testsuite/lib/ada.exp
+++ b/gdb/testsuite/lib/ada.exp
@@ -167,6 +167,10 @@ proc gnatmake_version_at_least { major } {
# Return 1 if the GNAT runtime appears to have debug info.
gdb_caching_proc gnat_runtime_has_debug_info {} {
+ if { ![allow_ada_tests] } {
+ return 0
+ }
+
global srcdir
set src "$srcdir/lib/gnat_debug_info_test.adb"