summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ModuleList.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-12-20 23:42:12 +0000
committerGreg Clayton <gclayton@apple.com>2010-12-20 23:42:12 +0000
commitbdea7cee67a914dc2b82075ca289e7a2f4a8f2c1 (patch)
tree952e6adc296a6dbc48c58d5563f5eb6e855bd526 /lldb/source/Core/ModuleList.cpp
parentfe921a79f33815b45b15fb6495aadea0152ba433 (diff)
downloadbcm5719-llvm-bdea7cee67a914dc2b82075ca289e7a2f4a8f2c1.tar.gz
bcm5719-llvm-bdea7cee67a914dc2b82075ca289e7a2f4a8f2c1.zip
Remove an assertion that is causing crashes. We do need to find a way to reproduce when this assertion asserts, but we should crash our debug session because of it. For now we log to stderr in hope of tracking it down.
llvm-svn: 122290
Diffstat (limited to 'lldb/source/Core/ModuleList.cpp')
-rw-r--r--lldb/source/Core/ModuleList.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/lldb/source/Core/ModuleList.cpp b/lldb/source/Core/ModuleList.cpp
index aca9a973f95..dea3ac03bf8 100644
--- a/lldb/source/Core/ModuleList.cpp
+++ b/lldb/source/Core/ModuleList.cpp
@@ -502,7 +502,17 @@ ModuleList::GetModuleSP (const Module *module_ptr)
{
ModuleList &shared_module_list = GetSharedModuleList ();
module_sp = shared_module_list.FindModule (module_ptr);
- assert (module_sp.get()); // This might fire off a few times and we need to make sure it never fires...
+ if (module_sp.get() == NULL)
+ {
+ char uuid_cstr[256];
+ const_cast<Module *>(module_ptr)->GetUUID().GetAsCString (uuid_cstr, sizeof(uuid_cstr));
+ const FileSpec &module_file_spec = module_ptr->GetFileSpec();
+ fprintf (stderr, "warning: module not in shared module list: %s (%s) \"%s/%s\"\n",
+ uuid_cstr,
+ module_ptr->GetArchitecture().AsCString(),
+ module_file_spec.GetDirectory().GetCString(),
+ module_file_spec.GetFilename().GetCString());
+ }
}
return module_sp;
}
OpenPOWER on IntegriCloud