diff options
author | J.T. Conklin <jtc@acorntoolworks.com> | 2000-09-01 00:12:10 +0000 |
---|---|---|
committer | J.T. Conklin <jtc@acorntoolworks.com> | 2000-09-01 00:12:10 +0000 |
commit | 8edbea78dcc8fbea0c1fca717ad89316e63ca8b4 (patch) | |
tree | 431c24763f26e83c14729bd7772a14bfeedbfb01 /gdb/remote-mips.c | |
parent | 76b0a8c0edc4f38bf93bcd7c2d874cf55a0854a1 (diff) | |
download | gdb-8edbea78dcc8fbea0c1fca717ad89316e63ca8b4.zip gdb-8edbea78dcc8fbea0c1fca717ad89316e63ca8b4.tar.gz gdb-8edbea78dcc8fbea0c1fca717ad89316e63ca8b4.tar.bz2 |
* 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/remote-mips.c')
-rw-r--r-- | gdb/remote-mips.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index 4366fb8..e2faeac 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -551,7 +551,7 @@ mips_expect_timeout (const char *string, int timeout) fprintf_unfiltered (gdb_stdlog, "\", got \""); } - immediate_quit = 1; + immediate_quit++; while (1) { int c; @@ -575,7 +575,7 @@ mips_expect_timeout (const char *string, int timeout) { if (*p == '\0') { - immediate_quit = 0; + immediate_quit--; if (remote_debug) fprintf_unfiltered (gdb_stdlog, "\": OK\n"); return 1; @@ -609,7 +609,7 @@ mips_getstring (char *string, int n) char *p = string; int c; - immediate_quit = 1; + immediate_quit++; while (n > 0) { c = SERIAL_READCHAR (mips_desc, 2); @@ -618,6 +618,7 @@ mips_getstring (char *string, int n) { fprintf_unfiltered (gdb_stderr, "Failed to read %d characters from target (TIMEOUT)\n", n); + immediate_quit--; return 0; } @@ -625,6 +626,7 @@ mips_getstring (char *string, int n) n--; } + immediate_quit--; return 1; } |