diff options
author | Richard Henderson <rth@redhat.com> | 2008-08-21 19:49:02 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 2008-08-21 19:49:02 +0000 |
commit | aa8d5e4592d560eb7b1dd04ed8d9254b43d6f929 (patch) | |
tree | dc094e2ec8dd48bf7a60be57a3e81c8cf7191f8d | |
parent | 85acf597335f854b4a7359267ca39a311fe20c4d (diff) | |
download | gdb-aa8d5e4592d560eb7b1dd04ed8d9254b43d6f929.zip gdb-aa8d5e4592d560eb7b1dd04ed8d9254b43d6f929.tar.gz gdb-aa8d5e4592d560eb7b1dd04ed8d9254b43d6f929.tar.bz2 |
* gas/cfi/cfi-common-1.d: Allow for differing offsets, and
for DW_CFA_offset_extended_sf results. Allow for differing nops.
* gas/cfi/cfi-hppa-1.d: Invert data alignment sign. Change
offsets to match 64-bit offsets.
* gas/cfi/cfi.exp: Don't run common tests on hppa64.
-rw-r--r-- | gas/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gas/testsuite/gas/cfi/cfi-common-1.d | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/cfi/cfi-hppa-1.d | 13 | ||||
-rw-r--r-- | gas/testsuite/gas/cfi/cfi.exp | 17 |
4 files changed, 29 insertions, 16 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 112ff49..03f6445 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2008-08-21 Richard Henderson <rth@redhat.com> + + * gas/cfi/cfi-common-1.d: Allow for differing offsets, and + for DW_CFA_offset_extended_sf results. Allow for differing nops. + * gas/cfi/cfi-hppa-1.d: Invert data alignment sign. Change + offsets to match 64-bit offsets. + * gas/cfi/cfi.exp: Don't run common tests on hppa64. + 2008-08-20 Bob Wilson <bob.wilson@acm.org> * gas/all/gas.exp: Expect the redef test to fail on Xtensa. diff --git a/gas/testsuite/gas/cfi/cfi-common-1.d b/gas/testsuite/gas/cfi/cfi-common-1.d index 1a5ee08..32eaf4b 100644 --- a/gas/testsuite/gas/cfi/cfi-common-1.d +++ b/gas/testsuite/gas/cfi/cfi-common-1.d @@ -14,10 +14,11 @@ The section .eh_frame contains: DW_CFA_nop DW_CFA_nop -00000014 00000018 00000018 FDE cie=00000000 pc=.* +00000014 000000(18|1c|20) 00000018 FDE cie=00000000 pc=.* DW_CFA_advance_loc: 4 to .* DW_CFA_def_cfa: r0( \([er]ax\)|) ofs 16 - DW_CFA_offset: r1( \((rdx|ecx)\)|) at cfa-8 + DW_CFA_offset(_extended_sf|): r1( \((rdx|ecx)\)|) at cfa-8 DW_CFA_advance_loc: 4 to .* DW_CFA_def_cfa_offset: 32 - DW_CFA_offset: r2( \((rcx|edx)\)|) at cfa-24 + DW_CFA_offset(_extended_sf|): r2( \((rcx|edx)\)|) at cfa-24 +#... diff --git a/gas/testsuite/gas/cfi/cfi-hppa-1.d b/gas/testsuite/gas/cfi/cfi-hppa-1.d index 29a72ad..be8bf39 100644 --- a/gas/testsuite/gas/cfi/cfi-hppa-1.d +++ b/gas/testsuite/gas/cfi/cfi-hppa-1.d @@ -6,13 +6,13 @@ The section .eh_frame contains: Version: 1 Augmentation: "zR" Code alignment factor: 4 - Data alignment factor: -[48] + Data alignment factor: [48] Return address column: 2 - Augmentation data: 1b + Augmentation data: 1[bc] DW_CFA_def_cfa: r30 ofs 0 -00000014 00000018 00000018 FDE cie=00000000 pc=00000000..00000018 +00000014 000000(18|20) 00000018 FDE cie=00000000 pc=00000000..00000018 DW_CFA_advance_loc: 8 to 00000008 DW_CFA_def_cfa_register: r3 DW_CFA_advance_loc: 4 to 0000000c @@ -21,17 +21,16 @@ The section .eh_frame contains: DW_CFA_def_cfa_register: r30 DW_CFA_nop -00000030 00000018 00000034 FDE cie=00000000 pc=00000018..00000040 +0000003[08] 000000(18|20) 0000003[4c] FDE cie=00000000 pc=00000018..00000040 DW_CFA_advance_loc: 12 to 00000024 DW_CFA_def_cfa_register: r3 - DW_CFA_offset: r2 at cfa-24 + DW_CFA_offset_extended_sf: r2 at cfa-24 DW_CFA_advance_loc: 24 to 0000003c DW_CFA_def_cfa_register: r30 DW_CFA_nop DW_CFA_nop - DW_CFA_nop -0000004c 00000010 00000050 FDE cie=00000000 pc=00000040..00000048 +000000[45]c 0000001[08] 000000[56]0 FDE cie=00000000 pc=00000040..00000048 DW_CFA_nop DW_CFA_nop DW_CFA_nop diff --git a/gas/testsuite/gas/cfi/cfi.exp b/gas/testsuite/gas/cfi/cfi.exp index 68290da..cd36f7f 100644 --- a/gas/testsuite/gas/cfi/cfi.exp +++ b/gas/testsuite/gas/cfi/cfi.exp @@ -80,13 +80,18 @@ if { [istarget "i*86-*-*"] || [istarget "x86_64-*-*"] } then { } run_list_test "cfi-diag-1" "" -run_dump_test "cfi-common-1" -run_dump_test "cfi-common-2" -run_dump_test "cfi-common-3" -run_dump_test "cfi-common-4" -run_dump_test "cfi-common-5" -# MIPS doesn't support PC relative cfi directives +# HPPA64 uses 64-bit relocations, which results in all of the dump +# offset numbers not matching up. +if { ![istarget "hppa64*-*"] } then { + run_dump_test "cfi-common-1" + run_dump_test "cfi-common-2" + run_dump_test "cfi-common-3" + run_dump_test "cfi-common-4" + run_dump_test "cfi-common-5" +} + +# MIPS doesn't support PC relative cfi directives. if { ![istarget "mips*-*"] } then { run_dump_test "cfi-common-6" } |