Copyright | (c) Inokentiy Babushkin, 2016 |
---|---|
License | BSD3 |
Maintainer | Inokentiy Babushkin <inokentiy.babushkin@googlemail.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Hapstone.Capstone
Description
This module wraps all the complex and unsafe details of the capstone API to provide a simple interface to a disassembler, while retaining a reasonable level of versatility.
TODO: write a proper user guide here.
- disasmIO :: Disassembler a -> IO (Either CsErr [(CsInsn, a)])
- disasmSimpleIO :: Disassembler a -> IO (Either CsErr [CsInsn])
- data Disassembler a = Disassembler {}
- defaultSkipdataStruct :: CsSkipdataStruct
- defaultAction :: Csh -> CsInsn -> IO ()
- mkCallback :: Storable a => (Storable a => ([Word8], [Word8]) -> a -> IO CSize) -> IO CsSkipdataCallback
Documentation
disasmIO :: Disassembler a -> IO (Either CsErr [(CsInsn, a)]) Source #
run a Disassembler, keeping the results of the custom action
disasmSimpleIO :: Disassembler a -> IO (Either CsErr [CsInsn]) Source #
run a disassembler, throwing away the results of the custom action
data Disassembler a Source #
a structure holding settings for a disassembling action
Constructors
Disassembler | |
Fields
|
defaultSkipdataStruct :: CsSkipdataStruct Source #
default setup for skipdata: ".db" string and no callback