X-Git-Url: http://git.jankratochvil.net/?p=debugger.git;a=blobdiff_plain;f=debugger.c;h=43cb370e7ab11ce5bde44ac499fc98390d003ffd;hp=cc39e848b1f64daa0cb19415694a105b7ac6ceca;hb=b02784f11796d20db44bba83a07b9f3c54cab675;hpb=267ae10411d1ea387897f87a2f2792c4f524e0d3 diff --git a/debugger.c b/debugger.c index cc39e84..43cb370 100644 --- a/debugger.c +++ b/debugger.c @@ -460,10 +460,10 @@ static int getmodules_callback (Dwfl_Module *module, GElf_Sym sym; sym_count = dwfl_module_getsymtab (module); -/* "/usr/lib/debug/lib64/ld-2.4.so.debug"? */ -#if 0 + if (sym_count == -1) + return DWARF_CB_OK; assert (sym_count >= 0); -#endif + for (ndx = 0; ndx < sym_count; ndx++) { const char *name_got;