Clean up help/usage messages for kdp-remote / gdb-remote a little bit.
authorJason Molenda <jmolenda@apple.com>
Tue, 23 Oct 2012 03:05:16 +0000 (03:05 +0000)
committerJason Molenda <jmolenda@apple.com>
Tue, 23 Oct 2012 03:05:16 +0000 (03:05 +0000)
llvm-svn: 166464

lldb/source/Interpreter/CommandInterpreter.cpp

index 2bf1cc3..ed7e60d 100644 (file)
@@ -517,8 +517,8 @@ CommandInterpreter::LoadCommandDictionary ()
     std::auto_ptr<CommandObjectRegexCommand>
     connect_gdb_remote_cmd_ap(new CommandObjectRegexCommand (*this,
                                                       "gdb-remote",
-                                                      "Connect to a remote GDB server.",
-                                                      "gdb-remote [<host>:<port>]\ngdb-remote [<port>]", 2));
+                                                      "Connect to a remote GDB server.  If no hostname is provided, localhost is assumed.",
+                                                      "gdb-remote [<hostname>:]<portnum>", 2));
     if (connect_gdb_remote_cmd_ap.get())
     {
         if (connect_gdb_remote_cmd_ap->AddRegexCommand("^([^:]+:[[:digit:]]+)$", "process connect --plugin gdb-remote connect://%1") &&
@@ -532,8 +532,8 @@ CommandInterpreter::LoadCommandDictionary ()
     std::auto_ptr<CommandObjectRegexCommand>
     connect_kdp_remote_cmd_ap(new CommandObjectRegexCommand (*this,
                                                              "kdp-remote",
-                                                             "Connect to a remote KDP server.",
-                                                             "kdp-remote [<host>]\nkdp-remote [<host>:<port>]", 2));
+                                                             "Connect to a remote KDP server.  udp port 41139 is the default port number.",
+                                                             "kdp-remote <hostname>[:<portnum>]", 2));
     if (connect_kdp_remote_cmd_ap.get())
     {
         if (connect_kdp_remote_cmd_ap->AddRegexCommand("^([^:]+:[[:digit:]]+)$", "process connect --plugin kdp-remote udp://%1") &&