[Lldb-commits] [lldb] [lldb] Emit an error when using --wait-for without a name or pid (PR #142424)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 2 15:04:26 PDT 2025


================
@@ -280,6 +280,12 @@ SBError Driver::ProcessArgs(const opt::InputArgList &args, bool &exiting) {
   }
 
   if (args.hasArg(OPT_wait_for)) {
+    if (!args.hasArg(OPT_attach_name) || !args.hasArg(OPT_attach_pid)) {
----------------
JDevlieghere wrote:

According to our `--help` output and man page, we do. I didn't check the code (yet).

```
--wait-for
       Tells the debugger to wait for a process with the given pid or name to launch before attaching.
```

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


More information about the lldb-commits mailing list