diff --git a/libstdc++-v3/testsuite/lib/gdb-test.exp b/libstdc++-v3/testsuite/lib/gdb-test.exp index af20c85e5a0..0ec9ac46c68 100644 --- a/libstdc++-v3/testsuite/lib/gdb-test.exp +++ b/libstdc++-v3/testsuite/lib/gdb-test.exp @@ -244,6 +244,8 @@ proc gdb-test { marker {selector {}} {load_xmethods 0} } { # Invoke gdb with a command and pattern-match the output. proc gdb_batch_check {command pattern} { + if { ![isnative] || [is_remote target] } { return 0 } + set gdb_name $::env(GUALITY_GDB_NAME) set cmd "$gdb_name -nw -nx -quiet -batch -ex \"$command\"" send_log "Spawning: $cmd\n"