Skip to content

Commit

Permalink
Improve :iE situation on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Feb 12, 2024
1 parent e343c31 commit dbb26ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/agent/lib/info/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,10 @@ export function listExportsJson(args: string[]) : any | null {
const currentModule = (args.length > 0)
? Process.getModuleByName(args[0])
: getModuleByAddress(ptr(r2frida.offset));
if (currentModule !== null) {
return currentModule.enumerateExports();
if (currentModule === null) {
return Process.mainModule.enumerateExports();
}
return [];
return currentModule.enumerateExports();
}

export function listSegmentsHere() {
Expand Down

0 comments on commit dbb26ad

Please sign in to comment.