[Lldb-commits] [lldb] [lldb] update lldb-server platform help parsing (PR #162730)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 23 07:40:51 PDT 2025


================
@@ -0,0 +1,39 @@
+RUN: %platformserver --help 2>&1 | FileCheck %s
+RUN: %platformserver -h 2>&1 | FileCheck %s
+RUN: %lldb-server p --help 2>&1 | FileCheck %s
+RUN: %lldb-server p -h 2>&1 | FileCheck %s
+RUN: %lldb-server platform --help 2>&1 | FileCheck %s
+RUN: %lldb-server platform -h 2>&1 | FileCheck %s
+
+CHECK: OVERVIEW: lldb-server platform
+CHECK: USAGE: lldb-server {{p|platform}} [options] --listen <{{\[}}host]:port> {{\[}}[--] program args...]
+
+CHECK: CONNECTION OPTIONS:
+CHECK: --gdbserver-port <port>
+CHECK-SAME: Short form: -P
+CHECK: --listen <{{[[]}}host]:port>
----------------
DavidSpickett wrote:

Could be this https://llvm.org/docs/CommandGuide/FileCheck.html#filecheck-string-substitution-blocks. Plus some loose parsing rules that cause it to see `[...[` somehow.

https://github.com/llvm/llvm-project/pull/162730


More information about the lldb-commits mailing list