Skip to content

Commit

Permalink
Pad pointers in :iS output too
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Feb 1, 2024
1 parent ed0bfd3 commit a2308af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/agent/lib/info/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,11 @@ export function listSectionsR2(args: string[]) {
}

export function listSections(args: string[]) : string {
const headers = "vaddr \tvsize\tperm\tname\n".concat('――――――――――――――――――――――――――――――――――――――――――――――\n');
const headers = "vaddr vsize perm name\n".concat('―――――――――――――――――――――――――――――――――――――――――――――――――――――――\n');
const data = listSectionsJson(args)
.map((a: any) => {
return [a.vmaddr, a.vmsize, a.perm, a.name].join('\t');
const perm = a.perm? a.perm: "---";
return [padPointer(a.vmaddr), padPointer(a.vmsize), perm, a.name].join(" ");
})
.join('\n');
return headers.concat(data);
Expand Down

0 comments on commit a2308af

Please sign in to comment.