diff options
author | Bill Cox <bill@cygnus> | 1994-05-17 22:06:15 +0000 |
---|---|---|
committer | Bill Cox <bill@cygnus> | 1994-05-17 22:06:15 +0000 |
commit | 8f07e53768abf7f08527ae87079cbd6db95b14dd (patch) | |
tree | f36f5148ca3880ee1413f11e496be2926370cc4b /gdb/testsuite/config | |
parent | 858665b79900c1ec22ec4e897b251c3b05e98510 (diff) | |
download | gdb-8f07e53768abf7f08527ae87079cbd6db95b14dd.zip gdb-8f07e53768abf7f08527ae87079cbd6db95b14dd.tar.gz gdb-8f07e53768abf7f08527ae87079cbd6db95b14dd.tar.bz2 |
* config/mips-gdb.exp, config/udi-gdb.exp, config/vx-gdb.exp,
lib/gdb.exp: Replace error proc calls with perror.
Diffstat (limited to 'gdb/testsuite/config')
-rw-r--r-- | gdb/testsuite/config/mips-gdb.exp | 32 | ||||
-rw-r--r-- | gdb/testsuite/config/udi-gdb.exp | 8 | ||||
-rw-r--r-- | gdb/testsuite/config/vx-gdb.exp | 34 |
3 files changed, 37 insertions, 37 deletions
diff --git a/gdb/testsuite/config/mips-gdb.exp b/gdb/testsuite/config/mips-gdb.exp index 9531117..3fce30e 100644 --- a/gdb/testsuite/config/mips-gdb.exp +++ b/gdb/testsuite/config/mips-gdb.exp @@ -72,8 +72,8 @@ proc gdb_load { arg } { exp_continue } -re "Reading symbols from.*done..*$prompt $" { } - -re "$prompt $" { error "GDB couldn't read file" } - timeout { error "(timeout) read symbol file" ; return } + -re "$prompt $" { perror "GDB couldn't read file" } + timeout { perror "(timeout) read symbol file" ; return } } send "load $arg\n" if $verbose>1 then { @@ -90,12 +90,12 @@ proc gdb_load { arg } { } -re "$prompt $" { if $verbose>1 then { - error "GDB couldn't load." + perror "GDB couldn't load." } } timeout { if $verbose>1 then { - error "Timed out trying to load $arg." + perror "Timed out trying to load $arg." } } } @@ -138,7 +138,7 @@ proc gdb_start { } { expect { -i $shell_id -re "<IDT>$" { } timeout { - error "(timeout) board did not come up."; return -1 + perror "(timeout) board did not come up."; return -1 } } } @@ -146,7 +146,7 @@ proc gdb_start { } { send -i $shell_id "go 0xbfc00000\n" expect { -i $shell_id -re "<IDT>$" { } - timeout { error "(timeout) board did not come up."; return -1 } + timeout { perror "(timeout) board did not come up."; return -1 } } verbose "about to exit kermit" exit_remote_shell $shell_id @@ -165,8 +165,8 @@ proc gdb_start { } { send_user "$GDB initialized for cross mode\n\n" } } - -re "$prompt $" { error "GDB never initialized."; return -1 } - timeout { error "(timeout) GDB never initialized."; + -re "$prompt $" { perror "GDB never initialized."; return -1 } + timeout { perror "(timeout) GDB never initialized."; return -1 } } @@ -194,7 +194,7 @@ proc gdb_start { } { } } timeout { - error "Couldn't set MIPS target." + perror "Couldn't set MIPS target." set timeout 10 return -1 } @@ -203,13 +203,13 @@ proc gdb_start { } { } expect_after { - "<return>" { send "\n"; error "Window too small." } - -re "\(y or n\) " { send "n\n"; error "Got interactive prompt." } - buffer_full { error "internal buffer is full." } - eof { error "eof -- pty is hosed." } - timeout { error "timeout." } - "virtual memory exhausted" { error "virtual memory exhausted." } - "Undefined command" { error "send string probably wrong." } + "<return>" { send "\n"; perror "Window too small." } + -re "\(y or n\) " { send "n\n"; perror "Got interactive prompt." } + buffer_full { perror "internal buffer is full." } + eof { perror "eof -- pty is hosed." } + timeout { perror "timeout." } + "virtual memory exhausted" { perror "virtual memory exhausted." } + "Undefined command" { perror "send string probably wrong." } } proc gdb_exit { } { diff --git a/gdb/testsuite/config/udi-gdb.exp b/gdb/testsuite/config/udi-gdb.exp index 000be06..5d44efc 100644 --- a/gdb/testsuite/config/udi-gdb.exp +++ b/gdb/testsuite/config/udi-gdb.exp @@ -65,14 +65,14 @@ proc gdb_target_udi { } { warning "$expect_out(buffer)" } -re "TIP-ipc ERROR,.*failed:" { - error "$expect_out(buffer)" + perror "$expect_out(buffer)" } -re "A program is being debugged already. Kill it\? \(y or n\)" { send "y\n" exp_continue } timeout { - error "Couldn't set target for UDI." + perror "Couldn't set target for UDI." cleanup exit $exit_status } @@ -119,11 +119,11 @@ proc gdb_start { } { verbose "$GDB initialized for cross mode\n" } -re "$prompt $" { - error "GDB never initialized." + perror "GDB never initialized." return -1 } timeout { - error "(timeout) GDB never initialized." + perror "(timeout) GDB never initialized." return -1 } } diff --git a/gdb/testsuite/config/vx-gdb.exp b/gdb/testsuite/config/vx-gdb.exp index 1267a00..3f0ed22 100644 --- a/gdb/testsuite/config/vx-gdb.exp +++ b/gdb/testsuite/config/vx-gdb.exp @@ -54,7 +54,7 @@ proc gdb_load { arg } { set result 0 if [vxworks_ld $shell_id $arg]<0 then { - error "Couldn't load $arg" + perror "Couldn't load $arg" return -1 } @@ -78,7 +78,7 @@ proc gdb_start { } { # get a connection to the board set shell_id [ eval $connectmode "$targetname" ] if $shell_id<0 then { - error "Couldn't connect to $targetname." + perror "Couldn't connect to $targetname." return -1 } verbose "Spawn id for remote shell is $shell_id" @@ -94,11 +94,11 @@ proc gdb_start { } { verbose "\nVxWorks has closed the shell" } -i $shell_id eof { - error "(eof) never disconnected from VxWorks shell." + perror "(eof) never disconnected from VxWorks shell." return -1 } -i $shell_id timeout { - error "(timeout) never disconnected from VxWorks shell." + perror "(timeout) never disconnected from VxWorks shell." return -1 } } @@ -123,14 +123,14 @@ proc spawn_vxgdb { } { if {[which $GDB] != 0} then { spawn $GDB $GDBFLAGS } else { - error "$GDB does not exist." + perror "$GDB does not exist." exit 1 } } else { if {[which $GDB] != 0} then { spawn $GDB } else { - error "$GDB does not exist." + perror "$GDB does not exist." exit 1 } } @@ -139,11 +139,11 @@ proc spawn_vxgdb { } { verbose "$GDB initialized for cross mode to Vxworks\n" } -re "$prompt $" { - error "GDB never initialized." + perror "GDB never initialized." return -1 } timeout { - error "(timeout) GDB never initialized." + perror "(timeout) GDB never initialized." return -1 } } @@ -168,11 +168,11 @@ proc spawn_vxgdb { } { verbose "Set target to $targetname" 1 } -re "net_connect: RPC: Program not registered.*$" { - error "Couldn't set GDB to target $targetname." + perror "Couldn't set GDB to target $targetname." exit 1 } timeout { - error "Couldn't set target for vxworks." + perror "Couldn't set target for vxworks." set timeout 10 return -1 } @@ -189,13 +189,13 @@ proc gdb_exit { } { } #expect_after { -# "<return>" { send "\n"; error "Window too small." } -# -re "\(y or n\) " { send "n\n"; error "Got interactive prompt." } -# buffer_full { error "internal buffer is full." } -# eof { error "eof -- pty is hosed." } -# timeout { error "timeout." } -# "virtual memory exhausted" { error "virtual memory exhausted." } -# "Undefined command" { error "send string probably wrong." } +# "<return>" { send "\n"; perror "Window too small." } +# -re "\(y or n\) " { send "n\n"; perror "Got interactive prompt." } +# buffer_full { perror "internal buffer is full." } +# eof { perror "eof -- pty is hosed." } +# timeout { perror "timeout." } +# "virtual memory exhausted" { perror "virtual memory exhausted." } +# "Undefined command" { perror "send string probably wrong." } #} gdb_start |