diff options
author | Daniel Jacobowitz <dan@debian.org> | 2002-05-16 02:33:04 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2002-05-16 02:33:04 +0000 |
commit | 1552c6d418c494e8fb884bd6e68ab13a466baec0 (patch) | |
tree | 49cf0219a294fef43a2535fe9cbfbf77002a5254 /gdb/gdbserver | |
parent | 4be4421ca7c8f97977eaec5f98e28b9c580cf34a (diff) | |
download | gdb-1552c6d418c494e8fb884bd6e68ab13a466baec0.tar.gz |
2002-05-15 Daniel Jacobowitz <drow@mvista.com>
From Martin Pool <mbp@samba.org>:
* gdbserver/server.c (gdbserver_usage): New function.
(main): Call it.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/server.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index ba85b59d2c8..a31547c9b39 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -75,6 +75,16 @@ handle_query (char *own_buf) static int attached; +static void +gdbserver_usage (void) +{ + error ("Usage:\tgdbserver COMM PROG [ARGS ...]\n" + "\tgdbserver COMM --attach PID\n" + "\n" + "COMM may either be a tty device (for serial debugging), or \n" + "HOST:PORT to listen for a TCP connection.\n"); +} + int main (int argc, char *argv[]) { @@ -110,8 +120,7 @@ main (int argc, char *argv[]) } if (argc < 3 || bad_attach) - error ("Usage:\tgdbserver tty prog [args ...]\n" - "\tgdbserver tty --attach pid"); + gdbserver_usage(); initialize_low (); |