Branch: Tag:

2011-05-17

2011-05-17 10:50:33 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Interpreter: Display the program pointer (not just the offset) when tracing byte-code instructions.

880:    while((f=STRCHR(file,'/')))    file=f+1;    } -  fprintf(stderr,"- %s:%4ld:(%"PRINTPTRDIFFT"d): " +  fprintf(stderr,"- %s:%4ld:%p(%"PRINTPTRDIFFT"d): "    "%-25s %4"PRINTPTRDIFFT"d %4"PRINTPTRDIFFT"d\n",    file ? file : "-",(long)linep, -  Pike_fp->pc - Pike_fp->context->prog->program, +  Pike_fp->pc, Pike_fp->pc - Pike_fp->context->prog->program,    get_opcode_name(instr),    Pike_sp-Pike_interpreter.evaluator_stack,    Pike_mark_sp-Pike_interpreter.mark_stack);