summaryrefslogtreecommitdiff
path: root/include/coff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>1999-06-03 02:46:47 +0000
committerRichard Henderson <rth@redhat.com>1999-06-03 02:46:47 +0000
commit0910f5ab09b8b15a86fb0b913b0d07c7165d6308 (patch)
tree21e6d776757bdd1a6b2550a5eddb15d994e81a86 /include/coff
parent15e74690a5fca3a4b84e8302576f61a0e46e69a9 (diff)
downloadgdb-0910f5ab09b8b15a86fb0b913b0d07c7165d6308.tar.gz
David Mosberger <davidm@hpl.hp.com>
* dwarf2.c (struct line_info): Add member END_SEQUENCE to keep track of end_sequence markers. (add_line_info): Add END_SEQUENCE arg. (decode_line_info): Don't try to infer lo_pc and hi_pc from the debug-line info---it doesn't work right if a compilation unit consists of multiple discontiguous code-sequences. It would be worthwhile to optimize for the common case where a compilation unit results in a contiguous set of code sequences, but this is quite tricky to get right for arbitrary DWARF2 files. (lookup_address_in_line_info_table): Don't use the last line entry for a compilation unit for anything with an address higher than this line entry. Also, check for end_sequence markers to correctly handle discontinuities. (_bfd_dwarf2_find_nearest_line): When checking previously loaded compilation units, check all compilation units with each->high==0 just like when reading compilation units. * dwarf2.c (decode_line_info): Initialize table->files and table->last_line to NULL to avoid segfaults due to random values in these members. (concat_filename): Check for out-of-range file number before indexing filename table. Segfaults suck. * dwarf2.c (decode_line_info): Don't truncate address to least significant 32 bits (breaks 64 bit targets). (lookup_address_in_function_table): Ditto. (comp_unit_contains_address): Ditto.
Diffstat (limited to 'include/coff')
0 files changed, 0 insertions, 0 deletions