From 04935f72d79556f786f441f8f7634cfac5df92fc Mon Sep 17 00:00:00 2001 From: newhall Date: Mon, 12 May 1997 19:38:13 +0000 Subject: [PATCH] bug fix to findAndInstallBaseTramp when checking for need_to_add --- dyninstAPI/src/inst-sparc-solaris.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dyninstAPI/src/inst-sparc-solaris.C b/dyninstAPI/src/inst-sparc-solaris.C index d394523..564cbbe 100644 --- a/dyninstAPI/src/inst-sparc-solaris.C +++ b/dyninstAPI/src/inst-sparc-solaris.C @@ -865,7 +865,7 @@ trampTemplate *findAndInstallBaseTramp(process *proc, bool need_to_add = false; if((location->ipType==functionEntry) &&(isInsnType(location->delaySlotInsn,CALLmask,CALLmatch))){ - Address call_offset = location->addr + + Address call_offset = location->addr + 8 + (location->delaySlotInsn.call.disp30<<2); Address fun_addr = location->func->getAddress(0); u_int fun_size = location->func->size(); -- 1.8.3.1