[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] [PATCH 03/19] HPPA: fix common_init() bitrot
From: |
Tommi Rantala |
Subject: |
[Libunwind-devel] [PATCH 03/19] HPPA: fix common_init() bitrot |
Date: |
Wed, 5 Sep 2012 14:50:11 +0300 |
Fix bitrot in HPPA common_init(). This has only been compile tested.
hppa/init.h: In function 'common_init':
hppa/init.h:33: error: 'struct cursor' has no member named 'ip_loc'
hppa/init.h:33: warning: implicit declaration of function 'HPPA_REG_LOC'
hppa/init.h:34: error: 'struct cursor' has no member named 'sp_loc'
hppa/init.h:36: warning: implicit declaration of function 'hppa_get'
hppa/init.h:36: error: 'struct cursor' has no member named 'ip_loc'
hppa/init.h:36: error: 'struct cursor' has no member named 'ip'
hppa/init.h:40: error: 'struct cursor' has no member named 'sp'
---
src/hppa/init.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/hppa/init.h b/src/hppa/init.h
index 6fabb15..f51e3b4 100644
--- a/src/hppa/init.h
+++ b/src/hppa/init.h
@@ -30,14 +30,14 @@ common_init (struct cursor *c, unsigned use_prev_instr)
{
int ret;
- c->ip_loc = HPPA_REG_LOC (c, UNW_HPPA_IP);
- c->sp_loc = HPPA_REG_LOC (c, UNW_HPPA_SP);
+ c->dwarf.loc[UNW_HPPA_IP] = DWARF_REG_LOC (&c->dwarf, UNW_HPPA_IP);
+ c->dwarf.loc[UNW_HPPA_SP] = DWARF_REG_LOC (&c->dwarf, UNW_HPPA_SP);
- ret = hppa_get (c, c->ip_loc, &c->ip);
+ ret = dwarf_get (&c->dwarf, c->dwarf.loc[UNW_HPPA_IP], &c->dwarf.ip);
if (ret < 0)
return ret;
- ret = hppa_get (c, HPPA_REG_LOC (c, UNW_HPPA_SP), &c->sp);
+ ret = dwarf_get (&c->dwarf, c->dwarf.loc[UNW_HPPA_SP], &c->dwarf.cfa);
if (ret < 0)
return ret;
--
1.7.9.5
- [Libunwind-devel] [PATCH 00/19] misc fixes, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 04/19] PPC: add missing debug level in Debug() calls in Gstep.c, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 02/19] Check __builtin___clear_cache() at configuration time, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 03/19] HPPA: fix common_init() bitrot,
Tommi Rantala <=
- [Libunwind-devel] [PATCH 01/19] Annotate unused argument in mark_as_used() to avoid -Wextra compiler noise, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 05/19] PPC: return failure from the unw_get_proc_info() stub, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 06/19] Remove free() NULL pointer checks in load_debug_frame() error path, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 08/19] Rename `backtrace' to `do_backtrace' in tests/Gtest-init.cxx, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 07/19] Eliminate one heap allocation in dwarf_find_debug_frame(), Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 09/19] Check correct variable for offset in tests/Gtest-init.cxx, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 11/19] Do not print garbage proc info in tests/Gtest-bt.c, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 14/19] Provide manual page for `unw_backtrace()', Tommi Rantala, 2012/09/05