[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] [PATCH 7/8] ARM: Return the dwarf.cfa in case the user
From: |
Ken Werner |
Subject: |
[Libunwind-devel] [PATCH 7/8] ARM: Return the dwarf.cfa in case the user requests SP/R13. |
Date: |
Wed, 23 Mar 2011 15:55:05 +0000 |
Usually we don't have a valid location for the SP but we keep calculating
the value of the CFA. The ARM backend should return this value instead.
Signed-off-by: Ken Werner <address@hidden>
---
src/arm/Gregs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/arm/Gregs.c b/src/arm/Gregs.c
index 1546f58..03693a2 100644
--- a/src/arm/Gregs.c
+++ b/src/arm/Gregs.c
@@ -45,12 +45,12 @@ tdep_access_reg (struct cursor *c, unw_regnum_t reg,
unw_word_t *valp,
case UNW_ARM_R10:
case UNW_ARM_R11:
case UNW_ARM_R12:
- case UNW_ARM_R13:
case UNW_ARM_R14:
case UNW_ARM_R15:
loc = c->dwarf.loc[reg - UNW_ARM_R0];
break;
+ case UNW_ARM_R13:
case UNW_ARM_CFA:
if (write)
return -UNW_EREADONLYREG;
--
1.7.4.1
- [Libunwind-devel] [PATCH 0/8] ARM extbl enhancements and fixes, Ken Werner, 2011/03/23
- [Libunwind-devel] [PATCH 4/8] Prefer to unwind using DWARF info on ARM., Ken Werner, 2011/03/23
- [Libunwind-devel] [PATCH 3/8] ARM extbl cleanup., Ken Werner, 2011/03/23
- [Libunwind-devel] [PATCH 8/8] Add test-static-link to the .gitignore file., Ken Werner, 2011/03/23
- [Libunwind-devel] [PATCH 1/8] Have the ARM extbtl-parser operate on the DWARF model directly., Ken Werner, 2011/03/23
- [Libunwind-devel] [PATCH 2/8] Remove the arm-extbl-test., Ken Werner, 2011/03/23
- [Libunwind-devel] [PATCH 6/8] Remove the ARM_EXIDX_TABLE_MALLOC code path., Ken Werner, 2011/03/23
- [Libunwind-devel] [PATCH 7/8] ARM: Return the dwarf.cfa in case the user requests SP/R13.,
Ken Werner <=
- [Libunwind-devel] [PATCH 5/8] Remove the appname string of the ARM extbl parser., Ken Werner, 2011/03/23