Branch: Tag:

2015-04-30

2015-04-30 15:19:26 by Martin Nilsson <nilsson@opera.com>

Moved gc_set_watch to Debug.

333:    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)