[Lldb-commits] [lldb] [lldb-dap] Fix format string on Mac OS (PR #169933)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Mon Dec 1 09:18:26 PST 2025
================
@@ -87,8 +87,8 @@ Error AttachRequestHandler::Run(const AttachRequestArguments &args) const {
// Use the unique target ID to get the target.
target = dap.debugger.FindTargetByGloballyUniqueID(*target_id);
if (!target.IsValid()) {
- error.SetErrorStringWithFormat("invalid target_id %lu in attach config",
- *target_id);
+ error.SetErrorStringWithFormat("invalid target_id %llu in attach config",
+ (unsigned long long)*target_id);
----------------
JDevlieghere wrote:
Let's use `SetErrorString` and llvm's `formatv`:
```suggestion
error.SetErrorString(llvm::formatv("invalid target_id {0} in attach config", *target_id).str().c_str());
```
https://github.com/llvm/llvm-project/pull/169933
More information about the lldb-commits
mailing list