Skip to content

Commit

Permalink
Merge branch 'main' into hpc-sdk-249
Browse files Browse the repository at this point in the history
  • Loading branch information
jmuddnv authored Sep 26, 2024
2 parents a5a9345 + d54e2ba commit 463af57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/cfg/cfg-parsers/oat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,12 @@ export class OatCFGParser extends BaseCFGParser {
return result;
}

// In this example, '0x416c' will be returned.
// In these examples, '0x416c' and '0x8074' will be returned.
// 0x00004144 b #+0x28 (addr 0x416c)
// 0x00008050 b.hs #+0x24 (addr 0x00008074)
getJmpAddr(inst: string): string {
const match = inst.match(this.jmpAddrRegex);
if (match) return match[1];
if (match) return this.shortenHex(match[1]);
return '';
}

Expand Down

0 comments on commit 463af57

Please sign in to comment.