Print some addresses in hex.

This commit is contained in:
Bill Currie 2011-01-10 00:00:18 +09:00
parent 6ebee4ad0e
commit aac8185e4e

View file

@ -105,7 +105,7 @@ dump_globals (progs_t *pr)
if (def->type == ev_field) if (def->type == ev_field)
comment = va (" %d", G_INT (pr, offset)); comment = va (" %d", G_INT (pr, offset));
printf ("%d %d %s %s%s\n", offset, saveglobal, name, type, comment); printf ("%x %d %s %s%s\n", offset, saveglobal, name, type, comment);
} }
} }
@ -148,7 +148,7 @@ dump_functions (progs_t *pr)
start = func->first_statement; start = func->first_statement;
if (start > 0) if (start > 0)
comment = va (" @ %d", start); comment = va (" @ %x", start);
else else
comment = va (" = #%d", -start); comment = va (" = #%d", -start);
@ -306,6 +306,10 @@ qfo_functions (qfo_t *qfo)
QFO_GETSTR (qfo, def->name)); QFO_GETSTR (qfo, def->name));
if (!(def->flags & QFOD_EXTERNAL)) if (!(def->flags & QFOD_EXTERNAL))
printf (" %d", qfo->data[def->ofs].integer_var); printf (" %d", qfo->data[def->ofs].integer_var);
if (func->code)
printf (" @ %x", func->code);
else
printf (" = #%d", func->builtin);
puts (""); puts ("");
} }
} }