================
@@ -676,7 +676,14 @@ llvm::json::Value CreateThreadStopped(DAP &dap,
lldb::SBThread &thread,
EmplaceSafeString(body, "description", desc_str);
}
} break;
- case lldb::eStopReasonWatchpoint:
+ case lldb::eStopReasonWatchpoint: {
+ body.try_emplace("reason", "data breakpoint");
+ lldb::break_id_t bp_id = thread.GetStopReasonDataAtIndex(0);
+ std::vector<lldb::break_id_t> bp_ids = {bp_id};
+ body.try_emplace("hitBreakpointIds", llvm::json::Array(bp_ids));
+ EmplaceSafeString(body, "description",
+ llvm::formatv("data breakpoint {0}", bp_id).str());
----------------
da-viper wrote:
```suggestion
lldb::break_id_t bp_id = thread.GetStopReasonDataAtIndex(0);
body.try_emplace("hitBreakpointIds",
llvm::json::Array{llvm::json::Value(bp_id)});
EmplaceSafeString(body, "description",
llvm::formatv("data breakpoint {0}", bp_id).str());
```
https://github.com/llvm/llvm-project/pull/167237
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits