Author: jingham
Date: Thu May 19 17:22:57 2016
New Revision: 270148

URL: http://llvm.org/viewvc/llvm-project?rev=270148&view=rev
Log:
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.

Modified:
    lldb/trunk/source/Target/ThreadPlanShouldStopHere.cpp

Modified: lldb/trunk/source/Target/ThreadPlanShouldStopHere.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/ThreadPlanShouldStopHere.cpp?rev=270148&r1=270147&r2=270148&view=diff
==============================================================================
--- lldb/trunk/source/Target/ThreadPlanShouldStopHere.cpp (original)
+++ lldb/trunk/source/Target/ThreadPlanShouldStopHere.cpp Thu May 19 17:22:57 
2016
@@ -120,38 +120,38 @@ ThreadPlanShouldStopHere::DefaultStepFro
     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);
         }
     }
     


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to