mirror of
https://github.com/GaloisInc/macaw.git
synced 2024-11-25 11:15:37 +03:00
Haddock fixes
This commit is contained in:
parent
3ff61dc8cc
commit
d4f6105e90
@ -52,12 +52,11 @@ instance X.Exception DiscoverException
|
||||
|
||||
-- | Convert machine addresses into What4 positions.
|
||||
--
|
||||
-- When possible, we map to the structured 'WPL.BinaryPos' type. However, some
|
||||
-- 'MM.MemSegmentOff' cannot be mapped to an absolute position (e.g., some
|
||||
-- addresses from shared libraries are in non-trivial segments). In those cases,
|
||||
-- we map to the unstructured 'WPL.Others' with a sufficiently descriptive string.
|
||||
--
|
||||
-- TODO: import from `Testing`
|
||||
-- When possible, we map to the structured 'WPL.BinaryPos' type. However,
|
||||
-- some 'MM.MemSegmentOff' values cannot be mapped to an absolute position
|
||||
-- (e.g., some addresses from shared libraries are in non-trivial segments).
|
||||
-- In those cases, we map to the unstructured 'WPL.Others' with a sufficiently
|
||||
-- descriptive string.
|
||||
posFn :: (MM.MemWidth w) => Text.Text -> MM.MemSegmentOff w -> WPL.Position
|
||||
posFn binaryName segOff =
|
||||
case MM.segoffAsAbsoluteAddr segOff of
|
||||
|
@ -113,10 +113,11 @@ instance X.Exception TestingException
|
||||
|
||||
-- | Convert machine addresses into Crucible positions.
|
||||
--
|
||||
-- When possible, we map to the structured 'WPL.BinaryPos' type. However, some
|
||||
-- 'MM.MemSegmentOff' cannot be mapped to an absolute position (e.g., some
|
||||
-- addresses from shared libraries are in non-trivial segments). In those cases,
|
||||
-- we map to the unstructured 'WPL.Others' with a sufficiently descriptive string.
|
||||
-- When possible, we map to the structured 'WPL.BinaryPos' type. However,
|
||||
-- some 'MM.MemSegmentOff' values cannot be mapped to an absolute position
|
||||
-- (e.g., some addresses from shared libraries are in non-trivial segments).
|
||||
-- In those cases, we map to the unstructured 'WPL.Others' with a sufficiently
|
||||
-- descriptive string.
|
||||
posFn :: (MM.MemWidth w) => FilePath -> MM.MemSegmentOff w -> WPL.Position
|
||||
posFn binaryName segOff =
|
||||
case MM.segoffAsAbsoluteAddr segOff of
|
||||
|
Loading…
Reference in New Issue
Block a user