Skip to content

Commit 692860f

Browse files
authored
Merge pull request llvm#1147 from swiftwasm/swift/main
[pull] swiftwasm from swift/main
2 parents 93f8940 + 6ed31a5 commit 692860f

File tree

4 files changed

+12
-48
lines changed

4 files changed

+12
-48
lines changed

lldb/include/lldb/Target/ThreadPlanStepInRange.h

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,7 @@ class ThreadPlanStepInRange : public ThreadPlanStepRange,
2222
public:
2323
ThreadPlanStepInRange(Thread &thread, const AddressRange &range,
2424
const SymbolContext &addr_context,
25-
lldb::RunMode stop_others,
26-
LazyBool step_in_avoids_code_without_debug_info,
27-
LazyBool step_out_avoids_code_without_debug_info);
28-
29-
ThreadPlanStepInRange(Thread &thread, const AddressRange &range,
30-
const SymbolContext &addr_context,
31-
const char *step_into_function_name,
32-
lldb::RunMode stop_others,
25+
const char *step_into_target, lldb::RunMode stop_others,
3326
LazyBool step_in_avoids_code_without_debug_info,
3427
LazyBool step_out_avoids_code_without_debug_info);
3528

@@ -41,10 +34,6 @@ class ThreadPlanStepInRange : public ThreadPlanStepRange,
4134

4235
void SetAvoidRegexp(const char *name);
4336

44-
void SetStepInTarget(const char *target) {
45-
m_step_into_target.SetCString(target);
46-
}
47-
4837
static void SetDefaultFlagValue(uint32_t new_value);
4938

5039
bool IsVirtualStep() override;

lldb/source/Plugins/LanguageRuntime/CPlusPlus/CPPLanguageRuntime.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,8 @@ CPPLanguageRuntime::GetStepThroughTrampolinePlan(Thread &thread,
397397
// We create a ThreadPlan to keep stepping through using the address range
398398
// of the current function.
399399
ret_plan_sp = std::make_shared<ThreadPlanStepInRange>(
400-
thread, range_of_curr_func, sc, eOnlyThisThread, eLazyBoolYes,
401-
eLazyBoolYes);
400+
thread, range_of_curr_func, sc, nullptr, eOnlyThisThread,
401+
eLazyBoolYes, eLazyBoolYes);
402402
return ret_plan_sp;
403403
}
404404
}

lldb/source/Target/Thread.cpp

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,16 +1310,10 @@ ThreadPlanSP Thread::QueueThreadPlanForStepInRange(
13101310
lldb::RunMode stop_other_threads, Status &status,
13111311
LazyBool step_in_avoids_code_without_debug_info,
13121312
LazyBool step_out_avoids_code_without_debug_info) {
1313-
ThreadPlanSP thread_plan_sp(
1314-
new ThreadPlanStepInRange(*this, range, addr_context, stop_other_threads,
1315-
step_in_avoids_code_without_debug_info,
1316-
step_out_avoids_code_without_debug_info));
1317-
ThreadPlanStepInRange *plan =
1318-
static_cast<ThreadPlanStepInRange *>(thread_plan_sp.get());
1319-
1320-
if (step_in_target)
1321-
plan->SetStepInTarget(step_in_target);
1322-
1313+
ThreadPlanSP thread_plan_sp(new ThreadPlanStepInRange(
1314+
*this, range, addr_context, step_in_target, stop_other_threads,
1315+
step_in_avoids_code_without_debug_info,
1316+
step_out_avoids_code_without_debug_info));
13231317
status = QueueThreadPlan(thread_plan_sp, abort_other_plans);
13241318
return thread_plan_sp;
13251319
}
@@ -1330,16 +1324,13 @@ ThreadPlanSP Thread::QueueThreadPlanForStepInRangeNoShouldStop(
13301324
lldb::RunMode stop_other_threads, Status &status,
13311325
LazyBool step_in_avoids_code_without_debug_info,
13321326
LazyBool step_out_avoids_code_without_debug_info) {
1333-
ThreadPlanSP thread_plan_sp(
1334-
new ThreadPlanStepInRange(*this, range, addr_context, stop_other_threads,
1335-
step_in_avoids_code_without_debug_info,
1336-
step_out_avoids_code_without_debug_info));
1327+
ThreadPlanSP thread_plan_sp(new ThreadPlanStepInRange(
1328+
*this, range, addr_context, step_in_target, stop_other_threads,
1329+
step_in_avoids_code_without_debug_info,
1330+
step_out_avoids_code_without_debug_info));
1331+
13371332
ThreadPlanStepInRange *plan =
13381333
static_cast<ThreadPlanStepInRange *>(thread_plan_sp.get());
1339-
1340-
if (step_in_target)
1341-
plan->SetStepInTarget(step_in_target);
1342-
13431334
plan->ClearShouldStopHereCallbacks();
13441335

13451336
status = QueueThreadPlan(thread_plan_sp, abort_other_plans);

lldb/source/Target/ThreadPlanStepInRange.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,6 @@ uint32_t ThreadPlanStepInRange::s_default_flag_values =
3333
// ThreadPlanStepInRange: Step through a stack range, either stepping over or
3434
// into based on the value of \a type.
3535

36-
ThreadPlanStepInRange::ThreadPlanStepInRange(
37-
Thread &thread, const AddressRange &range,
38-
const SymbolContext &addr_context, lldb::RunMode stop_others,
39-
LazyBool step_in_avoids_code_without_debug_info,
40-
LazyBool step_out_avoids_code_without_debug_info)
41-
: ThreadPlanStepRange(ThreadPlan::eKindStepInRange,
42-
"Step Range stepping in", thread, range, addr_context,
43-
stop_others),
44-
ThreadPlanShouldStopHere(this), m_step_past_prologue(true),
45-
m_virtual_step(false) {
46-
SetCallbacks();
47-
SetFlagsToDefault();
48-
SetupAvoidNoDebug(step_in_avoids_code_without_debug_info,
49-
step_out_avoids_code_without_debug_info);
50-
}
51-
5236
ThreadPlanStepInRange::ThreadPlanStepInRange(
5337
Thread &thread, const AddressRange &range,
5438
const SymbolContext &addr_context, const char *step_into_target,

0 commit comments

Comments
 (0)