[Lldb-commits] [PATCH] Add a missing null pointer check in CommandObjectThread.cpp.

Stephane Sezer sas at cd80.net
Mon Mar 23 11:17:59 PDT 2015


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D8554

Files:
  lldb/trunk/source/Commands/CommandObjectThread.cpp

Index: lldb/trunk/source/Commands/CommandObjectThread.cpp
===================================================================
--- lldb/trunk/source/Commands/CommandObjectThread.cpp
+++ lldb/trunk/source/Commands/CommandObjectThread.cpp
@@ -581,7 +581,7 @@
         {
             StackFrame *frame = thread->GetStackFrameAtIndex(0).get();
 
-            if (frame->HasDebugInformation ())
+            if (frame && frame->HasDebugInformation ())
             {
                 new_plan_sp = thread->QueueThreadPlanForStepInRange (abort_other_plans,
                                                                 frame->GetSymbolContext(eSymbolContextEverything).line_entry.range,

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8554.22493.patch
Type: text/x-patch
Size: 684 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150323/e305be0f/attachment.bin>


More information about the lldb-commits mailing list