1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-02 12:20:51 +00:00

Never zero-out db_last_symtab. Whan backtraces are done

in parallel in several threads, one symbol lookup could
clear db_last_symtab when another one going to use it as
starting point for traversal.

Approved by:	pjd (mentor)
MFC after:	1 month
This commit is contained in:
Konstantin Belousov 2006-06-16 16:17:52 +00:00
parent 259c768857
commit d48b6d9ad6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159668

View File

@ -230,7 +230,6 @@ db_search_symbol( val, strategy, offp)
c_db_sym_t ret = C_DB_SYM_NULL, sym;
newdiff = diff = ~0;
db_last_symtab = 0;
for (i = 0; i < db_nsymtab; i++) {
sym = X_db_search_symbol(&db_symtabs[i], val, strategy, &newdiff);
if (newdiff < diff) {