From f68119a1ef9b8ae2bb894801a22842719d0856be Mon Sep 17 00:00:00 2001 From: Gianfranco Costamagna Date: Tue, 14 Nov 2023 17:18:57 +0100 Subject: [PATCH] dlt_cdh: Make sure on 64 bit we read an ELF64 structure. Otherwise we get a read error, and the context file is missing some good to know information --- src/core_dump_handler/dlt_cdh.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core_dump_handler/dlt_cdh.h b/src/core_dump_handler/dlt_cdh.h index 3dac480a8..1ace805b4 100644 --- a/src/core_dump_handler/dlt_cdh.h +++ b/src/core_dump_handler/dlt_cdh.h @@ -45,7 +45,7 @@ #define CORE_FILE_PATTERN "%s/core.%d.%s.%d.gz" #define CONTEXT_FILE_PATTERN "%s/context.%d.%s.%d.txt" -#if ((__SIZEOF_POINTER) == 4) +#if ((__SIZEOF_POINTER__) == 4) #define ELF_Ehdr Elf32_Ehdr #define ELF_Phdr Elf32_Phdr #define ELF_Shdr Elf32_Shdr