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/symfile.c | |
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/symfile.c')
-rw-r--r-- | gdb/symfile.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index 7dbbb7b..396be8f 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -1521,15 +1521,6 @@ load_command (char *arg, int from_tty) we don't want to run a subprocess. On the other hand, I'm not sure how performance compares. */ -static int download_write_size = 512; -static void -show_download_write_size (struct ui_file *file, int from_tty, - struct cmd_list_element *c, const char *value) -{ - fprintf_filtered (file, _("\ -The write size used when downloading a program is %s.\n"), - value); -} static int validate_download = 0; /* Callback service function for generic_load (bfd_map_over_sections). */ @@ -1570,11 +1561,6 @@ load_section_callback (bfd *abfd, asection *asec, void *data) const char *sect_name = bfd_get_section_name (abfd, asec); bfd_size_type sent; - if (download_write_size > 0 && size > download_write_size) - block_size = download_write_size; - else - block_size = size; - buffer = xmalloc (size); old_chain = make_cleanup (xfree, buffer); @@ -1591,8 +1577,6 @@ load_section_callback (bfd *abfd, asection *asec, void *data) int len; bfd_size_type this_transfer = size - sent; - if (this_transfer >= block_size) - this_transfer = block_size; len = target_write_memory_partial (lma, buffer, this_transfer, &err); if (err) @@ -3806,19 +3790,6 @@ Usage: set extension-language .foo bar"), add_info ("extensions", info_ext_lang_command, _("All filename extensions associated with a source language.")); - add_setshow_integer_cmd ("download-write-size", class_obscure, - &download_write_size, _("\ -Set the write size used when downloading a program."), _("\ -Show the write size used when downloading a program."), _("\ -Only used when downloading a program onto a remote\n\ -target. Specify zero, or a negative value, to disable\n\ -blocked writes. The actual size of each transfer is also\n\ -limited by the size of the target packet and the memory\n\ -cache."), - NULL, - show_download_write_size, - &setlist, &showlist); - debug_file_directory = xstrdup (DEBUGDIR); add_setshow_optional_filename_cmd ("debug-file-directory", class_support, &debug_file_directory, _("\ |