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/testsuite/binutils-all/dumptest.s | |
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/testsuite/binutils-all/dumptest.s')
-rw-r--r-- | binutils/testsuite/binutils-all/dumptest.s | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/dumptest.s b/binutils/testsuite/binutils-all/dumptest.s new file mode 100644 index 0000000..6335d22 --- /dev/null +++ b/binutils/testsuite/binutils-all/dumptest.s @@ -0,0 +1,2 @@ + .data + .ascii "test_string" |