diff options
author | Stan Shebs <shebs@apple.com> | 1999-04-26 18:34:20 +0000 |
---|---|---|
committer | Stan Shebs <shebs@apple.com> | 1999-04-26 18:34:20 +0000 |
commit | fe454715791b86ad488b33c1f325478803c8108c (patch) | |
tree | 91ec960676c78ffeab24ee2101fa128d2cc0f958 /gdb/remote-mips.c | |
parent | f3db0d6e5952e6aa06bdad615829b42d2cf52f71 (diff) | |
download | gdb-fe454715791b86ad488b33c1f325478803c8108c.tar.gz |
import gdb-19990422 snapshot
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r-- | gdb/remote-mips.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index c92f8b706c9..5e5a1c53cee 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -672,7 +672,6 @@ mips_readchar (timeout) static int state = 0; int mips_monitor_prompt_len = strlen (mips_monitor_prompt); -#ifdef MAINTENANCE_CMDS { int i; @@ -680,18 +679,17 @@ mips_readchar (timeout) if (i == -1 && watchdog > 0) i = watchdog; } -#endif if (state == mips_monitor_prompt_len) timeout = 1; ch = SERIAL_READCHAR (mips_desc, timeout); -#ifdef MAINTENANCE_CMDS + if (ch == SERIAL_TIMEOUT && timeout == -1) /* Watchdog went off */ { target_mourn_inferior (); error ("Watchdog has expired. Target detached.\n"); } -#endif + if (ch == SERIAL_EOF) mips_error ("End of file from remote"); if (ch == SERIAL_ERROR) @@ -1561,7 +1559,7 @@ device is attached to the target board (e.g., /dev/ttya).\n" optional local TFTP name. */ if ((argv = buildargv (name)) == NULL) nomem(0); - make_cleanup ((make_cleanup_func) freeargv, argv); + make_cleanup_freeargv (argv); serial_port_name = strsave (argv[0]); if (argv[1]) /* remote TFTP name specified? */ |