File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ identifyAddress ∷
70
70
identifyAddress addr
71
71
| " 502....." `matches` addr = Just { origin: " nuttx" , type: Code }
72
72
| " 800....." `matches` addr = Just { origin: " qjs" , type: Code }
73
- | otherwise = Nothing
73
+ | otherwise = Nothing -- Unknown Address
74
74
75
75
-- Address can point to Code, Data, BSS or Heap
76
76
data AddressType = Code | Data | BSS | Heap
@@ -94,7 +94,7 @@ matches ∷
94
94
-- "a `unsafeRegex` b" is same as "(unsafeRegex a b)"
95
95
matches pattern addr =
96
96
let
97
- patternWrap = " ^" <> pattern <> " $"
97
+ patternWrap = " ^" <> pattern <> " $" -- Regex Pattern becomes `^502.....$`
98
98
in
99
99
isJust $ -- Is there a Match...
100
100
patternWrap `unsafeRegex` noFlags -- For our Regex Pattern (no special flags)
You can’t perform that action at this time.
0 commit comments