-
JITResolver::hexAddressRegex
-
RegExp used to match memory addresses.
- Source:
-
JITResolver::lldb_backtraceRegex
-
RegExp used to match memory lldb backtraces of the form
#1 0x001 in 0x001 ()
When callingvar m = s.match(regex)
m[1]
contains first matched address andm[2]
contains second matched address.- Source:
-
JITResolver(map) → {Object}
-
Instantiates a JIT resolver for the given map.
Parameters:
Name Type Description map
String | Array.<String> either a string or lines with space separated HexAddress, Size, Symbol on each line
Returns:
the initialized JIT resolver
- Type
- Object
-
JITResolver::resolve(hexAddress) → {Object}
-
Matches the address of the symbol of which the given address is part of.
Parameters:
Name Type Description hexAddress
String | Number the hexadecimal address of the address to check
Returns:
info of the matching symbol which includes address, size, symbol
- Type
- Object
-
JITResolver::resolveMulti(stack, getHexAddress) → {Array.<String>|String}
-
Resolves all symbols in a given stack and replaces them accordingly
Parameters:
Name Type Argument Description stack
Array.<String> | String string of stack or lines of stack
getHexAddress
function <optional>
allows overriding the function used to find a hex address on each line, returns
{ address: 0x000, include: true|false }
Returns:
the stack with symbols resolved in the same format that the stack was given, either as lines or one string
- Type
- Array.<String> | String