diff --git a/impl.h b/impl.h index 5aeb3c7..7703b5b 100644 --- a/impl.h +++ b/impl.h @@ -75,6 +75,7 @@ #endif #include #include +#include struct gimli_mapped_object; typedef struct gimli_mapped_object *gimli_mapped_object_t; diff --git a/print.c b/print.c index 8ae0c07..2a4c012 100644 --- a/print.c +++ b/print.c @@ -558,11 +558,11 @@ static int print_var(struct print_data *data, gimli_type_t t, const char *varnam snprintf(addrkey, sizeof(addrkey), "%p:%" PRIx64, t, addr); if (gimli_hash_find(derefd, addrkey, &dummy)) { printf(" " PTRFMT " [deref'd above]\n", addr); - return; + return GIMLI_ITER_CONT; } if (!gimli_hash_insert(derefd, addrkey, NULL)) { printf(" " PTRFMT " \n", addr); - return; + return GIMLI_ITER_ERR; } printf(" " PTRFMT " = {\n", addr);