[lldb] [llvm] [lldb-dap] Support column breakpoints (PR #113787)

Adrian Vogelsgesang via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 16 09:31:18 PST 2024


================
@@ -1062,6 +1063,16 @@ void request_breakpointLocations(const llvm::json::Object &request) {
         continue;
       if (line == end_line && column > end_column)
         continue;
+
+      // Make sure we are in the right file.
+      // We might have a match on line & column range and still
+      // be in the wrong file, e.g. for included files.
+      if (std::string_view(line_entry.GetFileSpec().GetFilename()) !=
----------------
vogelsgesang wrote:

Thanks for that background. Fixed.

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


More information about the llvm-commits mailing list