[Lldb-commits] [lldb] [lldb-dap] Refactoring lldb-dap 'launch' request to use typed RequestHandler<>. (PR #133624)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Apr 25 10:12:39 PDT 2025


================
@@ -979,8 +967,8 @@ lldb::SBError DAP::WaitForProcessToStop(uint32_t seconds) {
     }
     std::this_thread::sleep_for(std::chrono::microseconds(250));
   }
-  error.SetErrorStringWithFormat("process failed to stop within %u seconds",
-                                 seconds);
+  error.SetErrorStringWithFormat("process failed to stop within %lld seconds",
----------------
DavidSpickett wrote:

Warning on AArch64 Linux compiling with clang:
```
[665/779] Building CXX object tools/lldb/tools/lldb-dap/CMakeFiles/lldb-dap.dir/DAP.cpp.o
/home/david.spickett/llvm-project/lldb/tools/lldb-dap/DAP.cpp:972:34: warning: format specifies type 'long long' but the argument has type 'rep' (aka 'long') [-Wformat]
  971 |   error.SetErrorStringWithFormat("process failed to stop within %lld seconds",
      |                                                                 ~~~~
      |                                                                 %ld
  972 |                                  seconds.count());
      |                                  ^~~~~~~~~~~~~~~
1 warning generated.
```

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


More information about the lldb-commits mailing list