diff options
author | Nick Clifton <nickc@redhat.com> | 2007-08-30 13:47:35 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2007-08-30 13:47:35 +0000 |
commit | 09c11c861badb766bb5140bac0e7dba017730f8a (patch) | |
tree | 5b7b48e4c200d899cd764acd3034a3dcab2f59a9 /binutils/doc | |
parent | 7cd410025fbd4fcb002cebdf40fdcf17f8d70162 (diff) | |
download | gdb-09c11c861badb766bb5140bac0e7dba017730f8a.zip gdb-09c11c861badb766bb5140bac0e7dba017730f8a.tar.gz gdb-09c11c861badb766bb5140bac0e7dba017730f8a.tar.bz2 |
* readelf.c (dump_type): New type used to classify the kinds of dump requested by the user.
(dump_sects, cmdline_dump_sects): Use the new type.
(options): Add --string-dump option.
(request_dump): Rename to request_dump_bynumber. Use dump_type.
(request_dump_byname): Use dump_type.
(parse_args): Parse --string-dump option.
(process_section_headers): Fix calls to request_dump.
(initialise_dumps_byname): Likewise.
(dump_section): Rename to dump_section_as_bytes.
(dump_section_as_strings): New function. Display the contents of a section as printable strings.
(process_section_contents): String dump the section if requested.
(process_object): Use dump_type.
(main): Likewise.
* Makefile.am: Add dependency for readelf.c on safe-ctype.h.
* Makefile.in: Regenerate.
* NEWS: Mention the new feature.
* doc/binutils.texi: Document the new feature.
* testsuite/binutils-all/dumptest.s: New test file.
* testsuite/binutils-all/readelf.exp: Add test of readelf's -p switch.
Diffstat (limited to 'binutils/doc')
-rw-r--r-- | binutils/doc/Makefile.in | 4 | ||||
-rw-r--r-- | binutils/doc/binutils.texi | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/binutils/doc/Makefile.in b/binutils/doc/Makefile.in index d258024..8136d2a 100644 --- a/binutils/doc/Makefile.in +++ b/binutils/doc/Makefile.in @@ -282,9 +282,9 @@ $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__confi exit 1;; \ esac; \ done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --cygnus doc/Makefile'; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \ cd $(top_srcdir) && \ - $(AUTOMAKE) --cygnus doc/Makefile + $(AUTOMAKE) --foreign doc/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi index 52787f7..a2768bf 100644 --- a/binutils/doc/binutils.texi +++ b/binutils/doc/binutils.texi @@ -3601,6 +3601,7 @@ readelf [@option{-a}|@option{--all}] [@option{-A}|@option{--arch-specific}] [@option{-D}|@option{--use-dynamic}] [@option{-x} <number or name>|@option{--hex-dump=}<number or name>] + [@option{-p} <number or name>|@option{--string-dump=}<number or name>] [@option{-w[liaprmfFsoR]}| @option{--debug-dump}[=line,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=loc,=Ranges]] [@option{-I}|@option{-histogram}] @@ -3726,6 +3727,12 @@ Displays the contents of the indicated section as a hexadecimal dump. A number identifies a particular section by index in the section table; any other string identifies all sections with that name in the object file. +@item -p <number or name> +@itemx --string-dump=<number or name> +Displays the contents of the indicated section as printable strings. +A number identifies a particular section by index in the section table; +any other string identifies all sections with that name in the object file. + @item -w[liaprmfFsoR] @itemx --debug-dump[=line,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=loc,=Ranges] Displays the contents of the debug sections in the file, if any are |