From d103e4f4fb86a23f301d51ca5bd89df09111014c Mon Sep 17 00:00:00 2001 From: Tobias Frost Date: Fri, 10 Jun 2022 13:43:14 +0200 Subject: [PATCH] Fix include path for dwarf.h and add missing define the compiler included system dwarf.h, not with the project one. DWARF_STOPUNWIND was not defined in the project's dwarf.h --- dwarf.h | 1 + sysdeps/linux-gnu/arm/dwarf-arm.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dwarf.h b/dwarf.h index f40702c..d18d528 100644 --- a/dwarf.h +++ b/dwarf.h @@ -58,6 +58,7 @@ #define DWARF_EINVAL 4 /* unsupported operation or bad value */ #define DWARF_EBADVERSION 5 /* unwind info has unsupported version */ #define DWARF_ENOINFO 6 /* no unwind info found */ +#define DWARF_STOPUNWIND 7 struct dwarf_cie_info { arch_addr_t start_ip; /* first IP covered by this procedure */ diff --git a/sysdeps/linux-gnu/arm/dwarf-arm.c b/sysdeps/linux-gnu/arm/dwarf-arm.c index 9bbaeb1..6547912 100644 --- a/sysdeps/linux-gnu/arm/dwarf-arm.c +++ b/sysdeps/linux-gnu/arm/dwarf-arm.c @@ -32,7 +32,7 @@ #include "common.h" #include "backend.h" #include "debug.h" -#include "dwarf.h" +#include "../../../dwarf.h" #include "library.h" #include "task.h"