[Lldb-commits] [lldb] [lldb-dap] assembly breakpoints (PR #139969)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Sat May 17 18:33:59 PDT 2025
================
@@ -71,22 +101,26 @@ BreakpointLocationsRequestHandler::Run(
locations.emplace_back(line, column);
}
}
+}
- // The line entries are sorted by addresses, but we must return the list
- // ordered by line / column position.
- std::sort(locations.begin(), locations.end());
- locations.erase(llvm::unique(locations), locations.end());
+template <unsigned N>
+void BreakpointLocationsRequestHandler::AddAssemblyBreakpointLocations(
+ llvm::SmallVector<std::pair<uint32_t, uint32_t>, N> &locations,
----------------
JDevlieghere wrote:
You can avoid the template by taking a reference to a `SmallVectorImpl<std::pair<uint32_t, uint32_t>>`, which `SmallVector` inherits from.
https://github.com/llvm/llvm-project/pull/139969
More information about the lldb-commits
mailing list