git://git.jankratochvil.net
/
debugger.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed attaching to commands with invalid shared library symbols count.
[debugger.git]
/
debugger.c
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);
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);
assert (sym_count >= 0);
-#endif
+
for (ndx = 0; ndx < sym_count; ndx++)
{
const char *name_got;
for (ndx = 0; ndx < sym_count; ndx++)
{
const char *name_got;