summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2019-10-18 10:43:15 +0000
committerMartin Storsjo <martin@martin.st>2019-10-18 10:43:15 +0000
commitb38f577c015c210605c2e463e9ac6a03249225a2 (patch)
treeafef882288eb3fc9add890f129b199a6b82b0e40 /lldb/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py
parent651f07908a149b8eb861a1b109f98eeb3d4f1517 (diff)
downloadbcm5719-llvm-b38f577c015c210605c2e463e9ac6a03249225a2.tar.gz
bcm5719-llvm-b38f577c015c210605c2e463e9ac6a03249225a2.zip
[LLD] [COFF] Try to report source locations for duplicate symbols
This fixes the second part of PR42407. For files with dwarf debug info, it manually loads and iterates .debug_info to find the declared location of variables, to allow reporting them. (This matches the corresponding code in the ELF linker.) For functions, it uses the existing getFileLineDwarf which uses LLVMSymbolizer for translating addresses to file lines. In object files with codeview debug info, only the source location of duplicate functions is printed. (And even there, only for the first input file. The getFileLineCodeView function requires the object file to be fully loaded and initialized to properly resolve source locations, but duplicate symbols are reported at a stage when the second object file isn't fully loaded yet.) Differential Revision: https://reviews.llvm.org/D68975 llvm-svn: 375218
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud