diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-08-08 15:48:08 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-08-08 15:48:08 +0000 |
commit | 3d00d119d389c59cf9223d0b74d1d0bce0d18511 (patch) | |
tree | bb3685061a34056c06e3e4c26182a73a22767b80 /gdb/testsuite/gdb.base | |
parent | 0d0999db2fc508c13cb6b9a7d4edef119d2c2d8d (diff) | |
download | gdb-3d00d119d389c59cf9223d0b74d1d0bce0d18511.zip gdb-3d00d119d389c59cf9223d0b74d1d0bce0d18511.tar.gz gdb-3d00d119d389c59cf9223d0b74d1d0bce0d18511.tar.bz2 |
gdb/
* symfile.c (download_write_size): Remove.
(show_download_write_size): Remove.
(load_section_callback): Don't use download_write_size.
(_initialize_symfile): Don't register download_write_size.
* NEWS: Mention 'download-write-size' removal.
gdb/doc/
* gdb.texinfo (Target Commands): Remove
'set download-write-size' and 'show download-write-size'.
gdb/testsuite/
* config/monitor.exp (gdb_load): Remove support for obsolete
download-write-size.
* gdb.base/remote.exp: Likewise. Update all callers of
gdb_timed_load.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r-- | gdb/testsuite/gdb.base/remote.exp | 34 |
1 files changed, 8 insertions, 26 deletions
diff --git a/gdb/testsuite/gdb.base/remote.exp b/gdb/testsuite/gdb.base/remote.exp index cf9e853..1c37017 100644 --- a/gdb/testsuite/gdb.base/remote.exp +++ b/gdb/testsuite/gdb.base/remote.exp @@ -46,17 +46,6 @@ if {$result != "" } then { # Part ONE: Check the down load commands # -gdb_test "show download-write-size" \ - "The write size used when downloading a program is 512." \ - "download limit default" - -gdb_test "set download-write-size" "Argument required.*" - -gdb_test "set download-write-size 0" "" -gdb_test "show download-write-size" \ - "The write size used when downloading a program is unlimited." \ - "set download limit - unlimited" - gdb_test "show remote memory-write-packet-size" \ "The memory-write-packet-size is 0. Packets are limited to \[0-9\]+ bytes." \ "write-packet default" @@ -79,21 +68,14 @@ gdb_test "show remote memory-write-packet-size" \ # Part TWO: Check the download behavour # -proc gdb_load_timed {executable downloadsize class writesize} { +proc gdb_load_timed {executable class writesize} { global test gdb_prompt - set test "timed download `[file tail $executable]' - $downloadsize, $class, $writesize" + set test "timed download `[file tail $executable]' - $class, $writesize" if {$writesize != ""} then { gdb_test "set remote memory-write-packet-size $writesize" \ "" "$test - set packet size" - } - - if {$downloadsize != ""} then { - gdb_test "set download-write-size $downloadsize" \ - "" "$test - set download size" - } - if {$downloadsize != ""} then { send_gdb "set remote memory-write-packet-size $class\n" gdb_expect 5 { -re ".*Change the packet size.*$" { @@ -127,18 +109,18 @@ proc gdb_load_timed {executable downloadsize class writesize} { pass $test } -gdb_load_timed $binfile {} "" {} +gdb_load_timed $binfile "" {} # Typically about 400-1 bytes can be downloaded -gdb_load_timed $binfile 0 "limit" 398 -gdb_load_timed $binfile 0 "limit" 400 +gdb_load_timed $binfile "limit" 398 +gdb_load_timed $binfile "limit" 400 # Absolute max is 16384 -gdb_load_timed $binfile 0 "fixed" 0 -gdb_load_timed $binfile 0 "fixed" 16385 +gdb_load_timed $binfile "fixed" 0 +gdb_load_timed $binfile "fixed" 16385 # fall back to the default -gdb_load_timed $binfile 0 "limit" 0 +gdb_load_timed $binfile "limit" 0 # Get size of data uploaded |