mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 18:39:34 +08:00
Miscellaneous fixes for config/slite.exp.
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
Thu Jan 30 16:49:25 1997 Bob Manson <manson@charmed.cygnus.com>
|
Thu Jan 30 16:49:25 1997 Bob Manson <manson@charmed.cygnus.com>
|
||||||
|
|
||||||
|
* config/slite.exp: Miscellaneous fixes.
|
||||||
|
|
||||||
* lib/gdb.exp: Fix runto.
|
* lib/gdb.exp: Fix runto.
|
||||||
|
|
||||||
* gdb.base/signals.exp: Check for a gdb,nosignals feature of
|
* gdb.base/signals.exp: Check for a gdb,nosignals feature of
|
||||||
|
@ -141,23 +141,26 @@ proc gdb_load { arg } {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if [target_info exists gdb_serial] {
|
if [target_info exists gdb_serial] {
|
||||||
send_gdb "target remote [target_info gdb_serial]\n"
|
set serial [target_info gdb_serial];
|
||||||
set timeout 60
|
} else {
|
||||||
verbose "Timeout is now $timeout seconds" 2
|
set serial [target_info serial];
|
||||||
expect {
|
}
|
||||||
-i $gdb_spawn_id -re ".*Kill it?.*y or n.*" {
|
send_gdb "target remote $serial\n"
|
||||||
send_gdb "y\n";
|
set timeout 60
|
||||||
exp_continue
|
verbose "Timeout is now $timeout seconds" 2
|
||||||
}
|
expect {
|
||||||
-i $gdb_spawn_id -re ".*$prompt $" {
|
-i $gdb_spawn_id -re ".*Kill it?.*y or n.*" {
|
||||||
verbose "Set remote target to [target_info serial]" 2
|
send_gdb "y\n";
|
||||||
}
|
exp_continue
|
||||||
-i $gdb_spawn_id timeout {
|
}
|
||||||
perror "Couldn't set remote target."
|
-i $gdb_spawn_id -re ".*$prompt $" {
|
||||||
set timeout 10
|
verbose "Set remote target to [target_info serial]" 2
|
||||||
verbose "Timeout is now $timeout seconds" 2
|
}
|
||||||
return -1
|
-i $gdb_spawn_id timeout {
|
||||||
}
|
perror "Couldn't set remote target."
|
||||||
|
set timeout 10
|
||||||
|
verbose "Timeout is now $timeout seconds" 2
|
||||||
|
return -1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user