[Lldb-commits] [lldb] Read and store gnu build id from loaded core file (PR #92078)
Fangrui Song via lldb-commits
lldb-commits at lists.llvm.org
Tue May 14 15:00:00 PDT 2024
================
@@ -983,6 +999,40 @@ llvm::Error ProcessElfCore::ParseThreadContextsFromNoteSegment(
}
}
+bool ProcessElfCore::IsElf(const NT_FILE_Entry entry) {
+ size_t size = strlen(llvm::ELF::ElfMagic);
+ uint8_t buf[size];
----------------
MaskRay wrote:
```
15: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]
1004 | uint8_t buf[size];
```
https://github.com/llvm/llvm-project/pull/92078
More information about the lldb-commits
mailing list