+Thu Feb 23 21:07:25 1995 Stu Grossman (grossman@cygnus.com)
+
+ * monitor.c (monitor_load_ascii_srec): Add a one second sleep
+ after send LOAD_CMD to prevent loss of first S-record.
+
Tue Feb 21 20:48:42 1995 Per Bothner <bothner@kalessin.cygnus.com>
* valops.c (call_function_by_hand): Set using_gcc to 2 if gcc-2.
#if defined (LOG_FILE)
if (log_file) {
if (ferror(log_file))
- fprintf(stderr, "Error writing log file.\n");
+ printf_filtered ("Error writing log file.\n");
if (fclose(log_file) != 0)
- fprintf(stderr, "Error closing log file.\n");
+ printf_filtered ("Error closing log file.\n");
}
#endif
}
}
printf_monitor (LOAD_CMD); /* tell the monitor to load */
+ sleep (3);
if (protocol == XMODEM) { /* get the NAK from the target */
if (GETNAK) {
debuglogs (3, "Got the NAK to start loading");
} else { /* assume we got an ACK */
if (hashmark) {
putc_unfiltered ('#');
- fflush (gdb_stdout);
+ gdb_flush (gdb_stdout);
}
debuglogs (3, "Got an ACK, sending next packet");
break;
}
if (hashmark) {
putc_unfiltered ('#');
- fflush (gdb_stdout);
+ gdb_flush (gdb_stdout);
}
type = 3; /* switch to a 4 byte address record */
fflush (gdb_stdout);