pike.git / src / interpret.c

version» Context lines:

pike.git/src/interpret.c:850:      if((stepping_mode != 0 && stepping_thread == th_self()) || Pike_fp->context->prog == bp_prog)   {       char *file = NULL, *f;    struct pike_string *filep2;       printf("stepping_mode: %d, stepping_thread: %p\n", stepping_mode, stepping_thread);    filep2 = get_line(Pike_fp->pc,Pike_fp->context->prog,&linep);    if (filep2 && !filep2->size_shift) { -  file = filep->str; +  file = filep2->str;    while((f=strchr(file,'/')))    file=f+1;    }    fprintf(stderr,"- %s:%4ld:%p(%"PRINTPTRDIFFT"d): "    "%-25s %4"PRINTPTRDIFFT"d %4"PRINTPTRDIFFT"d\n",    file ? file : "-",(long)linep,    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);
pike.git/src/interpret.c:891:    safe_apply_svalue(Pike_sp-1, 0, 1);       if(TYPEOF(Pike_sp[-1]) != T_FUNCTION) {    Pike_error("Could not get debugger for breakpoint.\n");    }       // TODO check we actually got the memory.    debugger_server = malloc(sizeof(struct svalue));       -  assign_svalue((debugger_server), Pike_sp-1); +  assign_svalue_no_free((debugger_server), Pike_sp-1);    add_ref_svalue((debugger_server));       pop_stack();    pop_stack();    }       filep = get_line(Pike_fp->pc,Pike_fp->context->prog,&linep);       ref_push_string(filep);    push_int(linep);