(ctx, type = "LR")
| 8533 | }; |
| 8534 | exports.getJclassName = getJclassName; |
| 8535 | function checkCtx(ctx, type = "LR") { |
| 8536 | let TMP = getPlatformCtx(ctx); |
| 8537 | let lr = TMP.lr; |
| 8538 | let pc = TMP.pc; |
| 8539 | let md_lr = Process.findModuleByAddress(lr); |
| 8540 | if (type == "LR" && md_lr != null) |
| 8541 | return lr.sub(md_lr.base) + `|${md_lr.name}`; |
| 8542 | let md_pc = Process.findModuleByAddress(pc); |
| 8543 | if (type == "PC" && md_pc != null) |
| 8544 | return pc.sub(md_pc.base) + `|${md_pc.name}`; |
| 8545 | if (type == "SP") |
| 8546 | return String(TMP.sp).toString(); |
| 8547 | return JSON.stringify(ctx); |
| 8548 | } |
| 8549 | exports.checkCtx = checkCtx; |
| 8550 | const mapValueToArray = (map) => { |
| 8551 | var list = []; |
no test coverage detected