diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-08-24 06:47:03 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-08-24 06:47:03 +0000 |
commit | b11d53baf8fcf9fbb7feba53361b6a2aac684116 (patch) | |
tree | 99106c2b2f1f28f285144407427b0b74bdbf1dc0 /gdb/remote-bug.c | |
parent | 2731625a564e7c5134aae47bb0a6dffa8f4b7896 (diff) | |
download | gdb-b11d53baf8fcf9fbb7feba53361b6a2aac684116.zip gdb-b11d53baf8fcf9fbb7feba53361b6a2aac684116.tar.gz gdb-b11d53baf8fcf9fbb7feba53361b6a2aac684116.tar.bz2 |
* target.c, target.h: Add "set remotedebug" command.
* remote-bug.c, remote.c, remote-mips.c: Remove "set remotedebug" and
"set m88ksnoop" options and use generic "set remotedebug" instead.
Diffstat (limited to 'gdb/remote-bug.c')
-rw-r--r-- | gdb/remote-bug.c | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/gdb/remote-bug.c b/gdb/remote-bug.c index 8e4db09..9cb0c39 100644 --- a/gdb/remote-bug.c +++ b/gdb/remote-bug.c @@ -65,11 +65,6 @@ static int bug_write_inferior_memory (); #endif /* not __STDC__ */ -/* To be silent, or to loudly echo all input and output to and from - the target. */ - -static int bug88k_snoop = 0; - /* This is the serial descriptor to our target. */ static serial_t desc = NULL; @@ -326,7 +321,7 @@ readchar () if (buf == SERIAL_TIMEOUT) error ("Timeout reading from remote system."); - if (bug88k_snoop) + if (remote_debug) printf ("%c", buf); return buf & 0x7f; @@ -340,7 +335,7 @@ readchar_nofail () buf = SERIAL_READCHAR (desc, timeout); if (buf == SERIAL_TIMEOUT) buf = 0; - if (bug88k_snoop) + if (remote_debug) if (buf) printf ("%c", buf); else @@ -358,7 +353,7 @@ pollchar() buf = SERIAL_READCHAR (desc, 0); if (buf == SERIAL_TIMEOUT) buf = 0; - if (bug88k_snoop) + if (remote_debug) if (buf) printf ("%c", buf); else @@ -888,7 +883,7 @@ bug_write (a, l) SERIAL_WRITE (desc, a, l); - if (bug88k_snoop) + if (remote_debug) for (i = 0; i < l; i++) { printf ("%c", a[i]); @@ -940,7 +935,7 @@ bug_srec_write_cr (s) if (srec_echo_pace) for (p = s; *p; ++p) { - if (bug88k_snoop) + if (remote_debug) printf ("%c", *p); do @@ -1194,7 +1189,7 @@ bug_write_inferior_memory (memaddr, myaddr, len) if (retries > 0) { - if (bug88k_snoop) + if (remote_debug) printf("\n<retrying...>\n"); /* This expect_prompt call is extremely important. Without @@ -1263,7 +1258,7 @@ bug_write_inferior_memory (memaddr, myaddr, len) if ((x = pollchar()) != 0) { - if (bug88k_snoop) + if (remote_debug) printf("\n<retrying...>\n"); ++retries; @@ -1640,14 +1635,5 @@ much slower, but generally more reliable.", &setlist), &showlist); - add_show_from_set - (add_set_cmd ("bug88k-snoop", class_support, var_boolean, - (char *) &bug88k_snoop, - "\ -Set echoing of what's going to and from the monitor.\n\ -When on, echo data going out on and coming back from the serial line.", - &setlist), - &showlist); - dev_name = NULL; } |