diff options
author | Cary Coutant <ccoutant@google.com> | 2012-10-24 01:59:39 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2012-10-24 01:59:39 +0000 |
commit | 657d0d47ba7fd3ae014a5b2b6e46ba6c8d1c461a (patch) | |
tree | 7c424d54c503a9756e2c9cb23026f1744794ee3e /binutils/objdump.c | |
parent | c886f0b40c56bf143dbe400c165dba6c64d45e70 (diff) | |
download | gdb-657d0d47ba7fd3ae014a5b2b6e46ba6c8d1c461a.zip gdb-657d0d47ba7fd3ae014a5b2b6e46ba6c8d1c461a.tar.gz gdb-657d0d47ba7fd3ae014a5b2b6e46ba6c8d1c461a.tar.bz2 |
binutils/
* dwarf.c (do_debug_addr, do_debug_cu_index): New global flags.
(load_debug_info): Fix typo.
(cu_tu_indexes_read, shndx_pool, shndx_pool_size, shndx_pool_used):
New global variables.
(prealloc_cu_tu_list, add_shndx_to_cu_tu_entry, end_cu_tu_entry)
(process_cu_tu_index, load_cu_tu_indexes, find_cu_tu_set)
(display_cu_index): New functions.
(dwarf_select_sections_by_names): Add "debug_addr", "cu_index".
Sort entries alphabetically.
(dwarf_select_sections_all): Set do_debug_addr, do_debug_cu_index.
(debug_displays): Add .debug_cu_index, .debug_tu_index.
Clean up formatting.
* dwarf.h (dwarf_section_display_enum): Add dwp_cu_index,
dwp_tu_index.
(do_debug_addr, do_debug_cu_index): New global flags.
(find_cu_tu_set): New function declaration.
* objdump.c (usage): Add --dwarf=addr, --dwarf=cu_index.
* readelf.c (find_section_in_set): New function.
(usage): Add --debug-dump=addr, --debug_dump=cu_index.
(process_section_headers): Check do_debug_addr and do_debug_cu_index.
(section_subset): New global variable.
(load_debug_section): Restrict search to section subset.
(display_debug_section): Add section index as paramter. Select subset
of sections when dumping a .dwp file. Update caller.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r-- | binutils/objdump.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c index 471ca95..9164d83 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -216,7 +216,8 @@ usage (FILE *stream, int status) -W[lLiaprmfFsoRt] or\n\ --dwarf[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,\n\ =frames-interp,=str,=loc,=Ranges,=pubtypes,\n\ - =gdb_index,=trace_info,=trace_abbrev,=trace_aranges]\n\ + =gdb_index,=trace_info,=trace_abbrev,=trace_aranges,\n\ + =addr,=cu_index]\n\ Display DWARF info in the file\n\ -t, --syms Display the contents of the symbol table(s)\n\ -T, --dynamic-syms Display the contents of the dynamic symbol table\n\ |