[Lldb-commits] [lldb] update lldb-server platform help parsing (PR #162730)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 9 14:59:34 PDT 2025
================
@@ -371,107 +424,107 @@ int main_platform(int argc, char *argv[]) {
signal(SIGPIPE, SIG_IGN);
signal(SIGHUP, signal_handler);
#endif
- int long_option_index = 0;
+
+ // Special handling for 'help' as first argument
+ if (argc > 0 && strcmp(argv[0], "help") == 0) {
+ LLPlatformOptTable Opts;
+ display_usage(Opts, progname, subcommand);
+ return 0;
+ }
+
Status error;
std::string listen_host_port;
- int ch;
-
std::string log_file;
- StringRef
- log_channels; // e.g. "lldb process threads:gdb-remote default:linux all"
-
+ StringRef log_channels;
----------------
JDevlieghere wrote:
Can we unify the declaration and definition of these variables, i.e. move this down to line 473?
https://github.com/llvm/llvm-project/pull/162730
More information about the lldb-commits
mailing list