From b02784f11796d20db44bba83a07b9f3c54cab675 Mon Sep 17 00:00:00 2001 From: lace <> Date: Fri, 15 Jun 2007 09:52:13 +0000 Subject: [PATCH] Fixed attaching to commands with invalid shared library symbols count. --- debugger.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 1.8.3.1