From: Jason Molenda Date: Thu, 15 Sep 1994 01:51:58 +0000 (+0000) Subject: Wed Sep 14 18:27:42 1994 Jason Molenda (crash@phydeaux.cygnus.com) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=791d4d7d48f5b3250c51e315572e2ae57d619d81;p=binutils-gdb.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c39acaa5b78..ae2d10d8df6 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 a553418cb7f..3b90553b5d6 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 ", 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");