minor debugging tweaks

This commit is contained in:
Bill Currie 2003-02-21 15:09:02 +00:00
parent 6805d479f3
commit 72e5221f06
2 changed files with 4 additions and 3 deletions

View File

@ -424,13 +424,13 @@ PR_PrintStatement (progs_t * pr, dstatement_t *s)
case OP_IFA:
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);
break;
case OP_GOTO:
ofs = (short) s->a;
Sys_Printf ("branch %i (%i)", ofs, addr + ofs);
Sys_Printf ("branch %i (%04x)", ofs, addr + ofs);
break;
case OP_RETURN:

View File

@ -304,7 +304,8 @@ PR_GlobalString (progs_t *pr, int ofs, etype_t type)
else
dsprintf (line, "%s", s);
} else if (strequal(name, "?"))
dsprintf (line, "[$%x]", ofs);
dsprintf (line, "[$%x](%08x)", ofs,
pr->pr_globals[ofs].integer_var);
else {
if (type == ev_func)
dsprintf (line, "%s%s", name, oi);