aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2020-06-08 08:39:23 +0200
committerJan Beulich <jbeulich@suse.com>2020-06-08 08:39:23 +0200
commit1ab84e0251a593bec32ccec9fef72b53b4ce218d (patch)
tree63f97e26f250908db623d3e53b695ee324f0ef34
parentaf32b7220966364b083ce771ba45f35491293d55 (diff)
downloadgdb-1ab84e0251a593bec32ccec9fef72b53b4ce218d.zip
gdb-1ab84e0251a593bec32ccec9fef72b53b4ce218d.tar.gz
gdb-1ab84e0251a593bec32ccec9fef72b53b4ce218d.tar.bz2
ix86: enable 2nd CFI test
While putting together the previous patch I noticed that this test, forever since its introduction, was dead. Update it so it will pass, and enable it.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/testsuite/gas/cfi/cfi-i386-2.d14
-rw-r--r--gas/testsuite/gas/cfi/cfi.exp1
3 files changed, 13 insertions, 7 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 787c0fd..abc0869 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
2020-06-08 Jan Beulich <jbeulich@suse.com>
+ * testsuite/gas/cfi/cfi-i386-2.d: Adjust expectations.
+ * testsuite/gas/cfi/cfi.exp: Run this test.
+
+2020-06-08 Jan Beulich <jbeulich@suse.com>
+
* config/tc-i386.c (parse_real_register): Add allow_pseudo_reg
check to %st(N) parsing logic.
* testsuite/gas/cfi/cfi-i386.s: Set "generic32" arch.
diff --git a/gas/testsuite/gas/cfi/cfi-i386-2.d b/gas/testsuite/gas/cfi/cfi-i386-2.d
index 2161b01..05e414d 100644
--- a/gas/testsuite/gas/cfi/cfi-i386-2.d
+++ b/gas/testsuite/gas/cfi/cfi-i386-2.d
@@ -10,17 +10,17 @@ Contents of the .eh_frame section:
Return address column: 8
Augmentation data: 1b
- DW_CFA_def_cfa: r4 ofs 4
- DW_CFA_offset: r8 at cfa-4
+ DW_CFA_def_cfa: r4 \(esp\) ofs 4
+ DW_CFA_offset: r8 \(eip\) at cfa-4
DW_CFA_nop
DW_CFA_nop
-00000018 0+0018 0+001c FDE cie=0+0000 pc=0+0020..0+0029
- DW_CFA_advance_loc: 1 to 0+0021
+00000018 0+0018 0+001c FDE cie=0+0000 pc=0+0000..0+0009
+ DW_CFA_advance_loc: 1 to 0+0001
DW_CFA_def_cfa_offset: 8
- DW_CFA_offset: r5 at cfa-8
- DW_CFA_advance_loc: 4 to 0+0025
- DW_CFA_offset: r3 at cfa-12
+ DW_CFA_offset: r5 \(ebp\) at cfa-8
+ DW_CFA_advance_loc: 4 to 0+0005
+ DW_CFA_offset: r3 \(ebx\) at cfa-12
DW_CFA_def_cfa_offset: 12
DW_CFA_nop
diff --git a/gas/testsuite/gas/cfi/cfi.exp b/gas/testsuite/gas/cfi/cfi.exp
index bbb1c15..afafd7a 100644
--- a/gas/testsuite/gas/cfi/cfi.exp
+++ b/gas/testsuite/gas/cfi/cfi.exp
@@ -48,6 +48,7 @@ if { [istarget "i*86-*-*"] || [istarget "x86_64-*-*"] } then {
if { [gas_x86_32_check] } then {
set ASFLAGS "$ASFLAGS --32"
run_dump_test "cfi-i386"
+ run_dump_test "cfi-i386-2"
set ASFLAGS "$old_ASFLAGS"
}