From a51b3ccfeb7c675005e3eeacb2dff38c0e100883 Mon Sep 17 00:00:00 2001
From: Bruce Beare <bruce.j.beare@intel.com>
Date: Sun, 23 Oct 2011 00:32:29 -0700
Subject: [PATCH] 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>
---
 debuggerd/symbol_table.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debuggerd/symbol_table.c b/debuggerd/symbol_table.c
index e76df3355d..3ad08a290e 100644
--- a/debuggerd/symbol_table.c
+++ b/debuggerd/symbol_table.c
@@ -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;
     }
 
-- 
GitLab