Print out Sa in S*, handy for projects

This commit is contained in:
pancake 2017-03-30 02:19:55 +02:00
parent a6e87ff6df
commit 0c2bf8080f

View File

@ -171,6 +171,11 @@ R_API void r_io_section_list(RIO *io, ut64 offset, int rad) {
io->cb_printf ("S 0x%08"PFMT64x" 0x%08"PFMT64x" 0x%08"
PFMT64x" 0x%08"PFMT64x" %s %s\n", s->paddr,
s->vaddr, s->size, s->vsize, n, r_str_rwx_i (s->flags));
if (s->arch && s->bits) {
const char *archName = r_sys_arch_str (s->arch);
io->cb_printf ("Sa %s %d 0x%08"PFMT64x"\n",
archName, s->bits, s->vaddr);
}
free (n);
} else {
io->cb_printf ("[%02d] %c 0x%08"PFMT64x" %s va=0x%08"PFMT64x