classpool: cache class file access
[mate.git] / Mate / MethodPool.hs
index c243d113950084fa56652f7b4950a64765c50797..2f29b400583dcb2291d2aa8318518f1bfb46a1e4 100644 (file)
@@ -141,8 +141,10 @@ compileBB hmap methodinfo = do
   printfJit "generated code of \"%s\":\n" (toString $ methName methodinfo)
   mapM_ (printfJit "%s\n" . showAtt) (snd right)
   printfJit "\n\n"
-  -- UNCOMMENT NEXT LINE FOR GDB FUN
-  -- _ <- getLine
+  -- UNCOMMENT NEXT LINES FOR GDB FUN
+  --if (toString $ methName methodinfo) == "thejavamethodIwant2debug"
+  --  then getLine
+  --  else return "foo"
   -- (1) start it with `gdb ./mate' and then `run <classfile>'
   -- (2) on getLine, press ctrl+c
   -- (3) `br *0x<addr>'; obtain the address from the disasm above