aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2016-06-27 16:50:29 +0100
committerNick Clifton <nickc@redhat.com>2016-06-27 16:50:29 +0100
commit45a54ee57764e34fe2fe8b7655fabef38936a696 (patch)
tree551ecf9611ec83b8fe08baf6572cdc030ee0bcae
parent42b7a39bf6eb2e90fb1b07c2d53d7a93263508d2 (diff)
downloadgdb-45a54ee57764e34fe2fe8b7655fabef38936a696.zip
gdb-45a54ee57764e34fe2fe8b7655fabef38936a696.tar.gz
gdb-45a54ee57764e34fe2fe8b7655fabef38936a696.tar.bz2
Make the kernel dwarf stack unwinder work for ARC targets.
* config//tc-arc.c (tc_arc_frame_initial_instructions): Use cfi_add_CFA_def_cfa to generate default CFA with offset * testsuite/gas/cfi/cfi-arc-1.d: Update expected output.
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-arc.c2
-rw-r--r--gas/testsuite/gas/cfi/cfi-arc-1.d3
3 files changed, 8 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 4c5b0c7..d6afee2 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2016-06-27 Vineet Gupta <vgupta@synopsys.com>
+
+ * config//tc-arc.c (tc_arc_frame_initial_instructions): Use
+ cfi_add_CFA_def_cfa to generate default CFA with offset
+ * testsuite/gas/cfi/cfi-arc-1.d: Update expected output.
+
2016-06-27 Nick Clifton <nickc@redhat.com>
PR gas/20247
diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c
index 5755821..155d991 100644
--- a/gas/config/tc-arc.c
+++ b/gas/config/tc-arc.c
@@ -4160,7 +4160,7 @@ void
tc_arc_frame_initial_instructions (void)
{
/* Stack pointer is register 28. */
- cfi_add_CFA_def_cfa_register (28);
+ cfi_add_CFA_def_cfa (28, 0);
}
int
diff --git a/gas/testsuite/gas/cfi/cfi-arc-1.d b/gas/testsuite/gas/cfi/cfi-arc-1.d
index cdb75bd..73caeb2 100644
--- a/gas/testsuite/gas/cfi/cfi-arc-1.d
+++ b/gas/testsuite/gas/cfi/cfi-arc-1.d
@@ -11,8 +11,7 @@ Contents of the .eh_frame section:
Return address column: 31
Augmentation data: 1b
- DW_CFA_def_cfa_register: r28
- DW_CFA_nop
+ DW_CFA_def_cfa: r28 ofs 0
00000014 00000020 00000018 FDE cie=00000000 pc=00000000..00000010
DW_CFA_advance_loc: 4 to 00000004