[Lldb-commits] [lldb] [lldb] Fix `ObjectFileMachO` object format when missing version load commands (PR #144177)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 17 09:48:04 PDT 2025


clayborg wrote:

One idea is to add a new string method on the llvm::Triple class:
```
  const std::string strNoObjectFormat() const;
```
And this would check if the object format is in the string in `llvm::Triple::Data` and if so strip it and return it, else return the `llvm::Triple::Data` as is. Then we switch LLDB to use the `llvm::Triple::strNoObjectFormat()` function everywhere.


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


More information about the lldb-commits mailing list