diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-08-02 13:42:59 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-08-02 13:42:59 +0000 |
commit | 399c99f739767af94870e8fde027f9f0473fad16 (patch) | |
tree | 1b34877bcc1c218b02f1ec813975d6a503d8c1bc /gas | |
parent | ccce17b060f58e5bf38ac70ac972438af2e0f299 (diff) | |
download | gdb-399c99f739767af94870e8fde027f9f0473fad16.zip gdb-399c99f739767af94870e8fde027f9f0473fad16.tar.gz gdb-399c99f739767af94870e8fde027f9f0473fad16.tar.bz2 |
Display null bytes in DWARF debug info
binutils/
PR binutils/14420
* dwarf.c (process_abbrev_section): Add attribute terminator.
Warn missing section terminator.
(get_FORM_name): Special check for 0 value.
(get_AT_name): Likewise.
(process_debug_info): Display zero abbrev number. Check
attribute terminator.
binutils/testsuite/
PR binutils/14420
* binutils-all/i386/compressed-1a.d: Updated.
* binutils-all/objdump.W: Likewise.
* binutils-all/readelf.wa: Likewise.
* binutils-all/x86-64/compressed-1a.d: Likewise.
gas/testsuite/
PR binutils/14420
* gas/elf/dwarf2-1.d: Updated.
* gas/elf/dwarf2-2.d: Likwise.
* gas/i386/dw2-compress-1.d: Likwise.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/dwarf2-1.d | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/dwarf2-2.d | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/dw2-compress-1.d | 4 |
4 files changed, 19 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 2601cc1..b9635ac 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2012-08-02 H.J. Lu <hongjiu.lu@intel.com> + + PR binutils/14420 + * gas/elf/dwarf2-1.d: Updated. + * gas/elf/dwarf2-2.d: Likwise. + * gas/i386/dw2-compress-1.d: Likwise. + 2012-08-01 James Lemke <jwlemke@codesourcery.com> * gas/cfi/cfi-ppc-1.d: Allow for code alignment of 2 or 4. diff --git a/gas/testsuite/gas/elf/dwarf2-1.d b/gas/testsuite/gas/elf/dwarf2-1.d index ff0ff74..1a6b0ca 100644 --- a/gas/testsuite/gas/elf/dwarf2-1.d +++ b/gas/testsuite/gas/elf/dwarf2-1.d @@ -30,6 +30,7 @@ Contents of the .[z]?debug_info section: <4b> DW_AT_name : int <4f> DW_AT_byte_size : 4 <50> DW_AT_encoding : 5 \(signed\) + <1><51>: Abbrev Number: 0 Raw dump of debug contents of section .[z]?debug_line: @@ -85,6 +86,7 @@ Contents of the .[z]?debug_abbrev section: DW_AT_name DW_FORM_string DW_AT_producer DW_FORM_string DW_AT_language DW_FORM_data1 + DW_AT value: 0 DW_FORM value: 0 2 DW_TAG_subprogram \[no children\] DW_AT_external DW_FORM_flag DW_AT_decl_file DW_FORM_data1 @@ -94,8 +96,10 @@ Contents of the .[z]?debug_abbrev section: DW_AT_low_pc DW_FORM_addr DW_AT_high_pc DW_FORM_addr DW_AT_frame_base DW_FORM_block1 + DW_AT value: 0 DW_FORM value: 0 3 DW_TAG_base_type \[no children\] DW_AT_name DW_FORM_string DW_AT_byte_size DW_FORM_data1 DW_AT_encoding DW_FORM_data1 + DW_AT value: 0 DW_FORM value: 0 diff --git a/gas/testsuite/gas/elf/dwarf2-2.d b/gas/testsuite/gas/elf/dwarf2-2.d index 2feafa6..a463acc 100644 --- a/gas/testsuite/gas/elf/dwarf2-2.d +++ b/gas/testsuite/gas/elf/dwarf2-2.d @@ -30,6 +30,7 @@ Contents of the .[z]?debug_info section: <4b> DW_AT_name : int <4f> DW_AT_byte_size : 4 <50> DW_AT_encoding : 5 \(signed\) + <1><51>: Abbrev Number: 0 Raw dump of debug contents of section .[z]?debug_line: @@ -85,6 +86,7 @@ Contents of the .[z]?debug_abbrev section: DW_AT_name DW_FORM_string DW_AT_producer DW_FORM_string DW_AT_language DW_FORM_data1 + DW_AT value: 0 DW_FORM value: 0 2 DW_TAG_subprogram \[no children\] DW_AT_external DW_FORM_flag DW_AT_decl_file DW_FORM_data1 @@ -94,8 +96,10 @@ Contents of the .[z]?debug_abbrev section: DW_AT_low_pc DW_FORM_addr DW_AT_high_pc DW_FORM_addr DW_AT_frame_base DW_FORM_block1 + DW_AT value: 0 DW_FORM value: 0 3 DW_TAG_base_type \[no children\] DW_AT_name DW_FORM_string DW_AT_byte_size DW_FORM_data1 DW_AT_encoding DW_FORM_data1 + DW_AT value: 0 DW_FORM value: 0 diff --git a/gas/testsuite/gas/i386/dw2-compress-1.d b/gas/testsuite/gas/i386/dw2-compress-1.d index 06057ca..64e2559 100644 --- a/gas/testsuite/gas/i386/dw2-compress-1.d +++ b/gas/testsuite/gas/i386/dw2-compress-1.d @@ -29,6 +29,7 @@ Contents of the .zdebug_info section: <4b> DW_AT_name : int <4f> DW_AT_byte_size : 4 <50> DW_AT_encoding : 5 \(signed\) + <1><51>: Abbrev Number: 0 Contents of the .zdebug_abbrev section: @@ -40,6 +41,7 @@ Contents of the .zdebug_abbrev section: DW_AT_name DW_FORM_string DW_AT_producer DW_FORM_string DW_AT_language DW_FORM_data1 + DW_AT value: 0 DW_FORM value: 0 2 DW_TAG_subprogram \[no children\] DW_AT_external DW_FORM_flag DW_AT_decl_file DW_FORM_data1 @@ -49,10 +51,12 @@ Contents of the .zdebug_abbrev section: DW_AT_low_pc DW_FORM_addr DW_AT_high_pc DW_FORM_addr DW_AT_frame_base DW_FORM_block1 + DW_AT value: 0 DW_FORM value: 0 3 DW_TAG_base_type \[no children\] DW_AT_name DW_FORM_string DW_AT_byte_size DW_FORM_data1 DW_AT_encoding DW_FORM_data1 + DW_AT value: 0 DW_FORM value: 0 Raw dump of debug contents of section .zdebug_line: |