aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-01-26 16:16:48 +0000
committerPedro Alves <palves@redhat.com>2009-01-26 16:16:48 +0000
commit62709adfbe2476eaada1b889fbea2f59e21d46cd (patch)
treed4d4fa60460c94b7a1ee23c9758152d42a079bb6 /gdb/gdbserver
parent2c2ce03fbdd1cfa56210d39289357472fcf8b07b (diff)
downloadgdb-62709adfbe2476eaada1b889fbea2f59e21d46cd.zip
gdb-62709adfbe2476eaada1b889fbea2f59e21d46cd.tar.gz
gdb-62709adfbe2476eaada1b889fbea2f59e21d46cd.tar.bz2
gdb/gdbserver/
* server.c (gdbserver_usage): Mention --remote-debug. (main): Accept '--remote-debug' switch. gdb/doc/ * gdb.texinfo (Using the `gdbserver' Program): Document --remote-debug.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/server.c9
2 files changed, 11 insertions, 3 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 530a2f1..3fda37e 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,8 @@
+2009-01-26 Pedro Alves <pedro@codesourcery.com>
+
+ * server.c (gdbserver_usage): Mention --remote-debug.
+ (main): Accept '--remote-debug' switch.
+
2009-01-18 Doug Evans <dje@google.com>
* regcache.c (new_register_cache): No need to check result of xcalloc.
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c
index 2e97c92..c4e1672 100644
--- a/gdb/gdbserver/server.c
+++ b/gdb/gdbserver/server.c
@@ -1299,9 +1299,10 @@ gdbserver_usage (FILE *stream)
"HOST:PORT to listen for a TCP connection.\n"
"\n"
"Options:\n"
- " --debug\t\tEnable debugging output.\n"
- " --version\t\tDisplay version information and exit.\n"
- " --wrapper WRAPPER --\tRun WRAPPER to start new programs.\n");
+ " --debug Enable general debugging output.\n"
+ " --remote-debug Enable remote protocol debugging output.\n"
+ " --version Display version information and exit.\n"
+ " --wrapper WRAPPER -- Run WRAPPER to start new programs.\n");
if (REPORT_BUGS_TO[0] && stream == stdout)
fprintf (stream, "Report bugs to \"%s\".\n", REPORT_BUGS_TO);
}
@@ -1378,6 +1379,8 @@ main (int argc, char *argv[])
}
else if (strcmp (*next_arg, "--debug") == 0)
debug_threads = 1;
+ else if (strcmp (*next_arg, "--remote-debug") == 0)
+ remote_debug = 1;
else if (strcmp (*next_arg, "--disable-packet") == 0)
{
gdbserver_show_disableable (stdout);