[Lldb-commits] [PATCH] D35607: Extend 'target symbols add' to load symbols from a given file by UUID.

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 20 09:49:25 PDT 2017


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





More information about the lldb-commits mailing list