|
From: Nicholas N. <nj...@ca...> - 2003-11-13 22:34:31
|
CVS commit by nethercote: Greatly improved the symbol table reading code. It was a kludgy, accreted mess. Pulled the symbol table reading bit out of vg_read_lib_symbols() into read_symtab(), in the process removing the awful twice-only loop used to read the symbol table and the dynamic symbol table. Factored out the code used to find sections of interest (eg. .strtab, .symtab, .stabs, .plt, etc), replacing nine (yes, nine) individual and slightly differing searches. It's now much easier to understand, 132 lines shorter, and provides a better base for easily doing more complicated debug stuff, eg. when we start reading in all the debugging info (such as .debug_info for dwarf2). M +250 -342 vg_symtab2.c 1.57 |