2002-05-15 Daniel Jacobowitz <drow@mvista.com>

From Martin Pool <mbp@samba.org>:
        * gdbserver/server.c (gdbserver_usage): New function.
        (main): Call it.
This commit is contained in:
Daniel Jacobowitz 2002-05-16 02:33:04 +00:00
parent abdb5c032d
commit 0bc68c4948
2 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2002-05-15 Daniel Jacobowitz <drow@mvista.com>
From Martin Pool <mbp@samba.org>:
* gdbserver/server.c (gdbserver_usage): New function.
(main): Call it.
2002-05-15 Jim Blandy <jimb@redhat.com>
Add macro structures to GDB's symbol tables. Nobody puts anything

View File

@ -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 ();