pike.git/
src/
modules/
_Debug/
debug.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2015-04-30
2015-04-30 15:19:26 by Martin Nilsson <nilsson@opera.com>
d1d940940e6b86547b033b0c362df9c2361ce6c5 (
18
lines) (+
18
/-
0
)
[
Show
|
Annotate
]
Branch:
8.1
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)