[Lldb-commits] [lldb] Make breakpoint stop reason more accurate for function breakpoints (PR #130841)

via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 11 15:51:49 PDT 2025


================
@@ -967,17 +967,23 @@ llvm::json::Value CreateThreadStopped(DAP &dap, lldb::SBThread &thread,
       body.try_emplace("reason", "exception");
       EmplaceSafeString(body, "description", exc_bp->label);
     } else {
+      std::string reason = "breakpoint";
----------------
jeffreytan81 wrote:

You do not need to create a `std::string` object, simply use StringRef or char * is enough.

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


More information about the lldb-commits mailing list