[Ltrace-devel] [PATCH] Add support for using elfutils as unwinder.
Andreas Schwab
schwab at linux-m68k.org
Wed Aug 13 19:05:52 UTC 2014
Mark Wielaard <mjw at redhat.com> writes:
> Does this patch help?
>
> 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__)
>
It would, if it would apply.
Andreas.
--
Andreas Schwab, schwab at linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Ltrace-devel
mailing list