Make the disasm a bit more verbose as to where globals are

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-18 20:32:22 +01:00
parent ed6189e655
commit 12fca5ef8f

7
exec.c
View file

@ -334,16 +334,15 @@ static void trace_print_global(qc_program *prog, unsigned int glob, int vtype)
def = prog_getdef(prog, glob);
value = (qcany*)(&prog->globals[glob]);
len = printf("[@%u] ", glob);
if (def) {
const char *name = prog_getstring(prog, def->name);
if (name[0] == '#')
len = printf("$");
len += printf("$");
else
len = printf("%s ", name);
len += printf("%s ", name);
vtype = def->type & DEF_TYPEMASK;
}
else
len = printf("[@%u] ", glob);
switch (vtype) {
case TYPE_VOID: