aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectBreakpoint.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2024-03-19 17:48:46 -0700
committerGitHub <noreply@github.com>2024-03-19 17:48:46 -0700
commita289f66efd638c2af14cdb88968e4eaeea0c0605 (patch)
tree564ed961f19cd55af753fcecba08d53d5fbb53c1 /lldb/source/Commands/CommandObjectBreakpoint.cpp
parente2fa90fa0a4b7950dd0d7fae6933e89c075d0af0 (diff)
downloadllvm-a289f66efd638c2af14cdb88968e4eaeea0c0605.zip
llvm-a289f66efd638c2af14cdb88968e4eaeea0c0605.tar.gz
llvm-a289f66efd638c2af14cdb88968e4eaeea0c0605.tar.bz2
Revert "[lldb] Store SupportFile in FileEntry (NFC)" (#85885)
Reverts llvm/llvm-project#85468 because @slackito reports this broke stepping in one of their tests [1] and this patch was meant to be NFC. [1] https://github.com/llvm/llvm-project/commit/d5a277d309e92b1d3e493da6036cffdf815105b1#commitcomment-139991120
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 cd4c779..fbece86 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.GetFile()) {
- file = sc.line_entry.GetFile();
+ if (sc.line_entry.file) {
+ file = sc.line_entry.file;
} else {
result.AppendError("Can't find the file for the selected frame to "
"use as the default file.");