mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 08:00:51 +00:00
Print some addresses in hex.
This commit is contained in:
parent
6ebee4ad0e
commit
aac8185e4e
1 changed files with 6 additions and 2 deletions
|
@ -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 ("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue