From 444f17c3f69d4bd36a60dc0dfcb6b3bf8749ab7e Mon Sep 17 00:00:00 2001 From: "J.T. Conklin" Date: Fri, 1 Sep 2000 00:12:10 +0000 Subject: * 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. --- gdb/monitor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/monitor.c') diff --git a/gdb/monitor.c b/gdb/monitor.c index ca7dd301529..c5d6da69ae0 100644 --- a/gdb/monitor.c +++ b/gdb/monitor.c @@ -521,7 +521,7 @@ monitor_expect (char *string, char *buf, int buflen) fprintf_unfiltered (gdb_stdlog, "MON Expecting '%s'\n", safe_string); } - immediate_quit = 1; + immediate_quit++; while (1) { if (buf) @@ -529,7 +529,7 @@ monitor_expect (char *string, char *buf, int buflen) if (buflen < 2) { *buf = '\000'; - immediate_quit = 0; + immediate_quit--; return -1; } @@ -549,7 +549,7 @@ monitor_expect (char *string, char *buf, int buflen) p++; if (*p == '\0') { - immediate_quit = 0; + immediate_quit--; if (buf) { -- cgit v1.2.1