From f6f5a33817ac1d406c8c2687e32493cbc38ef4e7 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Wed, 10 Sep 2008 13:21:50 +0200 Subject: Feed dwarf unwinder data through _stp_mod_sec_lookup (), but disabled for now. --- runtime/unwind.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runtime/unwind.c') diff --git a/runtime/unwind.c b/runtime/unwind.c index 21ea4559..7b19573d 100644 --- a/runtime/unwind.c +++ b/runtime/unwind.c @@ -676,6 +676,7 @@ int unwind(struct unwind_frame_info *frame) signed ptrType = -1; uleb128_t retAddrReg = 0; struct _stp_module *m; + struct _stp_section *s = NULL; struct unwind_state state; dbug_unwind(1, "pc=%lx, %lx", pc, UNW_PC(frame)); @@ -683,7 +684,7 @@ int unwind(struct unwind_frame_info *frame) if (UNW_PC(frame) == 0) return -EINVAL; - m = NULL /*_stp_get_unwind_info(pc) */; + m = _stp_mod_sec_lookup (pc, &s); if (unlikely(m == NULL)) { dbug_unwind(1, "No module found for pc=%lx", pc); return -EINVAL; -- cgit