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

version» Context lines:

pike.git/src/modules/_Debug/debug.cmod:6:      #include "global.h"   #include "module.h"   #include "pike_error.h"   #include "interpret.h"   #include "pike_embed.h"   #include "module_support.h"   #include "builtin_functions.h"   #include "mapping.h"   #include "multiset.h" + #include "gc.h"      DECLARATIONS      /*! @module Debug    */      /*! @decl int(0..) map_all_objects(function(object:void) cb)    *!    *! Call cb for all objects that currently exist. The callback will    *! not be called with destructed objects as it's argument.
pike.git/src/modules/_Debug/debug.cmod:308:    *! @note    *! This function only exists if the Pike runtime has been compiled    *! with RTL debug.    */   PIKEFUN mixed locate_references(mixed o)    rawtype tFunc(tSetvar(1,tMix),tVar(1));   {    locate_references(o);   }    + /*! @decl mixed describe(mixed x) +  *! @belongs Debug +  *! +  *! Prints out a description of the thing @[x] to standard error. +  *! The description contains various internal info associated with +  *! @[x]. +  *! +  *! @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])); + } +    #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