We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 839f521 commit c7da2d8Copy full SHA for c7da2d8
lldb/tools/lldb-dap/JSONUtils.cpp
@@ -750,9 +750,10 @@ llvm::json::Value CreateStackFrame(lldb::SBFrame &frame,
750
EmplaceSafeString(object, "name", frame_name);
751
752
auto line_entry = frame.GetLineEntry();
753
+ auto file_spec = line_entry.GetFileSpec();
754
// A line entry of 0 indicates the line is compiler generated i.e. no source
755
// file is associated with the frame.
- if (line_entry.GetFileSpec().IsValid() &&
756
+ if (file_spec.IsValid() && file_spec.Exists() &&
757
(line_entry.GetLine() != 0 ||
758
line_entry.GetLine() != LLDB_INVALID_LINE_NUMBER)) {
759
object.try_emplace("source", CreateSource(line_entry));
0 commit comments