[Lldb-commits] [lldb] [lldb][RISCV] fix LR/SC atomic sequence handling in lldb-server (PR #127505)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 20 06:01:32 PDT 2025


================
@@ -32,6 +34,37 @@ class RegisterValue;
 class Stream;
 class Target;
 class UnwindPlan;
+class EmulateInstruction;
+
+using BreakpointLocations = std::vector<lldb::addr_t>;
+
+class SingleStepBreakpointLocationsPredictor {
+public:
+  SingleStepBreakpointLocationsPredictor(
+      std::unique_ptr<EmulateInstruction> emulator_up)
+      : m_emulator_up{std::move(emulator_up)} {}
+
+  virtual BreakpointLocations GetBreakpointLocations(Status &status);
+
+  virtual llvm::Expected<unsigned> GetBreakpointSize(lldb::addr_t bp_addr) {
+    return 4;
----------------
DavidSpickett wrote:

`[[maybe_unused]] lldb::addr_t bp_addr`

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


More information about the lldb-commits mailing list