# get a connection to the board
set shell_id [ eval $connectmode "$targetname" ]
if $shell_id<0 then {
- perror "Couldn't connect to $targetname."
+ perror "Couldn't connect to $targetname."
return -1
}
verbose "Spawn id for remote shell is $shell_id"
send -i $shell_id "\030"
set timeout 120
+ verbose "Timeout is now $timeout seconds" 2
expect {
-i $shell_id -re "Connection closed.*$" {
verbose "\nVxWorks has closed the shell"
}
-i $shell_id eof {
- perror "(eof) never disconnected from VxWorks shell."
+ perror "(eof) never disconnected from VxWorks shell."
return -1
}
-i $shell_id timeout {
- perror "(timeout) never disconnected from VxWorks shell."
+ perror "(timeout) never disconnected from VxWorks shell."
return -1
}
}
wait -i $shell_id
}
set timeout 10
+ verbose "Timeout is now $timeout seconds" 2
catch "spawn_vxgdb"
}
# set targets hostname
send "target vxworks $targetname\n"
set timeout 60
+ verbose "Timeout is now $timeout seconds" 2
expect {
-re "Done\..*$prompt $" {
verbose "Set target to $targetname" 1
timeout {
perror "Couldn't set target for vxworks."
set timeout 10
+ verbose "Timeout is now $timeout seconds" 2
return -1
}
}
set timeout 10
+ verbose "Timeout is now $timeout seconds" 2
}
proc gdb_exit { } {