char c;
unsigned char buf[200];
- immediate_quit = 1; /* Allow user to interrupt it */
+ immediate_quit++; /* Allow user to interrupt it */
/* Ack any packet which the remote side has already sent. */
SERIAL_WRITE (sds_desc, "{#*\r\n", 5);
buf[0] = 0;
sds_send (buf, 1);
- immediate_quit = 0;
+ immediate_quit--;
start_remote (); /* Initialize gdb process mechanisms */
return 1;
unpush_target (&sds_ops);
- sds_dcache = dcache_init (sds_read_bytes, sds_write_bytes);
+ if (!sds_dcache)
+ sds_dcache = dcache_init (sds_read_bytes, sds_write_bytes);
+ else
+ dcache_invd (sds_dcache);
sds_desc = SERIAL_OPEN (name);
if (!sds_desc)
{
unsigned char buf[PBUFSIZ];
- dcache_flush (sds_dcache);
+ dcache_invd (sds_dcache);
last_sent_signal = siggnal;
last_sent_step = step;