aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1998-09-23 08:12:14 +0000
committerAndrew Cagney <cagney@redhat.com>1998-09-23 08:12:14 +0000
commitf8059b97e73e5735c61a470d81b560fddae6b1ca (patch)
tree2520ae65b27018a28b840e67b59aa7b07e226a5e /gdb/remote.c
parentabf80d3b9c718187a82fbe6dc83ac2f86ce03a7a (diff)
downloadgdb-f8059b97e73e5735c61a470d81b560fddae6b1ca.zip
gdb-f8059b97e73e5735c61a470d81b560fddae6b1ca.tar.gz
gdb-f8059b97e73e5735c61a470d81b560fddae6b1ca.tar.bz2
* remote.c (_initialize_remote, packet_command, print_packet): Pretty
* print code. Delete reference to EMC!
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c28
1 files changed, 7 insertions, 21 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 17e5507..e3ebaec 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -1455,8 +1455,10 @@ remote_send (buf)
/* 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)
@@ -2038,14 +2040,14 @@ compare_sections_command (args, from_tty)
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);
}
@@ -2054,8 +2056,6 @@ static void
packet_command (args, from_tty)
char *args;
int from_tty;
-
-
{
char buf[PBUFSIZ];
@@ -2142,8 +2142,7 @@ Argument is a single section name (default: all loaded sections).",
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,
@@ -2161,16 +2160,3 @@ provided for use by the gdb.emc test suite.",
"Set the maximum number of bytes in each memory write packet.\n", &setlist),
&showlist);
}
-
-
-
-
-
-
-
-
-
-
-
-
-