Permalink
Browse files

debuggerd: Don't look up symbols if stab isn't found

If the symbol table isn't found during tombstone generation, we skip lookups
of addresses on the stack.

Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Nick Kralevich <nnk@google.com>
  • Loading branch information...
1 parent 6306d41 commit a51b3ccfeb7c675005e3eeacb2dff38c0e100883 @bjbeare bjbeare committed with nickkral Oct 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 debuggerd/symbol_table.c
View
@@ -83,7 +83,7 @@ struct symbol_table *symbol_table_create(const char *filename)
dynsym_idx = i;
}
}
- if ((dynsym_idx == -1) && (sym_idx == -1)) {
+ if ((dynsym_idx == -1) || (sym_idx == -1)) {
goto out_unmap;
}

0 comments on commit a51b3cc

Please sign in to comment.