[Lldb-commits] [PATCH] D55142: Minidump debugging using the native PDB reader
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Tue Dec 11 16:42:27 PST 2018
On Tue, Dec 11, 2018 at 4:22 PM Leonard Mosescu <mosescu at google.com> wrote:
> I guess I don't see why we need a temporary solution at all. If we can
>> have logic that can be rolled into the SymbolVendor when we get it, and
>> makes sense there, and is also simple, why not go with it? Failing that,
>> doesn't the `target symbols add` solution also work fine?
>>
>
> I just checked again, and "target symbols add" depends on having a real
> SymbolVendor implementation. So unfortunately we still need a temporary
> solution.
>
I tried to verify this behavior, but it seems like it should already work
out of the box? So we're on the same page, we already do have a real
SymbolVendor implementation, it just happens to be the *default*
SymbolVendor implementation. It's not the case that one doesn't exist at
all.
So anyway, when I run "target symbols add foo.exe path/to/foo.pdb"
internally what this does is set a member variable called m_symfile_spec on
the Module object. Then, it calls our normal CalculateAbilities() function
which calls loadMatchingPDBFile.
I think all that needs to happen is that we need to check this field. If
it's empty, try to load a matching PDB file. If it's set to something,
then load that file instead.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20181211/955a217d/attachment.html>
More information about the lldb-commits
mailing list