PDB: dump the size of structure and union in JSON mode.

This commit is contained in:
Raphaël Almeida 2018-03-13 15:28:51 +01:00 committed by radare
parent 1205aea171
commit 38d3d3651c

View File

@ -961,8 +961,8 @@ static void print_types(R_PDB *pdb, int mode) {
break;
case eLF_STRUCTURE:
case eLF_UNION:
pdb->cb_printf ("{\"type\":\"%s\",\"name\":\"%s\",\"%s\":[",
"structure", name, "members");
pdb->cb_printf ("{\"type\":\"%s\",\"name\":\"%s\",\"size\":%d,\"%s\":[",
"structure", name, val, "members");
break;
default:
continue;