diff options
author | Mark Salter <msalter@sadr.localdomain> | 2001-03-15 21:46:57 +0000 |
---|---|---|
committer | Mark Salter <msalter@sadr.localdomain> | 2001-03-15 21:46:57 +0000 |
commit | f949823c68164da632da6ad50682735a970e8a18 (patch) | |
tree | 7598c6a083e4a36bd40750c32c8c4255a650fea2 /gdb/testsuite | |
parent | b1e51b3cd975651495575e89ab9eaa3db0e2d9c4 (diff) | |
download | gdb-f949823c68164da632da6ad50682735a970e8a18.zip gdb-f949823c68164da632da6ad50682735a970e8a18.tar.gz gdb-f949823c68164da632da6ad50682735a970e8a18.tar.bz2 |
(gdb_load): Add support for additional target_info: gdb_download_size
and gdb_load_timeout.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/config/monitor.exp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/gdb/testsuite/config/monitor.exp b/gdb/testsuite/config/monitor.exp index e48d0d9..c0fb464 100644 --- a/gdb/testsuite/config/monitor.exp +++ b/gdb/testsuite/config/monitor.exp @@ -140,6 +140,17 @@ proc gdb_load { arg } { global timeout global last_gdb_file; + if [target_info exists gdb_download_size] { + send_gdb "set download-write-size [target_info gdb_download_size]\n"; + gdb_expect 30 { + -re "$gdb_prompt $" { } + default { + perror "Setting download-write-size for target failed"; + return -1; + } + } + } + if { $arg == "" } { if [info exists last_gdb_file] { set arg $last_gdb_file; @@ -221,8 +232,14 @@ proc gdb_load { arg } { } else { set command "load $farg\n"; } + if [target_info exists gdb_load_timeout] { + set loadtimeout [target_info gdb_load_timeout] + } else { + set loadtimeout 1600 + } + send_gdb $command; - gdb_expect 1600 { + gdb_expect $loadtimeout { -re "\[Ff\]ailed.*$gdb_prompt $" { verbose "load failed"; } |