clayborg added a comment.

One other idea if we go with the UUID::Type solution: if we have UUIDs that are 
different, we could ask the ObjectFile (ObjectFileELF) to see if it thinks the 
files go together. Not sure if there is anything in the ELF file that would 
allow us to do that. In Mach-O we have all definitions for the .text and .data 
sections, just not the bytes. So it would be easy to compare the file address 
and file sizes of the sections that are in both to see if they match. Something 
like:

  bool ObjectFile::FilesAreRelated(ObjectFile &rhs);

In Mach-O it could run through the segments and compare the ones in common to 
ensure things match.


https://reviews.llvm.org/D35607



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to