diff options
author | Nick Clifton <nickc@redhat.com> | 1999-01-29 11:16:08 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 1999-01-29 11:16:08 +0000 |
commit | 6869092ea1f5d099312de2dd8f63667d4bcc65a8 (patch) | |
tree | e42e23c5865a5cc95bcf530cf94db72a14871948 /binutils | |
parent | 1b977c7dbf9ce54760af34b800d13ce9009f6246 (diff) | |
download | gdb-6869092ea1f5d099312de2dd8f63667d4bcc65a8.zip gdb-6869092ea1f5d099312de2dd8f63667d4bcc65a8.tar.gz gdb-6869092ea1f5d099312de2dd8f63667d4bcc65a8.tar.bz2 |
Add tests for readelf's Dwarf2 dumping feature.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/testsuite/ChangeLog | 1 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/.Sanitize | 6 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/readelf.wi | 41 |
3 files changed, 48 insertions, 0 deletions
diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog index 6b40b62..de703b7 100644 --- a/binutils/testsuite/ChangeLog +++ b/binutils/testsuite/ChangeLog @@ -7,6 +7,7 @@ * binutils-all/readelf.s: New file: Expected results for 'readelf -S' * binutils-all/readelf.ss: New file: Expected results for 'readelf -s' * binutils-all/readelf.r: New file: Expected results for 'readelf -r' + * binutils-all/readelf.wi: New file: Expected results for 'readelf -wi' Wed Dec 9 19:11:39 1998 Jeffrey A Law (law@cygnus.com) diff --git a/binutils/testsuite/binutils-all/.Sanitize b/binutils/testsuite/binutils-all/.Sanitize index c2e625d1..19c7575 100644 --- a/binutils/testsuite/binutils-all/.Sanitize +++ b/binutils/testsuite/binutils-all/.Sanitize @@ -29,6 +29,12 @@ hppa nm.exp objcopy.exp objdump.exp +readelf.exp +readelf.h +readelf.s +readelf.ss +readelf.r +readelf.wi size.exp testprog.c diff --git a/binutils/testsuite/binutils-all/readelf.wi b/binutils/testsuite/binutils-all/readelf.wi new file mode 100644 index 0000000..1fe3b7c --- /dev/null +++ b/binutils/testsuite/binutils-all/readelf.wi @@ -0,0 +1,41 @@ +The section .debug_info contains: + + Compilation Unit: + Length: .* + Version: 2 + Abbrev Offset: 0 + Pointer Size: 4 + Abbrev Number: 1 \(DW_TAG_compile_unit\) + DW_AT_name : .*/testprog.c + DW_AT_comp_dir : .*/binutils + DW_AT_producer : GNU C .* + DW_AT_language : 1 \(ANSI C\) + DW_AT_low_pc : 0 + DW_AT_high_pc : .* + DW_AT_stmt_list : 0 + Abbrev Number: 2 \(DW_TAG_subprogram\) + DW_AT_external : 1 + DW_AT_name : fn + DW_AT_decl_file : 1 + DW_AT_decl_line : a + DW_AT_type : .* + DW_AT_low_pc : 0 + DW_AT_high_pc : .* + DW_AT_frame_base : 1 byte block: .* + Abbrev Number: 3 \(DW_TAG_base_type\) + DW_AT_name : int + DW_AT_byte_size : 4 + DW_AT_encoding : 5 + Abbrev Number: 4 \(DW_TAG_subprogram\) + DW_AT_sibling : .* + DW_AT_external : 1 + DW_AT_name : main + DW_AT_decl_file : 1 + DW_AT_decl_line : 10 + DW_AT_type : .* + DW_AT_low_pc : .* + DW_AT_high_pc : .* + DW_AT_frame_base : 1 byte block: .* + Abbrev Number: 5 \(DW_TAG_lexical_block\) + DW_AT_low_pc : .* + DW_AT_high_pc : .* |