X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mate.git;a=blobdiff_plain;f=Mate%2FX86TrapHandling.hs;fp=Mate%2FX86TrapHandling.hs;h=82ed7ca0d738ca3ad52b1a0f23562ac8ae0e9597;hp=b4bf8ca2b5eaa536e36e58fd7b198128546acbd1;hb=c541c18161f42753454ab94bbc5e1a43ef89ae40;hpb=de9b805eb93b4a39c03e9f7e1cda62c674c87fe3 diff --git a/Mate/X86TrapHandling.hs b/Mate/X86TrapHandling.hs index b4bf8ca..82ed7ca 100644 --- a/Mate/X86TrapHandling.hs +++ b/Mate/X86TrapHandling.hs @@ -41,7 +41,7 @@ mateHandler reip reax rebx resi resp = do (Just (InstanceOf patcher)) -> patchWithHarpy (patcher reax) reip >>= delFalse (Just (ThrowException patcher)) -> - patchWithHarpy (patcher resp) reip >>= delFalse + patchWithHarpy (patcher reax resp) reip >>= delFalse (Just (NewObject patcher)) -> patchWithHarpy patcher reip >>= delTrue (Just (VirtualCall False mi io_offset)) -> @@ -52,8 +52,8 @@ mateHandler reip reax rebx resi resp = do >>= delFalse Nothing -> case resi of 0x13371234 -> delFalse (-1) - _ -> error $ "getTrapType: abort :-( " ++ showHex reip ". " - ++ concatMap (`showHex` ", ") (M.keys tmap) + _ -> error $ "getTrapType: abort :-( eip: " + ++ showHex reip ". " ++ concatMap (`showHex` ", ") (M.keys tmap) when deleteMe $ setTrapMap $ M.delete reipw32 tmap return ret_nreip where