diff options
author | Nick Clifton <nickc@redhat.com> | 2009-06-24 10:37:35 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2009-06-24 10:37:35 +0000 |
commit | cf13d6995d27492605b42fb8d6bb22659cb35a0b (patch) | |
tree | d31a5e66587f8a03e645c0efd87ba8d652008d91 /binutils/dwarf.c | |
parent | ec3f783efde154039bcf29fca808e70d523953d4 (diff) | |
download | gdb-cf13d6995d27492605b42fb8d6bb22659cb35a0b.zip gdb-cf13d6995d27492605b42fb8d6bb22659cb35a0b.tar.gz gdb-cf13d6995d27492605b42fb8d6bb22659cb35a0b.tar.bz2 |
* dwarf.c (display_debug_lines_raw): Include the name of the
section in warning message.
(struct debug_display): Enable reloc processing for .debug_line
and .debug_ranges sections.
* readelf.c: Add --relocated-dump command line option to dump the
relocated contents of a specified section.
(request_dump): New function.
(parse_args): Use it.
(dump_section_as_bytes): Add parameter to indicate whether the
contents should be relocated.
(target_specific_reloc_handling): Add code for a R_MN10300_16
reloc found after a R_MN10300_SYM_DIFF reloc.
(debug_apply_relocations): Rename to apply_relocations.
(get_section_contents): New function. Replaces common code found
in dump_section_as_strings and dump_section_as_bytes.
* doc/binutils.texi: Document new command line option.
* NEWS: Mention the new feature.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r-- | binutils/dwarf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c index b524d17..1a01e00 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -2145,7 +2145,8 @@ display_debug_lines_raw (struct dwarf_section *section, if (info.li_length + initial_length_size > section->size) { warn - (_("The line info appears to be corrupt - the section is too small\n")); + (_("The information in section %s appears to be corrupt - the section is too small\n"), + section->name); return 0; } @@ -4872,7 +4873,7 @@ struct dwarf_section_display debug_displays[] = { { ".debug_info", ".zdebug_info", NULL, NULL, 0, 0 }, display_debug_info, &do_debug_info, 1, 0 }, { { ".debug_line", ".zdebug_line", NULL, NULL, 0, 0 }, - display_debug_lines, &do_debug_lines, 0, 0 }, + display_debug_lines, &do_debug_lines, 1, 0 }, { { ".debug_pubnames", ".zdebug_pubnames", NULL, NULL, 0, 0 }, display_debug_pubnames, &do_debug_pubnames, 0, 0 }, { { ".eh_frame", "", NULL, NULL, 0, 0 }, @@ -4886,7 +4887,7 @@ struct dwarf_section_display debug_displays[] = { { ".debug_pubtypes", ".zdebug_pubtypes", NULL, NULL, 0, 0 }, display_debug_pubnames, &do_debug_pubnames, 0, 0 }, { { ".debug_ranges", ".zdebug_ranges", NULL, NULL, 0, 0 }, - display_debug_ranges, &do_debug_ranges, 0, 0 }, + display_debug_ranges, &do_debug_ranges, 1, 0 }, { { ".debug_static_func", ".zdebug_static_func", NULL, NULL, 0, 0 }, display_debug_not_supported, NULL, 0, 0 }, { { ".debug_static_vars", ".zdebug_static_vars", NULL, NULL, 0, 0 }, |