mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 04:00:07 +08:00
Add preliminary DWARF2 dumpping capability to readelf.
This commit is contained in:
@ -1,3 +1,35 @@
|
||||
1999-01-27 Nick Clifton <nickc@cygnus.com>
|
||||
|
||||
* version.c: Add 1999 copyright.
|
||||
|
||||
* binutils.texi (readelf): Document new command line options
|
||||
--debug-dump and --histogram.
|
||||
|
||||
* readelf.c: Add ability to display contents of some or all of the
|
||||
Dwarf2 debug sections. {Work only partially completed}.
|
||||
(display_debug_section): New function.
|
||||
(display_debug_info): New function.
|
||||
(display_debug_not_supported): New function.
|
||||
(display_debug_line): New function.
|
||||
(display_debug_abbrev): New function.
|
||||
(process_abbrev_section): New function.
|
||||
(read_leb128): New function.
|
||||
(process_extended_line_op): New function.
|
||||
(get_TAG_name): New function.
|
||||
(get_AT_name): New function.
|
||||
(get_FORM_name): New function.
|
||||
(free_abbrevs): New function.
|
||||
(add_abbrev): New function.
|
||||
(add_abbrev_attr): New function.
|
||||
(read_and_display_attr): New function.
|
||||
(display_block): New function.
|
||||
|
||||
Thu Jan 14 23:36:11 1999 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* coffdump.c (xcalloc): Remove, in libiberty now.
|
||||
* srconv.c (xcalloc): Likewise.
|
||||
* sysdump.c (xcalloc): Likewise.
|
||||
|
||||
1999-01-14 Nick Clifton <nickc@cygnus.com>
|
||||
|
||||
* readelf.c (process_section_headers): Omit trailing space at end
|
||||
|
@ -13,7 +13,7 @@ END-INFO-DIR-ENTRY
|
||||
@end ifinfo
|
||||
|
||||
@ifinfo
|
||||
Copyright @copyright{} 1991, 92, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc.
|
||||
Copyright @copyright{} 1991, 92, 93, 94, 95, 96, 97, 98, 1999 Free Software Foundation, Inc.
|
||||
|
||||
Permission is granted to make and distribute verbatim copies of
|
||||
this manual provided the copyright notice and this permission notice
|
||||
@ -41,7 +41,7 @@ into another language, under the above conditions for modified versions.
|
||||
@c This file documents the GNU binary utilities "ar", "ld", "objcopy",
|
||||
@c "objdump", "nm", "size", "strings", "strip", "readelf" and "ranlib".
|
||||
@c
|
||||
@c Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc.
|
||||
@c Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 1999 Free Software Foundation, Inc.
|
||||
@c
|
||||
@c This text may be freely distributed under the terms of the GNU
|
||||
@c General Public License.
|
||||
@ -2314,12 +2314,15 @@ readelf [ -a | --all ]
|
||||
[ -h | --file-header]
|
||||
[ -l | --program-headers | --segments]
|
||||
[ -S | --section-headers | --sections]
|
||||
[ -s | --symbols]
|
||||
[ -e | --headers]
|
||||
[ -s | --syms | --symbols]
|
||||
[ -r | --relocs]
|
||||
[ -d | --dynamic]
|
||||
[ -V | --version-info]
|
||||
[ -D | --use-dynamic]
|
||||
[ -x <number> | --hex-dump=<number>]
|
||||
[ -w{liap} | --debug-dump{=info,=line,=abbrev,=pubnames}]
|
||||
[ --histogram]
|
||||
[ -v | --version]
|
||||
[ -H | --help]
|
||||
@var{elffile}@dots{}
|
||||
@ -2359,15 +2362,21 @@ has any.
|
||||
|
||||
@item -S
|
||||
@itemx --sections
|
||||
@itemx --section-headers
|
||||
@cindex ELF section information
|
||||
Displays the information contained in the file's section headers, if it
|
||||
has any.
|
||||
|
||||
@item -s
|
||||
@itemx --symbols
|
||||
@itemx --syms
|
||||
@cindex ELF symbol table information
|
||||
Displays the entries in symbol table section of the file, if it has one.
|
||||
|
||||
@item -e
|
||||
@itemx --headers
|
||||
Display all the headers in the file. Equivalent to @samp{-h -l -S}.
|
||||
|
||||
@item -r
|
||||
@itemx --relocs
|
||||
@cindex ELF reloc information
|
||||
@ -2394,6 +2403,16 @@ symbols section.
|
||||
@itemx --hex-dump=<number>
|
||||
Displays the contents of the indicated section as a hexadecimal dump.
|
||||
|
||||
@item -w{lia}
|
||||
@itemx --debug-dump{=line,=info,=abbrev}
|
||||
Displays the contents of the debug sections in the file, if any are
|
||||
present. If one of the optional letters or words follows the switch
|
||||
then only data found in those specific sections will be dumped.
|
||||
|
||||
@item --histogram
|
||||
Display a histogram of bucket list lengths when displaying the contents
|
||||
of the symbol tables.
|
||||
|
||||
@item -v
|
||||
@itemx --version
|
||||
Display the version number of readelf.
|
||||
|
1526
binutils/readelf.c
1526
binutils/readelf.c
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user