[Lldb-commits] [lldb] [lldb-dap] Fix source references (PR #144364)
Ebuka Ezike via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 16 11:08:42 PDT 2025
================
@@ -510,6 +510,25 @@ DAP::SendFormattedOutput(OutputType o, const char *format, ...) {
o, llvm::StringRef(buffer, std::min<int>(actual_length, sizeof(buffer))));
}
+int32_t DAP::CreateSourceReference(lldb::addr_t address) {
+ auto iter = llvm::find(source_references, address);
----------------
da-viper wrote:
I used the vector since we are less likely to create up 100 source references thoughout a debug session. Will be faster than hashmap because of the small size. Could move to densemap if preferred.
https://github.com/llvm/llvm-project/pull/144364
More information about the lldb-commits
mailing list