aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectBreakpoint.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2024-03-15 15:03:54 -0700
committerGitHub <noreply@github.com>2024-03-15 15:03:54 -0700
commitd5a277d309e92b1d3e493da6036cffdf815105b1 (patch)
tree5817003849eb8b2f53c0d20592645ffc50e9f8a8 /lldb/source/Commands/CommandObjectBreakpoint.cpp
parent8ebf4084f13d939eb33cd0a29d057158fa15a3a7 (diff)
downloadllvm-d5a277d309e92b1d3e493da6036cffdf815105b1.zip
llvm-d5a277d309e92b1d3e493da6036cffdf815105b1.tar.gz
llvm-d5a277d309e92b1d3e493da6036cffdf815105b1.tar.bz2
[lldb] Store SupportFile in FileEntry (NFC) (#85468)
This is another step towards supporting DWARF5 checksums and inline source code in LLDB.
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpoint.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectBreakpoint.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpoint.cpp b/lldb/source/Commands/CommandObjectBreakpoint.cpp
index fbece86..cd4c779 100644
--- a/lldb/source/Commands/CommandObjectBreakpoint.cpp
+++ b/lldb/source/Commands/CommandObjectBreakpoint.cpp
@@ -780,8 +780,8 @@ private:
} else {
const SymbolContext &sc =
cur_frame->GetSymbolContext(eSymbolContextLineEntry);
- if (sc.line_entry.file) {
- file = sc.line_entry.file;
+ if (sc.line_entry.GetFile()) {
+ file = sc.line_entry.GetFile();
} else {
result.AppendError("Can't find the file for the selected frame to "
"use as the default file.");