+
+hexDumpMap :: Integral v => String -> M.Map B.ByteString v -> IO ()
+#ifdef DEBUG
+hexDumpMap header mmap = do
+ let printValue :: B.ByteString -> IO ()
+ printValue key = printf "\t%-70s: 0x%08x\n" (toString key) val
+ where val = fromIntegral (mmap M.! key) :: NativeWord
+ printf "%s\n" header
+ mapM_ printValue (M.keys mmap)
+#else
+hexDumpMap _ _ = return ()
+#endif