git://git.jankratochvil.net
/
debugger.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e22c060
)
Fixed attaching to commands with invalid shared library symbols count.
author
lace
<>
Fri, 15 Jun 2007 09:52:13 +0000
(09:52 +0000)
committer
lace
<>
Fri, 15 Jun 2007 09:52:13 +0000
(09:52 +0000)
debugger.c
patch
|
blob
|
history
diff --git
a/debugger.c
b/debugger.c
index
cc39e84
..
43cb370
100644
(file)
--- 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;