[Ltrace-devel] [PATCH] Add support for using elfutils as unwinder.
Petr Machata
pmachata at redhat.com
Wed Aug 13 20:09:40 UTC 2014
Andreas Schwab <schwab at linux-m68k.org> writes:
> It would, if it would apply.
How about this?
diff --git a/dwarf_prototypes.c b/dwarf_prototypes.c
index 9c36904..a39219e 100644
--- a/dwarf_prototypes.c
+++ b/dwarf_prototypes.c
@@ -8,6 +8,7 @@
#include <stdio.h>
#include <elfutils/libdwfl.h>
#include <dwarf.h>
+#include <inttypes.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
@@ -27,7 +28,7 @@
#include "debug.h"
#define complain(die, format, ...) \
- debug(DEBUG_FUNCTION, "%s() die '%s' @ 0x%lx: " format, \
+ debug(DEBUG_FUNCTION, "%s() die '%s' @ 0x%" PRIx64 ": " format, \
__func__, dwarf_diename(die), dwarf_dieoffset(die), \
##__VA_ARGS__)
More information about the Ltrace-devel
mailing list