aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorGeorgeHuyubo <113479859+GeorgeHuyubo@users.noreply.github.com>2024-05-24 17:54:56 -0400
committerGitHub <noreply@github.com>2024-05-24 17:54:56 -0400
commitccde823b1341503f4622b3e4d8e167cf937b5f2a (patch)
tree28c8ee7dd38c8392c7a8187623e7b937449418d9 /clang/lib/Frontend/InitPreprocessor.cpp
parent46588039588c42056bd36a7338a84ef1e978b01e (diff)
downloadllvm-ccde823b1341503f4622b3e4d8e167cf937b5f2a.zip
llvm-ccde823b1341503f4622b3e4d8e167cf937b5f2a.tar.gz
llvm-ccde823b1341503f4622b3e4d8e167cf937b5f2a.tar.bz2
Read and store gnu build id from loaded core file (#92492)
As we have debuginfod as symbol locator available in lldb now, we want to make full use of it. In case of post mortem debugging, we don't always have the main executable available. However, the .note.gnu.build-id of the main executable(some other modules too), should be available in the core file, as those binaries are loaded in memory and dumped in the core file. We try to iterate through the NT_FILE entries, read and store the gnu build id if possible. This will be very useful as this id is the unique key which is needed for querying the debuginfod server. Test: Build and run lldb. Breakpoint set to https://github.com/llvm/llvm-project/blob/main/lldb/source/Plugins/SymbolLocator/Debuginfod/SymbolLocatorDebuginfod.cpp#L147 Verified after this commit, module_uuid is the correct gnu build id of the main executable which caused the crash(first in the NT_FILE entry) Previous PR: https://github.com/llvm/llvm-project/pull/92078 was mistakenly merged. This PR is re-opening the commit.
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions