mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
minor debugging tweaks
This commit is contained in:
parent
6805d479f3
commit
72e5221f06
2 changed files with 4 additions and 3 deletions
|
@ -424,13 +424,13 @@ PR_PrintStatement (progs_t * pr, dstatement_t *s)
|
||||||
case OP_IFA:
|
case OP_IFA:
|
||||||
ofs = (short) s->b;
|
ofs = (short) s->b;
|
||||||
|
|
||||||
Sys_Printf ("%s branch %i (%i)",
|
Sys_Printf ("%s branch %i (%04x)",
|
||||||
PR_GlobalString (pr, s->a, ev_integer)->str, ofs, addr + ofs);
|
PR_GlobalString (pr, s->a, ev_integer)->str, ofs, addr + ofs);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OP_GOTO:
|
case OP_GOTO:
|
||||||
ofs = (short) s->a;
|
ofs = (short) s->a;
|
||||||
Sys_Printf ("branch %i (%i)", ofs, addr + ofs);
|
Sys_Printf ("branch %i (%04x)", ofs, addr + ofs);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OP_RETURN:
|
case OP_RETURN:
|
||||||
|
|
|
@ -304,7 +304,8 @@ PR_GlobalString (progs_t *pr, int ofs, etype_t type)
|
||||||
else
|
else
|
||||||
dsprintf (line, "%s", s);
|
dsprintf (line, "%s", s);
|
||||||
} else if (strequal(name, "?"))
|
} else if (strequal(name, "?"))
|
||||||
dsprintf (line, "[$%x]", ofs);
|
dsprintf (line, "[$%x](%08x)", ofs,
|
||||||
|
pr->pr_globals[ofs].integer_var);
|
||||||
else {
|
else {
|
||||||
if (type == ev_func)
|
if (type == ev_func)
|
||||||
dsprintf (line, "%s%s", name, oi);
|
dsprintf (line, "%s%s", name, oi);
|
||||||
|
|
Loading…
Reference in a new issue