[Lldb-commits] [lldb] [llvm] [lldb-dap] migrate set breakpoint requests (PR #137448)
John Harrison via lldb-commits
lldb-commits at lists.llvm.org
Sun Apr 27 11:48:12 PDT 2025
================
@@ -322,6 +323,186 @@ enum SteppingGranularity : unsigned {
bool fromJSON(const llvm::json::Value &, SteppingGranularity &,
llvm::json::Path);
+/// Information about a breakpoint created in `setBreakpoints`,
+/// `setFunctionBreakpoints`, `setInstructionBreakpoints`, or
+/// `setDataBreakpoints` requests.
+struct Breakpoint {
+ /// A machine-readable explanation of why a breakpoint may not be verified.
+ enum class Reason : unsigned {
+ /// Indicates a breakpoint might be verified in the future, but
+ /// the adapter cannot verify it in the current state.
+ eBreakpointReasonPending,
+ /// Indicates a breakpoint was not able to be verified, and the
+ /// adapter does not believe it can be verified without intervention.
+ eBreakpointReasonFailed,
+ };
----------------
ashgti wrote:
style nit, in lldb enums are usually not nested like this, how about moving this out of the Breakpoint struct? You could use `BreakpointReason` as well, thats already repeated in the enum names.
https://github.com/llvm/llvm-project/pull/137448
More information about the lldb-commits
mailing list