Skip to content

Commit 6e115f0

Browse files
committed
[lldb] Adjust for CreateBreakpoint API change
1 parent 592682a commit 6e115f0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lldb/source/Plugins/ExpressionParser/Swift/SwiftREPL.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ lldb::REPLSP SwiftREPL::CreateInstanceFromDebugger(Status &err,
173173
eFunctionNameTypeAuto, // Name type
174174
eLanguageTypeUnknown, // Language
175175
0, // offset
176+
false, // offset_is_insn_count
176177
eLazyBoolYes, // skip_prologue,
177178
true, // internal
178179
false); // request_hardware

lldb/source/Target/ThreadPlanCallFunction.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,10 +451,11 @@ void ThreadPlanCallFunction::SetBreakpoints() {
451451
const LazyBool skip_prologue = eLazyBoolNo;
452452
const bool is_internal = true;
453453
const bool is_hardware = false;
454+
const bool offset_is_insn_count = false;
454455
m_error_backstop_bp_sp = m_process.GetTarget().CreateBreakpoint(
455-
&stdlib_module_list, NULL, backstop_name.str().c_str(),
456-
eFunctionNameTypeFull, eLanguageTypeUnknown, 0, skip_prologue,
457-
is_internal, is_hardware);
456+
&stdlib_module_list, NULL, backstop_name.str().c_str(),
457+
eFunctionNameTypeFull, eLanguageTypeUnknown, 0,
458+
offset_is_insn_count, skip_prologue, is_internal, is_hardware);
458459
}
459460
}
460461
}

0 commit comments

Comments
 (0)