* remote.c (remote_write_bytes): Throttle packet alignment
for small packets.
+2006-10-15 Daniel Jacobowitz <dan@codesourcery.com>
+
+ PR remote/2158
+ * remote.c (remote_write_bytes): Throttle packet alignment
+ for small packets.
+
2006-10-16 Jeff Johnston <jjohnstn@redhat.com>
* linux-thread-db.c (thread_db_wait): Don't bother continuing if
payload_size);
/* If not all TODO bytes fit, then we'll need another packet. Make
- a second try to keep the end of the packet aligned. */
- if (nr_bytes < todo)
+ a second try to keep the end of the packet aligned. Don't do
+ this if the packet is tiny. */
+ if (nr_bytes < todo && nr_bytes > 2 * REMOTE_ALIGN_WRITES)
{
int new_nr_bytes;