From Martin Pool <mbp@samba.org>:
* gdbserver/server.c (gdbserver_usage): New function.
(main): Call it.
+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
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[])
{
}
if (argc < 3 || bad_attach)
- error ("Usage:\tgdbserver tty prog [args ...]\n"
- "\tgdbserver tty --attach pid");
+ gdbserver_usage();
initialize_low ();