Ticket #2806: 20081006-nth_symbol.diff
File 20081006-nth_symbol.diff, 539 bytes (added by , 16 years ago) |
---|
-
elf.cpp
1834 1835 // iterate through all the hash buckets until we've found the one 1835 1836 for (i = 0; i < HASHTABSIZE(image); i++) { 1836 1837 for (j = HASHBUCKETS(image)[i]; j != STN_UNDEF; j = HASHCHAINS(image)[j]) { 1837 struct Elf32_Sym *symbol = &image->syms[ i];1838 struct Elf32_Sym *symbol = &image->syms[j]; 1838 1839 1839 1840 if (count == num) { 1840 1841 strlcpy(nameBuffer, SYMNAME(image, symbol), *_nameLength);