[Lldb-commits] [lldb] [LLDB] Extract process arguments from core dump for Linux (PR #185338)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Wed Mar 25 04:02:38 PDT 2026
================
----------------
DavidSpickett wrote:
I see that below you're basically doing:
```
if there were some commands
print them
```
And at first I didn't realise that.
I think this would be clearer if you did something like:
```
std::string cmd;
GetCoreFileArgs().GetCommandString(cmd)
if (!cmd.empty()) {
<rest of work>
}
```
It's an extra indent but easier to comprehend because if we have nothing to print, we have no reason to check if it's truncated or not.
https://github.com/llvm/llvm-project/pull/185338
More information about the lldb-commits
mailing list