From 4f7a75f2cb3394290d1093a031546aa848ace929 Mon Sep 17 00:00:00 2001 From: Martin Hunt Date: Tue, 15 Apr 2008 21:10:34 -0400 Subject: 2.6.25 fixes and stack level limits. --- runtime/sym.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'runtime/sym.c') diff --git a/runtime/sym.c b/runtime/sym.c index 3d5ff01d..7163bf92 100644 --- a/runtime/sym.c +++ b/runtime/sym.c @@ -223,8 +223,7 @@ void _stp_symbol_print(unsigned long address) } /* Like _stp_symbol_print, except only print if the address is a valid function address */ - -void _stp_func_print(unsigned long address, int verbose, int exact) +int _stp_func_print(unsigned long address, int verbose, int exact) { char *modname; const char *name; @@ -247,7 +246,9 @@ void _stp_func_print(unsigned long address, int verbose, int exact) _stp_printf(" %p : %s+%#lx/%#lx%s\n", (int64_t) address, name, offset, size, exstr); } else _stp_printf("%p ", (int64_t) address); + return 1; } + return 0; } void _stp_symbol_snprint(char *str, size_t len, unsigned long address) -- cgit