pike.git / src / modules / _Debug / debug.cmod

version» Context lines:

pike.git/src/modules/_Debug/debug.cmod:326:    *! @note    *! This function only exists if the Pike runtime has been compiled    *! with RTL debug.    */   PIKEFUN mixed describe(mixed x)    rawtype tFunc(tSetvar(1,tMix),tVar(1));   {    debug_describe_svalue(debug_malloc_pass(&Pike_sp[-1]));   }    + /*! @decl void gc_set_watch(array|multiset|mapping|object|function|program|string x) +  *! @belongs Debug +  *! +  *! Sets a watch on the given thing, so that the gc will print a +  *! message whenever it's encountered. Intended to be used together +  *! with breakpoints to debug the garbage collector. +  *! +  *! @note +  *! This function only exists if the Pike runtime has been compiled +  *! with RTL debug. +  */ + PIKEFUN void gc_set_watch(array|multiset|mapping|object|function|program|string x) + { +  gc_watch(&Pike_sp[-1]); +  pop_stack(); + } +    #ifdef YYDEBUG      /*! @decl int(0..) compiler_trace(int(0..) level)    *!    *! Set the compiler trace level.    *!    *! @returns    *! The old compiler trace level will be returned.    *!    *! @note