forked from OSchip/llvm-project
Remove a should have been deleted extra assignment to a variable.
Also fix up the formatting a bit, it looks like something was inserting actual tabs. Replace with 4 spaces. llvm-svn: 270148
This commit is contained in:
parent
ab03eb007c
commit
d9e02c4f3c
|
@ -120,38 +120,38 @@ ThreadPlanShouldStopHere::DefaultStepFromHereCallback (ThreadPlan *current_plan,
|
|||
if (!frame)
|
||||
return return_plan_sp;
|
||||
SymbolContext sc;
|
||||
sc = frame->GetSymbolContext (eSymbolContextLineEntry);
|
||||
sc = frame->GetSymbolContext (eSymbolContextLineEntry|eSymbolContextSymbol);
|
||||
|
||||
if (sc.line_entry.line == 0)
|
||||
{
|
||||
AddressRange range = sc.line_entry.range;
|
||||
|
||||
// If the whole function is marked line 0 just step out, that's easier & faster than continuing
|
||||
// If the whole function is marked line 0 just step out, that's easier & faster than continuing
|
||||
// to step through it.
|
||||
bool just_step_out = false;
|
||||
if (sc.symbol && sc.symbol->ValueIsAddress())
|
||||
{
|
||||
Address symbol_end = sc.symbol->GetAddress();
|
||||
symbol_end.Slide(sc.symbol->GetByteSize() - 1);
|
||||
bool just_step_out = false;
|
||||
if (sc.symbol && sc.symbol->ValueIsAddress())
|
||||
{
|
||||
Address symbol_end = sc.symbol->GetAddress();
|
||||
symbol_end.Slide(sc.symbol->GetByteSize() - 1);
|
||||
if (range.ContainsFileAddress(sc.symbol->GetAddress()) && range.ContainsFileAddress(symbol_end))
|
||||
{
|
||||
if (log)
|
||||
log->Printf("Stopped in a function with only line 0 lines, just stepping out.");
|
||||
{
|
||||
if (log)
|
||||
log->Printf("Stopped in a function with only line 0 lines, just stepping out.");
|
||||
just_step_out = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!just_step_out)
|
||||
{
|
||||
if (log)
|
||||
log->Printf ("ThreadPlanShouldStopHere::DefaultStepFromHereCallback Queueing StepInRange plan to step through line 0 code.");
|
||||
if (log)
|
||||
log->Printf ("ThreadPlanShouldStopHere::DefaultStepFromHereCallback Queueing StepInRange plan to step through line 0 code.");
|
||||
|
||||
return_plan_sp = current_plan->GetThread().QueueThreadPlanForStepInRange(false,
|
||||
range,
|
||||
sc,
|
||||
NULL,
|
||||
eOnlyDuringStepping,
|
||||
eLazyBoolCalculate,
|
||||
eLazyBoolNo);
|
||||
return_plan_sp = current_plan->GetThread().QueueThreadPlanForStepInRange(false,
|
||||
range,
|
||||
sc,
|
||||
NULL,
|
||||
eOnlyDuringStepping,
|
||||
eLazyBoolCalculate,
|
||||
eLazyBoolNo);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue