diff options
author | Nick Clifton <nickc@redhat.com> | 2013-09-12 09:14:47 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-09-12 09:14:47 +0000 |
commit | bf5117e32d50399e78fef3b9d776683b275d924d (patch) | |
tree | 13453db39c59912c8e45f5638762e56fc9aa97ce /ld/testsuite/ld-elf | |
parent | 1aa4cd774ca674ee6061e2068a410bb67c8bc812 (diff) | |
download | gdb-bf5117e32d50399e78fef3b9d776683b275d924d.zip gdb-bf5117e32d50399e78fef3b9d776683b275d924d.tar.gz gdb-bf5117e32d50399e78fef3b9d776683b275d924d.tar.bz2 |
* dwarf.c (dwarf_vmatoa): Rename to dwarf_vmatoa_1 and add a
precision parameter.
(dwarf_vmatoa): New wrapper for dwarf_vmatoa_1.
(print_dwarf_vma): Use dwarf_vmatoa_1.
(SAFE_BYTE_GET): Add check that VAL is big enough to contain
AMOUNT bytes.
(process_debug_info): Use an unsigned int for the offset size.
(process_debug_pubnames): Likewise.
(display_debug_aranges): Likewise.
(struct Frame_Chunk): Use dwarf_vma type for pc_begin and pc_range
fields.
(frame_display_row): Use print_dwarf_vma to display dwarf_vma
values.
(display_debug_frames): Likewise.
* binutils-all/x86-64/compressed-1a.d: Update expected output to
allow for 64-bit addresses.
* ld-elf/eh1.d: Update expected output to allow for
64-bit addresses.
* ld-elf/eh2.d: Likewise.
* ld-elf/eh3.d: Likewise.
* ld-elf/eh4.d: Likewise.
* ld-elf/eh5.d: Likewise.
* ld-elf/eh6.d: Likewise.
* ld-mips-elf/eh-frame1-n64.d: Likewise.
* ld-mips-elf/eh-frame2-n64.d: Likewise.
* ld-mips-elf/eh-frame3.d: Likewise.
* gas/cfi/cfi-alpha-1.d: Update expected output to allow for
64-bit addresses.
* gas/cfi/cfi-alpha-3.d: Likewise.
* gas/cfi/cfi-arm-1.d: Likewise.
* gas/cfi/cfi-common-1.d: Likewise.
* gas/cfi/cfi-common-2.d: Likewise.
* gas/cfi/cfi-common-3.d: Likewise.
* gas/cfi/cfi-common-4.d: Likewise.
* gas/cfi/cfi-common-5.d: Likewise.
* gas/cfi/cfi-common-6.d: Likewise.
* gas/cfi/cfi-common-7.d: Likewise.
* gas/cfi/cfi-hppa-1.d: Likewise.
* gas/cfi/cfi-i386-2.d: Likewise.
* gas/cfi/cfi-i386.d: Likewise.
* gas/cfi/cfi-m68k.d: Likewise.
* gas/cfi/cfi-mips-1.d: Likewise.
* gas/cfi/cfi-ppc-1.d: Likewise.
* gas/cfi/cfi-s390-1.d: Likewise.
* gas/cfi/cfi-s390x-1.d: Likewise.
* gas/cfi/cfi-sh-1.d: Likewise.
* gas/cfi/cfi-sparc-1.d: Likewise.
* gas/cfi/cfi-sparc64-1.d: Likewise.
* gas/cfi/cfi-x86_64.d: Likewise.
Diffstat (limited to 'ld/testsuite/ld-elf')
-rw-r--r-- | ld/testsuite/ld-elf/eh1.d | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/eh2.d | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/eh3.d | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/eh4.d | 12 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/eh5.d | 36 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/eh6.d | 2 |
6 files changed, 40 insertions, 40 deletions
diff --git a/ld/testsuite/ld-elf/eh1.d b/ld/testsuite/ld-elf/eh1.d index 4455b0d..bdf84cc 100644 --- a/ld/testsuite/ld-elf/eh1.d +++ b/ld/testsuite/ld-elf/eh1.d @@ -7,7 +7,7 @@ Contents of the .eh_frame section: -00000000 00000014 00000000 CIE +0+0000 0+014 0+0000 CIE Version: 1 Augmentation: "" Code alignment factor: 1 @@ -23,12 +23,12 @@ Contents of the .eh_frame section: DW_CFA_nop DW_CFA_nop -00000018 0000001c 0000001c FDE cie=00000000 pc=00400078..00400078 - DW_CFA_advance_loc: 0 to 00400078 +0+0018 0+001c 0+001c FDE cie=0+0000 pc=0+400078..0+400078 + DW_CFA_advance_loc: 0 to 0+400078 DW_CFA_def_cfa_offset: 16 DW_CFA_offset: r6 \(rbp\) at cfa-16 - DW_CFA_advance_loc: 0 to 00400078 + DW_CFA_advance_loc: 0 to 0+400078 DW_CFA_def_cfa_register: r6 \(rbp\) -00000038 ZERO terminator +0+0038 ZERO terminator diff --git a/ld/testsuite/ld-elf/eh2.d b/ld/testsuite/ld-elf/eh2.d index c5b5a73..65ad448 100644 --- a/ld/testsuite/ld-elf/eh2.d +++ b/ld/testsuite/ld-elf/eh2.d @@ -7,7 +7,7 @@ Contents of the .eh_frame section: -00000000 00000014 00000000 CIE +0+0000 0+0014 0+0000 CIE Version: 1 Augmentation: "" Code alignment factor: 1 @@ -23,12 +23,12 @@ Contents of the .eh_frame section: DW_CFA_nop DW_CFA_nop -00000018 0000001c 0000001c FDE cie=00000000 pc=00400078..00400078 - DW_CFA_advance_loc: 0 to 00400078 +0+0018 0+001c 0+001c FDE cie=0+0000 pc=0+400078..0+400078 + DW_CFA_advance_loc: 0 to 0+400078 DW_CFA_def_cfa_offset: 16 DW_CFA_offset: r6 \(rbp\) at cfa-16 - DW_CFA_advance_loc: 0 to 00400078 + DW_CFA_advance_loc: 0 to 0+400078 DW_CFA_def_cfa_register: r6 \(rbp\) -00000038 ZERO terminator +0+0038 ZERO terminator diff --git a/ld/testsuite/ld-elf/eh3.d b/ld/testsuite/ld-elf/eh3.d index b3bd756..2d322dd 100644 --- a/ld/testsuite/ld-elf/eh3.d +++ b/ld/testsuite/ld-elf/eh3.d @@ -7,7 +7,7 @@ Contents of the .eh_frame section: -00000000 00000014 00000000 CIE +0+0000 0+0014 0+0000 CIE Version: 1 Augmentation: "" Code alignment factor: 1 @@ -23,12 +23,12 @@ Contents of the .eh_frame section: DW_CFA_nop DW_CFA_nop -00000018 0000001c 0000001c FDE cie=00000000 pc=00400078..00400078 - DW_CFA_advance_loc: 0 to 00400078 +0+0018 0+001c 0+001c FDE cie=0+0000 pc=0+400078..0+400078 + DW_CFA_advance_loc: 0 to 0+400078 DW_CFA_def_cfa_offset: 16 DW_CFA_offset: r6 \(rbp\) at cfa-16 - DW_CFA_advance_loc: 0 to 00400078 + DW_CFA_advance_loc: 0 to 0+400078 DW_CFA_def_cfa_register: r6 \(rbp\) -00000038 ZERO terminator +0+0038 ZERO terminator #pass diff --git a/ld/testsuite/ld-elf/eh4.d b/ld/testsuite/ld-elf/eh4.d index fe3e84b..b5eec2f 100644 --- a/ld/testsuite/ld-elf/eh4.d +++ b/ld/testsuite/ld-elf/eh4.d @@ -7,7 +7,7 @@ Contents of the .eh_frame section: -00000000 00000014 00000000 CIE +0+0000 0+0014 0+0000 CIE Version: 1 Augmentation: "zR" Code alignment factor: 1 @@ -20,15 +20,15 @@ Contents of the .eh_frame section: DW_CFA_nop DW_CFA_nop -00000018 00000014 0000001c FDE cie=00000000 pc=00000400..00000413 - DW_CFA_set_loc: 00000404 +0+0018 0+0014 0+001c FDE cie=0+0000 pc=0+0400..0+0413 + DW_CFA_set_loc: 0+0404 DW_CFA_def_cfa_offset: 80 -00000030 00000014 00000034 FDE cie=00000000 pc=00000413..00000426 - DW_CFA_set_loc: 00000417 +0+0030 0+0014 0+0034 FDE cie=0+0000 pc=0+0413..0+0426 + DW_CFA_set_loc: 0+0417 DW_CFA_def_cfa_offset: 80 -00000048 00000024 0000004c FDE cie=00000000 pc=[0-9a-f]+\.\.[0-9a-f]+ +0+0048 0+0024 0+004c FDE cie=0+0000 pc=[0-9a-f]+\.\.[0-9a-f]+ DW_CFA_def_cfa_offset: 16 DW_CFA_advance_loc: [0-9a-f]+ to [0-9a-f]+ DW_CFA_def_cfa_offset: 24 diff --git a/ld/testsuite/ld-elf/eh5.d b/ld/testsuite/ld-elf/eh5.d index f862382..9fea117 100644 --- a/ld/testsuite/ld-elf/eh5.d +++ b/ld/testsuite/ld-elf/eh5.d @@ -8,7 +8,7 @@ Contents of the .eh_frame section: -00000000 0000001[04] 00000000 CIE +0+0000 0+001[04] 0+0000 CIE Version: 1 Augmentation: "zR" Code alignment factor: .* @@ -20,14 +20,14 @@ Contents of the .eh_frame section: DW_CFA_nop DW_CFA_nop #... -0000001[48] 00000014 0000001[8c] FDE cie=00000000 pc=.* +0+001[48] 0+0014 0+001[8c] FDE cie=0+0000 pc=.* DW_CFA_advance_loc: 4 to .* DW_CFA_def_cfa: r0( \([er]ax\)|) ofs 16 DW_CFA_nop DW_CFA_nop DW_CFA_nop -000000(2c|30) 00000014 00000000 CIE +0+00(2c|30) 0+0014 0+0000 CIE Version: 1 Augmentation: "zPR" Code alignment factor: .* @@ -37,21 +37,21 @@ Contents of the .eh_frame section: DW_CFA_nop -0000004[48] 00000014 0000001c FDE cie=000000(2c|30) pc=.* +0+004[48] 0+0014 0+001c FDE cie=0+00(2c|30) pc=.* DW_CFA_advance_loc: 4 to .* DW_CFA_def_cfa: r0( \([er]ax\)|) ofs 16 DW_CFA_nop DW_CFA_nop DW_CFA_nop -000000(5c|60) 00000014 0000006[04] FDE cie=00000000 pc=.* +0+00(5c|60) 0+0014 0+006[04] FDE cie=0+0000 pc=.* DW_CFA_advance_loc: 4 to .* DW_CFA_def_cfa: r0( \([er]ax\)|) ofs 16 DW_CFA_nop DW_CFA_nop DW_CFA_nop -0000007[48] 0000001[8c] 00000000 CIE +0+007[48] 0+001[8c] 0+0000 CIE Version: 1 Augmentation: "zPLR" Code alignment factor: .* @@ -63,7 +63,7 @@ Contents of the .eh_frame section: DW_CFA_nop DW_CFA_nop #... -0000009[08] 0000001c 0000002[04] FDE cie=0000007[48] pc=.* +0+009[08] 0+001c 0+002[04] FDE cie=0+007[48] pc=.* Augmentation data: (ef be ad de 00 00 00 00|00 00 00 00 de ad be ef) DW_CFA_advance_loc: 4 to .* @@ -72,7 +72,7 @@ Contents of the .eh_frame section: DW_CFA_nop DW_CFA_nop -000000b[08] 0000001[04] 00000000 CIE +0+00b[08] 0+001[04] 0+0000 CIE Version: 1 Augmentation: "zR" Code alignment factor: .* @@ -82,12 +82,12 @@ Contents of the .eh_frame section: DW_CFA_def_cfa: r0( \([er]ax\)|) ofs 16 #... -000000(c4|d0) 0000001[04] 0000001[8c] FDE cie=000000b[08] pc=.* +0+00(c4|d0) 0+001[04] 0+001[8c] FDE cie=0+00b[08] pc=.* DW_CFA_nop DW_CFA_nop DW_CFA_nop #... -000000[de]8 00000014 00000000 CIE +0+00[de]8 0+0014 0+0000 CIE Version: 1 Augmentation: "zPR" Code alignment factor: .* @@ -97,19 +97,19 @@ Contents of the .eh_frame section: DW_CFA_nop -00000(0f|10)0 00000014 0000001c FDE cie=000000[de]8 pc=.* +0+0(0f|10)0 0+0014 0+001c FDE cie=0+00[de]8 pc=.* DW_CFA_advance_loc: 4 to .* DW_CFA_def_cfa: r0( \([er]ax\)|) ofs 16 DW_CFA_nop DW_CFA_nop DW_CFA_nop -000001[01]8 0000001[04] 000000(5c|64) FDE cie=000000b[08] pc=.* +0+01[01]8 0+001[04] 0+00(5c|64) FDE cie=0+00b[08] pc=.* DW_CFA_nop DW_CFA_nop DW_CFA_nop #... -000001(1c|30) 0000001[8c] 00000000 CIE +0+01(1c|30) 0+001[8c] 0+0000 CIE Version: 1 Augmentation: "zPLR" Code alignment factor: .* @@ -121,7 +121,7 @@ Contents of the .eh_frame section: DW_CFA_nop DW_CFA_nop #... -000001(38|50) 0000001c 0000002[04] FDE cie=000001(1c|30) pc=.* +0+01(38|50) 0+001c 0+002[04] FDE cie=0+01(1c|30) pc=.* Augmentation data: (ef be ad de 00 00 00 00|00 00 00 00 de ad be ef) DW_CFA_advance_loc: 4 to .* @@ -130,28 +130,28 @@ Contents of the .eh_frame section: DW_CFA_nop DW_CFA_nop -000001(58|70) 00000014 000001(5c|74) FDE cie=00000000 pc=.* +0+01(58|70) 0+0014 0+01(5c|74) FDE cie=0+0000 pc=.* DW_CFA_advance_loc: 4 to .* DW_CFA_def_cfa: r0( \([er]ax\)|) ofs 16 DW_CFA_nop DW_CFA_nop DW_CFA_nop #... -000001(70|88) 00000014 00000(01c|148|15c) FDE cie=00000(02c|030|170) pc=.* +0+01(70|88) 0+0014 0+0(01c|148|15c) FDE cie=0+0(02c|030|170) pc=.* DW_CFA_advance_loc: 4 to .* DW_CFA_def_cfa: r0( \([er]ax\)|) ofs 16 DW_CFA_nop DW_CFA_nop DW_CFA_nop -000001(88|a0) 00000014 000001(8c|a4) FDE cie=00000000 pc=.* +0+01(88|a0) 0+0014 0+01(8c|a4) FDE cie=0+0000 pc=.* DW_CFA_advance_loc: 4 to .* DW_CFA_def_cfa: r0( \([er]ax\)|) ofs 16 DW_CFA_nop DW_CFA_nop DW_CFA_nop #... -000001(a0|b8|d4) 0000001c 00000(020|130|144) FDE cie=00000(074|078|1b8) pc=.* +0+01(a0|b8|d4) 0+001c 0+0(020|130|144) FDE cie=0+0(074|078|1b8) pc=.* Augmentation data: (ef be ad de 00 00 00 00|00 00 00 00 de ad be ef) DW_CFA_advance_loc: 4 to .* diff --git a/ld/testsuite/ld-elf/eh6.d b/ld/testsuite/ld-elf/eh6.d index 32a5473..7812af2 100644 --- a/ld/testsuite/ld-elf/eh6.d +++ b/ld/testsuite/ld-elf/eh6.d @@ -5,7 +5,7 @@ Contents of the .eh_frame section: -00000000 0000001[4c] 00000000 CIE +0+0000 0+001[4c] 0+0000 CIE Version: 1 Augmentation: "zPR" Code alignment factor: 1 |