[Lldb-commits] [lldb] Read and store gnu build id from loaded core file (PR #92492)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Fri May 17 09:15:06 PDT 2024
================
@@ -33,12 +35,17 @@
#include "Plugins/Process/elf-core/RegisterUtilities.h"
#include "ProcessElfCore.h"
#include "ThreadElfCore.h"
+#include "lldb/lldb-types.h"
using namespace lldb_private;
namespace ELF = llvm::ELF;
LLDB_PLUGIN_DEFINE(ProcessElfCore)
+#define ELFOFFSETOF(T, M) \
+ addr_size == 4 ? offsetof(llvm::ELF::Elf32_##T, M) \
+ : offsetof(llvm::ELF::Elf64_##T, M)
----------------
clayborg wrote:
We should pass in `addr_size` here:
```
#define ELFOFFSETOF(type_name, member, addr_size) ...
```
https://github.com/llvm/llvm-project/pull/92492
More information about the lldb-commits
mailing list