X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mate.git;a=blobdiff_plain;f=Mate%2FX86TrapHandling.hs;fp=Mate%2FX86TrapHandling.hs;h=b4bf8ca2b5eaa536e36e58fd7b198128546acbd1;hp=b7b81d679e2081f8a241e3aabf25dd27fe613fec;hb=3398391fa883278959063506c8051943aba9c4ee;hpb=ecec298c7b0723081b1aea7447eae6f04118df34 diff --git a/Mate/X86TrapHandling.hs b/Mate/X86TrapHandling.hs index b7b81d6..b4bf8ca 100644 --- a/Mate/X86TrapHandling.hs +++ b/Mate/X86TrapHandling.hs @@ -94,7 +94,7 @@ patchInvoke (MethodInfo methname _ msig) method_table table2patch io_offset rei vmap <- liftIO getVirtualMap let newmi = MethodInfo methname (vmap M.! fromIntegral method_table) msig offset <- liftIO io_offset - entryAddr <- liftIO $ getMethodEntry newmi + (entryAddr, _) <- liftIO $ getMethodEntry newmi call32Eax (Disp offset) -- patch entry in table let call_insn = intPtrToPtr . fromIntegral $ table2patch + fromIntegral offset