This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 2/4] GDBServer: give more complete usage information

--attach/--multi are currently only mentioned on the usage info first lines,
the meaning of PROG is completely absent and COMM/PID text is unstructured.

The words and structure chosen may not be perfect but IMHO this is an improvement.

2015-03-20  Cleber Rosa  <>

	* server.c (gdbserver_usage): Reorganized the usage message.
 gdb/gdbserver/server.c | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c
index 618e457..9dec972 100644
--- a/gdb/gdbserver/server.c
+++ b/gdb/gdbserver/server.c
@@ -2997,10 +2997,18 @@ gdbserver_usage (FILE *stream)
 	   "\tgdbserver [OPTIONS] --attach COMM PID\n"
 	   "\tgdbserver [OPTIONS] --multi COMM\n"
-	   "COMM may either be a tty device (for serial debugging), or \n"
-	   "HOST:PORT to listen for a TCP connection.\n"
+	   "Start mode options:\n"
+	   "  --attach              Attach to a given process\n"
+	   "  --multi               Start server without a specific program, and\n"
+	   "                        only quit when explicitly commanded\n"
-	   "Options:\n"
+	   "    COMM                tty device (for serial debugging) or HOST:PORT\n"
+	   "                        to listen for a TCP connection\n"
+	   "    PROG                Path to program executable\n"
+	   "    PID                 Process ID to attach to\n"
+	   "    ARGS                Arguments to be passed to debugged program\n"
+	   "\n"
+	   "Other options:\n"
 	   "  --debug               Enable general debugging output.\n"
 	   "  --debug-format=opt1[,opt2,...]\n"
 	   "                        Specify extra content in debugging output.\n"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]