diff options
author | Cary Coutant <ccoutant@google.com> | 2012-05-11 18:18:34 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2012-05-11 18:18:34 +0000 |
commit | 4723351a020971562868ce3d500be1824e820a51 (patch) | |
tree | 28bbdf737a49a2fc81caef9aee9092d3459eb3fa /binutils/doc/binutils.texi | |
parent | 6dea1fbd79e621463ba1eba5b4b417ecdf16b3eb (diff) | |
download | gdb-4723351a020971562868ce3d500be1824e820a51.zip gdb-4723351a020971562868ce3d500be1824e820a51.tar.gz gdb-4723351a020971562868ce3d500be1824e820a51.tar.bz2 |
* doc/binutils.texi: Add --dwarf-check option.
* dwarf.c (dwarf_check): New global flag.
(fetch_indexed_string): New function.
(fetch_indexed_value): New function.
(get_FORM_name): Add DW_FORM_GNU_str_index and DW_FORM_GNU_addr_index.
(decode_location_expression): Add DW_OP_GNU_addr_index.
(read_and_display_attr_value): Add DW_FORM_GNU_str_index,
DW_FORM_GNU_addr_index, DW_AT_GNU_addr_base, and DW_AT_GNU_ranges_base.
(get_AT_name): Add new attributes for Fission.
(process_debug_info): Load new debug sections for Fission.
(load_debug_info): Check for .debug_info.dwo section.
(display_loc_list, display_loc_list_dwo): New functions.
(display_debug_loc): Move logic to above two functions.
(display_debug_info): Choose abbrev section based on info section.
(display_debug_types): Likewise.
(display_trace_info): Likewise.
(comp_addr_base): New function.
(display_debug_addr): New function.
(display_debug_str_offsets): New function.
(display_debug_ranges): Allow missing range lists. Suppress
diagnostics if dwarf_check not set.
(debug_displays): Add column to select abbrev section.
* dwarf.h (enum dwarf_section_display_enum): Add new debug sections
for Fission.
(struct dwarf_section): Add abbrev_sec field.
(struct dwarf_section_display): New type.
(debug_info): Add addr_base, ranges_base fields.
(dwarf_check): New global variable.
* objdump.c (usage): Add --dwarf-check option.
(enum option_values): Add OPTION_DWARF_CHECK.
(long_options): Add --dwarf-check.
(main): Likewise.
* readelf.c (OPTION_DWARF_CHECK): New macro.
(options): Add --dwarf-check.
(parse_args): Likewise.
(process_section_headers): Use const_strneq instead of
streq.
Diffstat (limited to 'binutils/doc/binutils.texi')
-rw-r--r-- | binutils/doc/binutils.texi | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi index daa191a..9826eb2 100644 --- a/binutils/doc/binutils.texi +++ b/binutils/doc/binutils.texi @@ -2198,7 +2198,8 @@ Note that there is no single letter option to display the content of trace sections or .gdb_index. Note: the output from the @option{=info} option can also be affected -by the options @option{--dwarf-depth} and @option{--dwarf-start}. +by the options @option{--dwarf-depth}, the @option{--dwarf-start} and +the @option{--dwarf-check}. @item --dwarf-depth=@var{n} Limit the dump of the @code{.debug_info} section to @var{n} children. @@ -2219,6 +2220,9 @@ siblings and children of the specified DIE will be printed. This can be used in conjunction with @option{--dwarf-depth}. +@item --dwarf-check +Enable additional checks for consistency of Dwarf information. + @item -G @itemx --stabs @cindex stab |