[Lldb-commits] [PATCH] D55142: Minidump debugging using the native PDB reader
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Thu Dec 13 12:04:38 PST 2018
On 13/12/2018 19:32, Leonard Mosescu wrote:
> What's the consensus?
>
> Personally I think that, even considering the potential issue that Paval
> pointed out, the "target symbols add ..." is the most conservative
> approach in terms of introducing new behavior. I'm fine with the current
> directory lookup as well (the original change) since it's consistent
> with DWARF lookup.
Yes, but it also regresses existing functionality. Now if I do something
completely nonsensical like:
(lldb) target create "/bin/ls"
Current executable set to '/bin/ls' (x86_64).
(lldb) target symbols add -s /bin/ls /tmp/a.txt
error: symbol file '/tmp/a.txt' does not match any existing module
lldb will print a nice error for me. If I remove the safeguards like you
did in your patch, it turns into this:
(lldb) target create "/bin/ls"
Current executable set to '/bin/ls' (x86_64).
(lldb) target symbols add -s /bin/ls /tmp/a.txt
symbol file '/tmp/a.txt' has been added to '/bin/ls'
which is a blatant lie, because /bin/ls will continue to use symbols
from the object file.
More information about the lldb-commits
mailing list