aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorRob Savoye <rob@cygnus>1993-03-07 23:11:56 +0000
committerRob Savoye <rob@cygnus>1993-03-07 23:11:56 +0000
commit05a291bb1ffc2ede7277db99a3f4b98b39b0c4d6 (patch)
tree56a122716bcf7e04b1532ad8cd9576351bff4d84 /gdb
parent946f014bf81d4ae2711eaafb401ec68aa9fd899f (diff)
downloadgdb-05a291bb1ffc2ede7277db99a3f4b98b39b0c4d6.zip
gdb-05a291bb1ffc2ede7277db99a3f4b98b39b0c4d6.tar.gz
gdb-05a291bb1ffc2ede7277db99a3f4b98b39b0c4d6.tar.bz2
Doesn't exit after internal errors.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/config/mips-gdb.exp10
-rw-r--r--gdb/testsuite/config/nind-gdb.exp4
-rw-r--r--gdb/testsuite/config/udi-gdb.exp6
-rw-r--r--gdb/testsuite/config/unix-gdb.exp15
-rw-r--r--gdb/testsuite/config/vx-gdb.exp14
5 files changed, 25 insertions, 24 deletions
diff --git a/gdb/testsuite/config/mips-gdb.exp b/gdb/testsuite/config/mips-gdb.exp
index 6282275..489f053 100644
--- a/gdb/testsuite/config/mips-gdb.exp
+++ b/gdb/testsuite/config/mips-gdb.exp
@@ -167,12 +167,12 @@ proc gdb_start { } {
send -i $shell_id "\CC"
expect -i $shell_id {
-re "<IDT>$" { }
- timeout { error "(timeout) board did not come up."; alldone }
+ timeout { error "(timeout) board did not come up."; return -1 }
}
send -i $shell_id "go 0xbfc00000"
expect -i $shell_id {
-re "<IDT>$" { }
- timeout { error "(timeout) board did not come up."; alldone }
+ timeout { error "(timeout) board did not come up."; return -1 }
}
exit_remote_shell $shell_id
}
@@ -190,9 +190,9 @@ proc gdb_start { } {
send_user "$GDB initialized for cross mode\n\n"
}
}
- -re "$prompt $" { error "GDB never initialized."; alldone }
+ -re "$prompt $" { error "GDB never initialized."; return -1 }
timeout { error "(timeout) GDB never initialized.";
- alldone }
+ return -1 }
}
# force the height to "unlimited", so no pagers get used
@@ -221,7 +221,7 @@ proc gdb_start { } {
timeout {
error "Couldn't set MIPS target."
set timeout 10
- alldone
+ return -1
}
}
set timeout 10
diff --git a/gdb/testsuite/config/nind-gdb.exp b/gdb/testsuite/config/nind-gdb.exp
index 8d2f157..c9c6b2c 100644
--- a/gdb/testsuite/config/nind-gdb.exp
+++ b/gdb/testsuite/config/nind-gdb.exp
@@ -49,7 +49,7 @@ proc gdb_load { arg } {
global GDB
set loadfile [file tail $arg]
set loadpath [file dirname $arg]
- send_user "Not implememted yet\n" ; alldone
+ send_user "Not implememted yet\n" ; return -1
}
#
@@ -93,7 +93,7 @@ proc gdb_start { } {
global prompt
global verbose
global targetname
- send_user "Not implememted yet\n" ; alldone
+ send_user "Not implememted yet\n" ; return -1
}
expect_after {
diff --git a/gdb/testsuite/config/udi-gdb.exp b/gdb/testsuite/config/udi-gdb.exp
index 644f4af..ab7eecd 100644
--- a/gdb/testsuite/config/udi-gdb.exp
+++ b/gdb/testsuite/config/udi-gdb.exp
@@ -145,9 +145,9 @@ proc gdb_start { } {
send_user "$GDB initialized for cross mode\n\n"
}
}
- -re "$prompt $" { error "GDB never initialized."; alldone }
+ -re "$prompt $" { error "GDB never initialized."; return -1 }
timeout { error "(timeout) GDB never initialized.";
- alldone }
+ return -1 }
}
# force the height to "unlimited", so no pagers get used
@@ -178,7 +178,7 @@ proc gdb_start { } {
timeout {
error "Couldn't set target for vxworks."
set timeout 10
- alldone
+ return -1
}
}
set timeout 10
diff --git a/gdb/testsuite/config/unix-gdb.exp b/gdb/testsuite/config/unix-gdb.exp
index e59c97b..6ffd41d 100644
--- a/gdb/testsuite/config/unix-gdb.exp
+++ b/gdb/testsuite/config/unix-gdb.exp
@@ -71,13 +71,14 @@ proc gdb_unload {} {
-re "$prompt $" {}
timeout {
error "Couldn't unload file in $GDB (timed out)."
- alldone
+ return -1
}
}
}
#
# gdb_load -- load a file into the debugger.
+# return a -1 if anything goes wrong.
#
proc gdb_load { arg } {
global verbose
@@ -114,13 +115,13 @@ proc gdb_load { arg } {
send_user "\t\tLoaded $arg with new symbol table into $GDB\n"
}
}
- timeout { error "(timeout) Couldn't load $arg, other program already loaded."; alldone }
+ timeout { error "(timeout) Couldn't load $arg, other program already loaded."; return -1 }
}
}
-re ".*No such file or directory.*$prompt $"\
- { error "($arg) No such file or directory\n"; alldone }
- -re "$prompt $" { error "couldn't load $arg into $GDB."; alldone }
- timeout { error "couldn't load $arg into $GDB (timed out)."; alldone }
+ { error "($arg) No such file or directory\n"; return -1 }
+ -re "$prompt $" { error "couldn't load $arg into $GDB."; return -1 }
+ timeout { error "couldn't load $arg into $GDB (timed out)."; return -1 }
}
}
@@ -190,8 +191,8 @@ proc gdb_start {} {
-re ".*$prompt $" { if $verbose>1 then {
send_user "GDB initialized for native mode\n" }
}
- -re "$prompt $" { error "GDB never initialized."; alldone }
- timeout { error "(timeout) GDB never initialized."; alldone }
+ -re "$prompt $" { error "GDB never initialized."; return -1 }
+ timeout { error "(timeout) GDB never initialized."; return -1 }
}
set timeout $oldtimeout
# force the height to "unlimited", so no pagers get used
diff --git a/gdb/testsuite/config/vx-gdb.exp b/gdb/testsuite/config/vx-gdb.exp
index 9e88ef0..5d836a0 100644
--- a/gdb/testsuite/config/vx-gdb.exp
+++ b/gdb/testsuite/config/vx-gdb.exp
@@ -179,8 +179,8 @@ proc gdb_start { } {
send_user "\nVxWorks has closed the shell\n"
}
}
- eof { error "(eof) never disconnected from VxWorks shell."; alldone }
- timeout { error "(timeout) never disconnected from VxWorks shell."; alldone }
+ eof { error "(eof) never disconnected from VxWorks shell."; return -1 }
+ timeout { error "(timeout) never disconnected from VxWorks shell."; return -1 }
}
close -i $shell_id
@@ -202,7 +202,7 @@ proc gdb_start { } {
# send_user "\nVxWorks set host=$vx_host, uid=$vx_uid, gid=$vx_gid\n"
# }
# }
- # timeout { error "couldn't set host=$vx_host, uid=$vx_uid, gid=$vx_gid\n"; alldone }
+ # timeout { error "couldn't set host=$vx_host, uid=$vx_uid, gid=$vx_gid\n"; return -1 }
#}
#send -i $shell_id cd \"$base_dir\"\n
@@ -212,7 +212,7 @@ proc gdb_start { } {
# send_user "VxWorks changed directory to $base_dir\n"
# }
# }
- # timeout { error "couldn't load $arg into $bin."; alldone }
+ # timeout { error "couldn't load $arg into $bin."; return -1 }
#}
spawn_vxgdb
@@ -238,9 +238,9 @@ proc spawn_vxgdb { } {
send_user "$GDB initialized for cross mode to Vxworks\n\n"
}
}
- -re "$prompt $" { error "GDB never initialized."; alldone }
+ -re "$prompt $" { error "GDB never initialized."; return -1 }
timeout { error "(timeout) GDB never initialized.";
- alldone }
+ return -1 }
}
# force the height to "unlimited", so no pagers get used
@@ -273,7 +273,7 @@ proc spawn_vxgdb { } {
timeout {
error "Couldn't set target for vxworks."
set timeout 10
- alldone
+ return -1
}
}
set timeout 10