diff options
Diffstat (limited to 'gdb/testsuite/lib/gdb.exp')
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index aea0ba5..55f6ab1 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -6191,6 +6191,13 @@ proc gdb_exit { } { # return 0 only if we cannot attach because it's unsupported. gdb_caching_proc can_spawn_for_attach_1 {} { + # For the benefit of gdb-caching-proc-consistency.exp, which + # calls can_spawn_for_attach_1 directly. Keep in sync with + # can_spawn_for_attach. + if { [is_remote target] || [target_info exists use_gdb_stub] } { + return 0 + } + # Assume yes. set res 1 |