summaryrefslogtreecommitdiff
path: root/gdb/ocd.c
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@redback.com>2000-09-01 00:12:10 +0000
committerJ.T. Conklin <jtc@redback.com>2000-09-01 00:12:10 +0000
commit444f17c3f69d4bd36a60dc0dfcb6b3bf8749ab7e (patch)
tree5f95e9b7881b83116f43d30ba956448bcc903962 /gdb/ocd.c
parent66e63d0fc43088fd63b5050040b82a723ce4a3a3 (diff)
downloadgdb-444f17c3f69d4bd36a60dc0dfcb6b3bf8749ab7e.tar.gz
* dcache.c (dcache_info): Output a cache line's state vector so it
lines up under the data vector. * dcache.c (dcache_read_line): New function. (dcache_peek_byte): Use it. (dcache_alloc): Return NULL if write of reclaimed cache line fails. (dcache_peek_byte, dcache_poke_byte): Return failure if dcache_alloc() returns a NULL data block pointer. (dcache_xfer_memory): Don't force writeback unless we were writing. * monitor.c (monitor_expect): Change places where immediate_quit is set to 1 or 0 to increments and decrements respectively. This allows such changes to nest properly. * ocd.c (ocd_start_remote): Likewise. * remote-adapt.c (expect): Likewise. * remote-array.c (expect): Likewise. * remote-eb.c (expect): Likewise. * remote-e7000.c (e7000_start_remote): Likewise. * remote-mips.c (mips_expect_timeout, mips_getstring): Likewise. * remote-nrom.c (expect): Likewise. * remote-os9k.c (expect): Likewise. * remote-sds.c (sds_start_remote): Likewise. * remote-st.c (expect): Likewise. * remote-utils.c (sr_expect): Likewise. * remote.c (remote_start_remote): Likewise. * tracepoint.c (read_actions): Likewise. * remote-mips.c (mips_getstring): Balance changes to immediate_quit.
Diffstat (limited to 'gdb/ocd.c')
-rw-r--r--gdb/ocd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ocd.c b/gdb/ocd.c
index 6dd601e5da1..eb809488024 100644
--- a/gdb/ocd.c
+++ b/gdb/ocd.c
@@ -181,7 +181,7 @@ ocd_start_remote (PTR dummy)
target_type = *(enum ocd_target_type *) dummy;
- immediate_quit = 1; /* Allow user to interrupt it */
+ immediate_quit++; /* Allow user to interrupt it */
SERIAL_SEND_BREAK (ocd_desc); /* Wake up the wiggler */
@@ -243,7 +243,7 @@ ocd_start_remote (PTR dummy)
ocd_error ("OCD_SET_CTL_FLAGS:", error_code);
#endif
- immediate_quit = 0;
+ immediate_quit--;
/* This is really the job of start_remote however, that makes an assumption
that the target is about to print out a status message of some sort. That