[Lldb-commits] [PATCH] D40475: DWZ 12/12: DWZ test mode

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Dec 4 03:57:15 PST 2017

On 1 December 2017 at 19:42, Jim Ingham <jingham at apple.com> wrote:
> This certainly should be cleared up and centralized.  I'm not quite as sure it should be in Platform however.  For instance, macOS has the DebugSymbols framework that allows users to specify a local lookup tool to find symbol files given a UUID.  That runs only on MacOS and requires MacOS specific headers to build.  So that makes it a Host facility.  But there's no reason you couldn't use this mechanism for finding Linux symbol files when cross debugging.  So that makes it sound more like this Platform symbol finding facility you're envisioning.  I'm still a little unclear about the distinction between Host, Platform when the platform isn't the same as the Host, and Platform when it happens to be the same as the Host.
> But maybe this is clear and I just haven't studied the more recent manifestations of the code recently.

I agree that the host/platform split is not very clear currently.
We'll need to think about it when the time comes. Maybe we just need
to peel off one layer from the Host here and move it somewhere. For
example the concrete details of how to invoke the DebugSymbols
framework can stay in Host (roughly the
LocateMacOSXFilesUsingDebugSymbols function, I guess), but then all
the smartness about what to do with it can live somewhere else.

More information about the lldb-commits mailing list