Skip to content

Commit

Permalink
print trace offsets in hexadecimal, TT #1430
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.parrot.org/parrot/trunk@45324 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
NotFound committed Mar 30, 2010
1 parent c3b8efd commit d4b88b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/runcore/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ trace_op_dump(PARROT_INTERP,
sig = NULL; /* silence compiler uninit warning */

s = 1;
len = Parrot_io_eprintf(debugger, "%6vu ", (UINTVAL)(pc - code_start));
len = Parrot_io_eprintf(debugger, "%04vx ", (UINTVAL)(pc - code_start));
len += Parrot_io_eprintf(debugger, "%s", info->name);

n = info->op_count;
Expand Down
4 changes: 2 additions & 2 deletions t/op/interp.t
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ pasm_output_like(
end
CODE
/^ok\s1\n
(?:\s+8.*)?\n
(?:\s+10.*)?\n
(?:0+8.*)?\n
(?:0+a.*)?\n
ok\s2\n$/x
OUTPUT

Expand Down

0 comments on commit d4b88b7

Please sign in to comment.