[Lldb-commits] [lldb] [lldb] Fix FindProcessImpl() for iOS simulators (PR #139174)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Wed Jun 18 10:53:00 PDT 2025


================
@@ -621,22 +623,25 @@ DataExtractor data(arg_data.GetBytes(), arg_data_size,
           }
 
           Environment &proc_env = process_info.GetEnvironment();
+          bool is_simulator = false;
           while ((cstr = data.GetCStr(&offset))) {
----------------
clayborg wrote:

Lets use llvm::StringRef here, you will see why below:
```
while (true) {
  llvm::StringRef env_var(data.GetCStr(&offset));
  if (env_var.empty())
    break;
```

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


More information about the lldb-commits mailing list