diff options
author | Nick Clifton <nickc@redhat.com> | 2005-05-23 12:12:00 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-05-23 12:12:00 +0000 |
commit | 41a865baa2a36ea10adadb3f404be567074551bf (patch) | |
tree | bcd20ab90a87f549dc7aa474b621c5b22cfd7700 /binutils | |
parent | 45b134e59387930bfe0b879f8e581bf03bb09ca4 (diff) | |
download | ppe42-binutils-41a865baa2a36ea10adadb3f404be567074551bf.tar.gz ppe42-binutils-41a865baa2a36ea10adadb3f404be567074551bf.zip |
(fetch_indirect_string): Display a warning message when a corrupt
DW_FORM_strp value is encountered.
(process_debug_info): Mention that the compilation unit offset is being
displayed in hexadecimal.
(display_debug_lines): Fix typo in name of .debug_line section.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 10 | ||||
-rw-r--r-- | binutils/readelf.c | 11 |
2 files changed, 17 insertions, 4 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 7a0d2f52cf..2140bd9250 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,13 @@ +2005-05-23 Nick Clifton <nickc@redhat.com> + + * readelf.c (fetch_indirect_string): Display a warning message + when a corrupt DW_FORM_strp value is encountered. + + (process_debug_info): Mention that the compilation unit offset is + being displayed in hexadecimal. + + (display_debug_lines): Fix typo in name of .debug_line section. + 2005-05-19 Zack Weinberg <zack@codesourcery.com> * Makefile.am: Have 'all' depend on 'info'. diff --git a/binutils/readelf.c b/binutils/readelf.c index 21b11a17ce..5dafc510c9 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -7269,7 +7269,10 @@ fetch_indirect_string (unsigned long offset) return _("<no .debug_str section>"); if (offset > debug_str_size) - return _("<offset is too big>"); + { + warn (_("DW_FORM_strp offset too big: %x\n"), offset); + return _("<offset is too big>"); + } return debug_str_contents + offset; } @@ -8800,7 +8803,7 @@ process_debug_info (Elf_Internal_Shdr *section, unsigned char *start, if (!do_loc) { - printf (_(" Compilation Unit @ %lx:\n"), cu_offset); + printf (_(" Compilation Unit @ offset 0x%lx:\n"), cu_offset); printf (_(" Length: %ld\n"), compunit.cu_length); printf (_(" Version: %d\n"), compunit.cu_version); printf (_(" Abbrev Offset: %ld\n"), compunit.cu_abbrev_offset); @@ -9088,7 +9091,7 @@ display_debug_lines (Elf_Internal_Shdr *section, /* Get the pointer size from the comp unit associated with this block of line number information. */ pointer_size = get_pointer_size_and_offset_of_comp_unit - (comp_unit, ".debug_lines", NULL); + (comp_unit, ".debug_line", NULL); comp_unit ++; printf (_(" Length: %ld\n"), info.li_length); @@ -9199,7 +9202,7 @@ display_debug_lines (Elf_Internal_Shdr *section, } data += process_extended_line_op (data, info.li_default_is_stmt, - pointer_size); + pointer_size); break; case DW_LNS_copy: |