This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [Dwarf-Discuss] [PATCH v2] ARC: gas: Generate offset with Default CFA
- From: Michael Eager <eager at eagercon dot com>
- To: Vineet Gupta <Vineet dot Gupta1 at synopsys dot com>, Claudiu Zissulescu <Claudiu dot Zissulescu at synopsys dot com>
- Cc: Cupertino Miranda <Cupertino dot Miranda at synopsys dot com>, "dwarf-discuss at lists dot dwarfstd dot org" <dwarf-discuss at lists dot dwarfstd dot org>, "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Mon, 27 Jun 2016 08:05:54 -0700
- Subject: Re: [Dwarf-Discuss] [PATCH v2] ARC: gas: Generate offset with Default CFA
- Authentication-results: sourceware.org; auth=none
- References: <1467032706-7684-1-git-send-email-vgupta at synopsys dot com> <1467034867-8288-1-git-send-email-vgupta at synopsys dot com>
The DWARF-Discuss mailing list is for questions and discussion about
DWARF. It is not for patches to programs which produce, consume, or
otherwise use DWARF.
On 06/27/2016 06:41 AM, Vineet Gupta wrote:
This makes the kernel dwarf stack unwinder work again which expects an
offset with default CFA in the initial instructions.
gas * config//tc-arc.c (tc_arc_frame_initial_instructions): Use
cfi_add_CFA_def_cfa to generate default CFA with offset
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
---
gas/ChangeLog | 5 +++++
gas/config/tc-arc.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 2a28352f77a6..0033f91865e1 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+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
+
2016-06-27 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* config/tc-dlx.c: Include bfd/elf32-dlx.h.
diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c
index 575582178209..f651600746de 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
--
Michael Eager eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077