[Lldb-commits] [lldb] r131217 - /lldb/trunk/source/Target/Target.cpp

Jim Ingham jingham at apple.com
Wed May 11 18:12:29 PDT 2011


Author: jingham
Date: Wed May 11 20:12:28 2011
New Revision: 131217

URL: http://llvm.org/viewvc/llvm-project?rev=131217&view=rev
Log:
Make sure you have an executable module before trying to print its name.

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

Modified: lldb/trunk/source/Target/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Target.cpp?rev=131217&r1=131216&r2=131217&view=diff
==============================================================================
--- lldb/trunk/source/Target/Target.cpp (original)
+++ lldb/trunk/source/Target/Target.cpp Wed May 11 20:12:28 2011
@@ -97,7 +97,10 @@
     }
     else
     {
-        s->PutCString (GetExecutableModule()->GetFileSpec().GetFilename().GetCString());
+        if (GetExecutableModule())
+            s->PutCString (GetExecutableModule()->GetFileSpec().GetFilename().GetCString());
+        else
+            s->PutCString ("No executable module.");
     }
 }
 





More information about the lldb-commits mailing list