public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [gdb/testsuite] Fix gnat_runtime_has_debug_info for remote host
@ 2023-03-27 21:11 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2023-03-27 21:11 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7e28879b3d49bed826aa764ee56e61f6220cf2c5

commit 7e28879b3d49bed826aa764ee56e61f6220cf2c5
Author: Tom de Vries <tdevries@suse.de>
Date:   Mon Mar 27 23:11:41 2023 +0200

    [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.

Diff:
---
 gdb/testsuite/lib/ada.exp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gdb/testsuite/lib/ada.exp b/gdb/testsuite/lib/ada.exp
index 02a5d1ad271..4395f31ad94 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"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-27 21:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-27 21:11 [binutils-gdb] [gdb/testsuite] Fix gnat_runtime_has_debug_info for remote host Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).