diff options
author | Jakub Jelinek <jakub@redhat.com> | 2006-11-03 07:27:39 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2006-11-03 07:27:39 +0000 |
commit | ae424f8246a09295cca8da6922c8ee781dec4fb1 (patch) | |
tree | dc0595939239755c531e979a13841c2b38726086 /gas/testsuite | |
parent | b1e24c0220fe6718066991999cb0a6e5b88b569d (diff) | |
download | gdb-ae424f8246a09295cca8da6922c8ee781dec4fb1.zip gdb-ae424f8246a09295cca8da6922c8ee781dec4fb1.tar.gz gdb-ae424f8246a09295cca8da6922c8ee781dec4fb1.tar.bz2 |
* subsegs.h (struct frchain): Add frch_cfi_data field.
* dw2gencfi.c: Include subsegs.h.
(cur_fde_data, last_address, cur_cfa_offset, cfa_save_stack): Removed.
(struct frch_cfi_data): New type.
(unused_cfi_data): New variable.
(alloc_fde_entry): Move cur_fde_data, last_address, cur_cfa_offset
and cfa_save_stack static vars into a structure pointed from
each frchain.
(alloc_cfi_insn_data, cfi_new_fde, cfi_end_fde, cfi_set_return_column,
cfi_add_advance_loc, cfi_add_CFA_def_cfa, cfi_add_CFA_def_cfa_offset,
cfi_add_CFA_remember_state, cfi_add_CFA_restore_state, dot_cfi,
dot_cfi_escape, dot_cfi_startproc, dot_cfi_endproc, cfi_finish):
Likewise.
* gas/cfi/cfi-common-5.d: New test.
* gas/cfi/cfi-common-5.s: New.
* gas/cfi/cfi.exp: Add cfi-common-5 test.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/cfi/cfi-common-5.d | 24 | ||||
-rw-r--r-- | gas/testsuite/gas/cfi/cfi-common-5.s | 24 | ||||
-rw-r--r-- | gas/testsuite/gas/cfi/cfi.exp | 1 |
4 files changed, 55 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index bad5620..0034982 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2006-11-03 Jakub Jelinek <jakub@redhat.com> + + * gas/cfi/cfi-common-5.d: New test. + * gas/cfi/cfi-common-5.s: New. + * gas/cfi/cfi.exp: Add cfi-common-5 test. + 2006-11-01 Thiemo Seufer <ths@mips.com> * gas/mips/mips16-intermix.d, gas/mips/mips16-intermix.s: New diff --git a/gas/testsuite/gas/cfi/cfi-common-5.d b/gas/testsuite/gas/cfi/cfi-common-5.d new file mode 100644 index 0000000..fed50c5 --- /dev/null +++ b/gas/testsuite/gas/cfi/cfi-common-5.d @@ -0,0 +1,24 @@ +#readelf: -wf +#name: CFI common 5 +The section .eh_frame contains: + +00000000 00000010 00000000 CIE + Version: 1 + Augmentation: "zR" + Code alignment factor: .* + Data alignment factor: .* + Return address column: .* + Augmentation data: [01]b +#... +00000014 00000014 00000018 FDE cie=00000000 pc=.* + DW_CFA_advance_loc: 4 to .* + DW_CFA_remember_state + DW_CFA_advance_loc: 4 to .* + DW_CFA_restore_state +#... +0000002c 0000001[48] 00000030 FDE cie=00000000 pc=.* + DW_CFA_advance_loc: 4 to .* + DW_CFA_def_cfa: r0 ofs 16 + DW_CFA_advance_loc: 4 to .* + DW_CFA_def_cfa_offset: 0 +#pass diff --git a/gas/testsuite/gas/cfi/cfi-common-5.s b/gas/testsuite/gas/cfi/cfi-common-5.s new file mode 100644 index 0000000..f59d977 --- /dev/null +++ b/gas/testsuite/gas/cfi/cfi-common-5.s @@ -0,0 +1,24 @@ + .text + .cfi_startproc simple + + .subsection 3 + .cfi_startproc simple + .long 0 + .cfi_def_cfa 0, 16 + .previous + + .long 0 + .cfi_remember_state + + .subsection 3 + .long 0 + .cfi_adjust_cfa_offset -16 + .previous + + .long 0 + .cfi_restore_state + .cfi_endproc + + .subsection 3 + .cfi_endproc + .previous diff --git a/gas/testsuite/gas/cfi/cfi.exp b/gas/testsuite/gas/cfi/cfi.exp index de67b01..60b7952 100644 --- a/gas/testsuite/gas/cfi/cfi.exp +++ b/gas/testsuite/gas/cfi/cfi.exp @@ -72,3 +72,4 @@ 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" |