mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +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)
|
||||
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;
|
||||
if (start > 0)
|
||||
comment = va (" @ %d", start);
|
||||
comment = va (" @ %x", start);
|
||||
else
|
||||
comment = va (" = #%d", -start);
|
||||
|
||||
|
@ -306,6 +306,10 @@ qfo_functions (qfo_t *qfo)
|
|||
QFO_GETSTR (qfo, def->name));
|
||||
if (!(def->flags & QFOD_EXTERNAL))
|
||||
printf (" %d", qfo->data[def->ofs].integer_var);
|
||||
if (func->code)
|
||||
printf (" @ %x", func->code);
|
||||
else
|
||||
printf (" = #%d", func->builtin);
|
||||
puts ("");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue