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 ∷
7070identifyAddress addr
7171 | " 502....." `matches` addr = Just { origin: " nuttx" , type: Code }
7272 | " 800....." `matches` addr = Just { origin: " qjs" , type: Code }
73- | otherwise = Nothing
73+ | otherwise = Nothing -- Unknown Address
7474
7575-- Address can point to Code, Data, BSS or Heap
7676data AddressType = Code | Data | BSS | Heap
@@ -94,7 +94,7 @@ matches ∷
9494-- "a `unsafeRegex` b" is same as "(unsafeRegex a b)"
9595matches pattern addr =
9696 let
97- patternWrap = " ^" <> pattern <> " $"
97+ patternWrap = " ^" <> pattern <> " $" -- Regex Pattern becomes `^502.....$`
9898 in
9999 isJust $ -- Is there a Match...
100100 patternWrap `unsafeRegex` noFlags -- For our Regex Pattern (no special flags)
You can’t perform that action at this time.
0 commit comments