From: Daniel Jacobowitz Date: Thu, 16 May 2002 02:33:04 +0000 (+0000) Subject: 2002-05-15 Daniel Jacobowitz X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0bc68c494873cdf0f93ecd47a5b9cd7067cf0f8b;p=binutils-gdb.git 2002-05-15 Daniel Jacobowitz From Martin Pool : * gdbserver/server.c (gdbserver_usage): New function. (main): Call it. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 106373cfd03..4617bd4f782 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-05-15 Daniel Jacobowitz + + From Martin Pool : + * gdbserver/server.c (gdbserver_usage): New function. + (main): Call it. + 2002-05-15 Jim Blandy Add macro structures to GDB's symbol tables. Nobody puts anything 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 ();