Skip to content

Commit

Permalink
Update DwarfApi.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
PinkiePieStyle committed Feb 12, 2024
1 parent 44ab7b0 commit b0cf744
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DwarfApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,8 @@ export class DwarfApi {
* @param p: pointer
*/
public getAddressTs = (p): [number, any] => {
if(!isString(p) && !isNumber(p)) return [-1, p];

const _ptr = ptr(p);
const _range = Process.findRangeByAddress(_ptr);
if (isDefined(_range)) {
Expand Down

0 comments on commit b0cf744

Please sign in to comment.