aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib/gdb.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/lib/gdb.exp')
-rw-r--r--gdb/testsuite/lib/gdb.exp12
1 files changed, 9 insertions, 3 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 2e0a305..0065332 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -601,14 +601,14 @@ proc default_gdb_exit {} {
verbose "Quitting $GDB $GDBFLAGS"
- if [is_remote host] {
+ if { [is_remote host] && [board_info host exists fileid] } {
send_gdb "quit\n";
gdb_expect 10 {
- -re "and kill it.*y or n. " {
+ -re "and kill it.*y or n. " {
send_gdb "y\n";
exp_continue;
}
- timeout { }
+ default { }
}
}
@@ -949,6 +949,12 @@ proc default_gdb_init { args } {
set pf_prefix "[file tail [file dirname $file]]/[file tail $file]:";
}
+ global gdb_prompt;
+ if [target_info exists gdb_prompt] {
+ set gdb_prompt [target_info gdb_prompt];
+ } else {
+ set gdb_prompt "\\(gdb\\)"
+ }
}
proc gdb_init { args } {