forked from OSchip/llvm-project
Fixed an issue where if you called:
SBTarget::AddModule(const char *path, const char *triple, const char *uuid_cstr, const char *symfile); If "symfile" was filled in, it would cause us to not correctly add the module. Same goes for: SBTarget::AddModule(SBModuleSpec ...) Where you filled in the symfile. <rdar://problem/16529799> llvm-svn: 205750
This commit is contained in:
parent
e75c048ab9
commit
86e70cb3ac
|
@ -177,7 +177,8 @@ class CrashLog(symbolication.Symbolicator):
|
|||
if 'DBGDSYMPath' in plist:
|
||||
self.symfile = os.path.realpath(plist['DBGDSYMPath'])
|
||||
if 'DBGSymbolRichExecutable' in plist:
|
||||
self.resolved_path = os.path.expanduser (plist['DBGSymbolRichExecutable'])
|
||||
self.path = os.path.expanduser (plist['DBGSymbolRichExecutable'])
|
||||
self.resolved_path = self.path
|
||||
if not self.resolved_path and os.path.exists(self.path):
|
||||
dwarfdump_cmd_output = commands.getoutput('dwarfdump --uuid "%s"' % self.path)
|
||||
self_uuid = self.get_uuid()
|
||||
|
|
|
@ -393,7 +393,8 @@ public:
|
|||
return false;
|
||||
|
||||
}
|
||||
if (match_module_spec.GetSymbolFileSpecPtr())
|
||||
// Only match the symbol file spec if there is one in this ModuleSpec
|
||||
if (GetSymbolFileSpec() && match_module_spec.GetSymbolFileSpecPtr())
|
||||
{
|
||||
const FileSpec &fspec = match_module_spec.GetSymbolFileSpec();
|
||||
if (!FileSpec::Equal(fspec, GetSymbolFileSpec(), fspec.GetDirectory().IsEmpty() == false))
|
||||
|
|
|
@ -1701,6 +1701,8 @@ Target::GetSharedModule (const ModuleSpec &module_spec, Error *error_ptr)
|
|||
else
|
||||
m_images.Append(module_sp);
|
||||
}
|
||||
else
|
||||
module_sp.reset();
|
||||
}
|
||||
}
|
||||
if (error_ptr)
|
||||
|
|
Loading…
Reference in New Issue