[llvm-branch-commits] [lldb] r198378 - Fixed a crasher if you use the new "gui" command with no target or process.

Greg Clayton gclayton at apple.com
Thu Jan 2 15:59:46 PST 2014


Author: gclayton
Date: Thu Jan  2 17:59:45 2014
New Revision: 198378

URL: http://llvm.org/viewvc/llvm-project?rev=198378&view=rev
Log:
Fixed a crasher if you use the new "gui" command with no target or process.


Modified:
    lldb/branches/iohandler/source/Core/IOHandler.cpp

Modified: lldb/branches/iohandler/source/Core/IOHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/iohandler/source/Core/IOHandler.cpp?rev=198378&r1=198377&r2=198378&view=diff
==============================================================================
--- lldb/branches/iohandler/source/Core/IOHandler.cpp (original)
+++ lldb/branches/iohandler/source/Core/IOHandler.cpp Thu Jan  2 17:59:45 2014
@@ -2453,7 +2453,7 @@ public:
         Process *process = exe_ctx.GetProcessPtr();
         Thread *thread = NULL;
         StackFrameSP frame_sp;
-        const bool process_alive = process->IsAlive();
+        const bool process_alive = process ? process->IsAlive() : false;
         if (process_alive)
         {
             thread = exe_ctx.GetThreadPtr();





More information about the llvm-branch-commits mailing list