[Lldb-commits] [PATCH] D140630: [lldb-vscode] Add data breakpoint support

Callum Macmillan via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 1 07:13:51 PST 2023


cimacmillan marked 12 inline comments as done.
cimacmillan added a comment.

@clayborg Thanks for your feedback. I've refactored the Watchpoint class slightly so that it encapsulates the parsing of the setDataBreakpoints request and be used to get the Breakpoint info to attach to the response. This is more similar to how the other breakpoint classes are written, and encapsulates things a bit better.



================
Comment at: lldb/test/API/tools/lldb-vscode/breakpoint_data/TestVSCode_setDataBreakpoints.py:73
+        num_a = array_find(locals, lambda x: x['name'] == 'num_a')
+        self.assertIsNotNone(num_a)
+
----------------
clayborg wrote:
> might be better as suggested?
There isn't an IsValid function in this case as it's not the SBValue type. I suppose is the variable was invalid, the rest of the test would fail.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140630/new/

https://reviews.llvm.org/D140630



More information about the lldb-commits mailing list