Branch: Tag:

2019-11-03

2019-11-03 22:08:08 by Mateusz Krawczuk <krawczukmat@gmail.com>

Debugger: allow enabling/disabling debugger with set_debugger.

__builtin.set_debugger function allows setting value of
debugger_enabled.

529:    push_array(res);   }    + PMOD_EXPORT + PIKEFUN int set_debugger(int i) + optflags OPT_SIDE_EFFECT; + efun; +  { +  int tmp = debugger_enabled; +  debugger_enabled = i; +  pop_stack(); +  push_int(tmp); + } +    /*! @decl string basetype(mixed x)    *!    *! Same as sprintf("%t",x);
3959:      /*! @endmodule    */ -  +    void low_backtrace(struct Pike_interpreter_struct *i, int flags)   {    struct svalue *stack_top = i->stack_pointer;