Commit a601214b authored by Petr Machata's avatar Petr Machata Committed by Petr Machata

Compilation fixes

parent dbf7ec84
......@@ -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__)
......
......@@ -944,7 +944,8 @@ proc_add_library(struct process *proc, struct library *lib)
dwfl_module =
dwfl_report_elf(dwfl, lib->soname,
lib->pathname, -1,
(GElf_Addr) lib->base,
/* XXX double cast */
(GElf_Addr) (uintptr_t) lib->base,
false);
if (dwfl_module == NULL)
fprintf(stderr,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment