diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/remote-hms.c | 15 |
2 files changed, 14 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c39acaa..ae2d10d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Wed Sep 14 18:27:42 1994 Jason Molenda (crash@phydeaux.cygnus.com) + + * remote-hms.c: use remote_debug instead of hms_silent toggle. + Add warnings about depreciation of `snoop' cmd. + Wed Sep 14 18:18:58 1994 Steve Chamberlain (sac@jonny.cygnus.com) * remote-hms.c (hms_read_inferior_memory): Cope when diff --git a/gdb/remote-hms.c b/gdb/remote-hms.c index a553418..3b90553 100644 --- a/gdb/remote-hms.c +++ b/gdb/remote-hms.c @@ -51,7 +51,7 @@ static void hms_drain (); static void add_commands (); static void remove_commands (); -static int quiet = 1; +static int quiet = 1; /* FIXME - can be removed after Dec '94 */ serial_t desc; @@ -275,7 +275,7 @@ readchar () error ("Serial port error!"); } - if (!quiet) + if (!quiet || remote_debug) printf_unfiltered ("%c", buf); return buf & 0x7f; @@ -299,7 +299,7 @@ readchar_nofail () buf = SERIAL_READCHAR (desc, timeout); if (buf == SERIAL_TIMEOUT) buf = 0; - if (!quiet) + if (!quiet || remote_debug) printf_unfiltered ("%c", buf); return buf & 0x7f; @@ -899,7 +899,7 @@ hms_write (a, l) SERIAL_WRITE (desc, a, l); - if (!quiet) + if (!quiet || remote_debug) { printf_unfiltered ("<"); for (i = 0; i < l; i++) @@ -1527,7 +1527,7 @@ by a serial line.", OPS_MAGIC, /* Always the last thing */ }; -hms_quiet () +hms_quiet () /* FIXME - this routine can be removed after Dec '94 */ { quiet = !quiet; if (quiet) @@ -1535,6 +1535,7 @@ hms_quiet () else printf_filtered ("Snoop enabled\n"); + printf_filtered("`snoop' is obsolete, please use `set remotedebug'.\n"); } hms_device (s) @@ -1615,8 +1616,10 @@ _initialize_remote_hms () add_com ("hms <command>", class_obscure, hms_com, "Send a command to the HMS monitor."); + + /* FIXME - hms_quiet and `snoop' can be removed after Dec '94 */ add_com ("snoop", class_obscure, hms_quiet, - "Show what commands are going to the monitor"); + "Show what commands are going to the monitor (OBSOLETE - see 'set remotedebug')"); add_com ("device", class_obscure, hms_device, "Set the terminal line for HMS communications"); |