Branch: Tag:

2015-03-08

2015-03-08 02:22:50 by Martin Nilsson <nilsson@opera.com>

Remove pike security from debug functions.

10:   #include "interpret.h"   #include "pike_embed.h"   #include "module_support.h" - #include "pike_security.h" +       #ifdef PIKE_DEBUG   /* This function is for debugging *ONLY*
113: Inside #if defined(PIKE_DEBUG)
   struct program *p;    INT_TYPE indent = 0;    -  ASSERT_SECURITY_ROOT("dump_program_tables"); /* FIXME: Might want lower. */ +     get_all_args("dump_program_tables", args, "%p.%+", &p, &indent);       dump_program_tables(p, indent);
138: Inside #if defined(PIKE_DEBUG) and #if defined(YYDEBUG)
  {    extern int yydebug;    INT_TYPE yyd; -  ASSERT_SECURITY_ROOT("_compiler_trace"); +     -  get_all_args("_compiler_trace", args, "%i", &yyd); +  get_all_args("compiler_trace", args, "%i", &yyd);    pop_n_elems(args);    push_int(yydebug);    yydebug = yyd;