GNU Binutils with patches for OS216
Revision | 4bce40dca8e4fc700f468fa8d07be73910b4719d (tree) |
---|---|
Zeit | 2006-04-01 03:17:29 |
Autor | Daniel Jacobowitz <drow@fals...> |
Commiter | Daniel Jacobowitz |
Local changes to take full advantage of qPacketInfo
@@ -1516,7 +1516,10 @@ load_command (char *arg, int from_tty) | ||
1516 | 1516 | we don't want to run a subprocess. On the other hand, I'm not sure how |
1517 | 1517 | performance compares. */ |
1518 | 1518 | |
1519 | -static int download_write_size = 512; | |
1519 | +/* FIXME drow/2006-03-30: This used to be 512. The remote target will | |
1520 | + throttle it if it's too large; is there any use in having a small | |
1521 | + value here? */ | |
1522 | +static int download_write_size = 16384; | |
1520 | 1523 | static void |
1521 | 1524 | show_download_write_size (struct ui_file *file, int from_tty, |
1522 | 1525 | struct cmd_list_element *c, const char *value) |
@@ -1420,7 +1420,9 @@ target_read_whole (struct target_ops *ops, | ||
1420 | 1420 | enum target_object object, |
1421 | 1421 | const char *annex, gdb_byte **buf_p) |
1422 | 1422 | { |
1423 | - size_t buf_alloc = 512, buf_pos = 0; | |
1423 | + /* FIXME: Should we use the memory write size parameters for this | |
1424 | + too? Or something at another level entirely? */ | |
1425 | + size_t buf_alloc = 32768, buf_pos = 0; | |
1424 | 1426 | gdb_byte *buf = xmalloc (buf_alloc); |
1425 | 1427 | LONGEST n, total; |
1426 | 1428 |