aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorGeorgeHuyubo <113479859+GeorgeHuyubo@users.noreply.github.com>2025-09-10 15:15:59 -0700
committerGitHub <noreply@github.com>2025-09-10 15:15:59 -0700
commitc087da4b18192220debcd41d29de100987d1f324 (patch)
tree948a53d8609d0c10f5393d4cb4cb8e000ab4c09f /clang/lib/Frontend/CompilerInvocation.cpp
parentc04b98fbd4a2c70d547e3b9eb03446624b414d31 (diff)
downloadllvm-c087da4b18192220debcd41d29de100987d1f324.zip
llvm-c087da4b18192220debcd41d29de100987d1f324.tar.gz
llvm-c087da4b18192220debcd41d29de100987d1f324.tar.bz2
[lldb][ElfCore] Improve main executable detection in core files (#157170)
This change improves how LLDB's ProcessElfCore plugin identifies the main executable when loading ELF core files. Previously, the code would simply use the first entry in the NT_FILE section, which is not guaranteed to be the main executable, also the first entry might not have a valid UUID. 1. **Storing executable name**: Extract the executable name from the ELF NT_PRPSINFO note and store it in `m_executable_name` 2. **Preferential matching**: When selecting the main executable from NT_FILE entries, prefer entries whose path ends with the stored executable name 3. **UUID-based lookup**: Call `FindModuleUUID()` helper function to properly match modules by path and retrieve a valid UUID Co-authored-by: George Hu <hyubo@meta.com>
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions