aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectBreakpoint.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2024-03-21 08:40:08 -0700
committerGitHub <noreply@github.com>2024-03-21 08:40:08 -0700
commit556fe5f290ea88dcbb7ced16b0f057dcebce1fd0 (patch)
treeacfb8ed07343ee5c3d78ec896e735771e8a6ce0b /lldb/source/Commands/CommandObjectBreakpoint.cpp
parent0c8dfc85c3740bd8905e21642f616e6fd54854e0 (diff)
downloadllvm-556fe5f290ea88dcbb7ced16b0f057dcebce1fd0.zip
llvm-556fe5f290ea88dcbb7ced16b0f057dcebce1fd0.tar.gz
llvm-556fe5f290ea88dcbb7ced16b0f057dcebce1fd0.tar.bz2
[lldb] Reland: Store SupportFile in FileEntry (NFC) (#85892)
This is another step towards supporting DWARF5 checksums and inline source code in LLDB. This is a reland of #85468 but without the functional change of storing the support file from the line table (yet).
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.");