try to avoid loop in getting x86_64 stack trace

svn: r12635
This commit is contained in:
Matthew Flatt 2008-11-29 14:18:00 +00:00
parent 2f73042c99
commit f922996173

View File

@ -1470,6 +1470,9 @@ rs_lookup (struct dwarf_rs_cache *cache, struct dwarf_cursor *c)
}
if (rs->coll_chain >= DWARF_UNW_HASH_SIZE)
return 0;
if (!rs->coll_chain)
/* Something went wrong */
return 0;
rs = cache->buckets + rs->coll_chain;
}
}