ModuleSpecs::FindMatchingModuleSpec looks for matching filenames but when looking for the dSYM we should only be looking for a matching architecture and and UUID. Jason pointed out this mistake in http://reviews.llvm.org/D9174 when this function was incorrectly converted to not be Mac specific.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Thanks Robert, that looks good and works correctly for me.
I'd either write the function decl as
static bool
FileAtPathContainsArchAndUUID (const FileSpec &file_fspec, const ArchSpec *arch, const lldb_private::UUID *uuid)
{
or
static bool
FileAtPathContainsArchAndUUID (
const FileSpec &file_fspec, const ArchSpec *arch, const lldb_private::UUID *uuid)
{
The first format is the most common -- the second format is present around the code base. A good example would be source/Target/Process.cpp -- most of the methods follow the first style and there's one or two that follow the second.
I know you were copying the style from other parts of this source file - but they're not to be emulated. :)
Thanks!