aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authornerix <nerixdev@outlook.de>2025-10-31 10:33:37 +0100
committerGitHub <noreply@github.com>2025-10-31 10:33:37 +0100
commit44fefe70e41a3b8e68545f45798740f74f4231cd (patch)
tree51ba43ed772b79a20e06625bb3218a7d513962ec /clang/lib/Basic/SourceManager.cpp
parentf2443861d7850279280457a6090039bcf8c60748 (diff)
downloadllvm-44fefe70e41a3b8e68545f45798740f74f4231cd.zip
llvm-44fefe70e41a3b8e68545f45798740f74f4231cd.tar.gz
llvm-44fefe70e41a3b8e68545f45798740f74f4231cd.tar.bz2
[LLDB][NativePDB] Estimate symbol sizes (#165727)
In #165604, a test was skipped on Windows, because the native PDB plugin didn't set sizes on symbols. While the test isn't compiled with debug info, it's linked with `-gdwarf`, causing a PDB to be created on Windows. This PDB will only contain the public symbols (written by the linker) and section information. The symbols themselves don't have a size, however the DIA SDK sets a size for them. It seems like, for these data symbols, the size given from DIA is the distance to the next symbol (or the section end). This PR implements the naive approach for the native plugin. The main difference is in function/code symbols. There, DIA searches for a corresponding `S_GPROC32` which have a "code size" that is sometimes slightly smaller than the difference to the next symbol.
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions