+Wed Sep 23 18:08:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * remote.c (_initialize_remote, packet_command, print_packet):
+ Pretty print code.
+
Wed Sep 23 12:32:54 1998 <cagney@amy.cygnus.com>
* remote.c (packet_command): Test REMOTE_DESC to determine if
/* Display a null-terminated packet on stdout, for debugging, using C
string notation. */
+
static void
-print_packet (char *buf)
+print_packet (buf)
+ char *buf;
{
puts_filtered ("\"");
while (*buf)
printf_filtered ("matched.\n");
else
{
- printf_filtered ("MIS-MATCHED!\n");
- mismatched++;
+ printf_filtered ("MIS-MATCHED!\n");
+ mismatched++;
}
do_cleanups (old_chain);
}
if (mismatched > 0)
- warning ("One or more sections of the remote executable does not match\nthe loaded file\n");
+ warning ("One or more sections of the remote executable does not match\nthe loaded file\n");
if (args && !matched)
printf_filtered ("No loaded section named '%s'.\n", args);
}
packet_command (args, from_tty)
char *args;
int from_tty;
-
-
{
char buf[PBUFSIZ];
If GDB is talking to an inferior via the GDB serial protocol, then\n\
this command sends the string TEXT to the inferior, and displays the\n\
response packet. GDB supplies the initial `$' character, and the\n\
-terminating `#' character and checksum. This command was originally\n\
-provided for use by the gdb.emc test suite.",
+terminating `#' character and checksum.",
&maintenancelist);
add_show_from_set (add_set_cmd ("remotetimeout", no_class,
"Set the maximum number of bytes in each memory write packet.\n", &setlist),
&showlist);
}
-
-
-
-
-
-
-
-
-
-
-
-
-