Fix nested ranges not overwriting their parents

This commit is contained in:
I-Al-Istannen 2020-03-28 20:18:06 +01:00
parent 66efb97205
commit d3ba3355e4

View file

@ -60,7 +60,7 @@ flagsFromMetadata metadata =
Flags (flagSet "readonly") (flagSet "executable") (flagSet "breakpoint")
where
ranges = mdLocal metadata
rangesToMap key = mconcat . map (rangeToMap key) $ ranges
rangesToMap key = mconcat . reverse . map (rangeToMap key) $ ranges
flagSet = Map.keysSet . Map.filter valueToBool . rangesToMap
rangeToMap :: T.Text -> Range -> Map.Map MimaAddress A.Value