Branch: Tag:

2002-09-21

2002-09-21 16:29:43 by Martin Stjernholm <mast@lysator.liu.se>

Set a breakpoint on pike_gdb_breakpoint by default when gdb is started. Made
it accessible from pike with "_gdb_breakpoint" to make it convenient to
enter gdb at a specific point in the pike code.

Rev: bin/pike.in:1.11
Rev: src/Makefile.in:1.324
Rev: src/builtin_functions.c:1.439
Rev: src/error.c:1.88

22:   #include "threads.h"   #include "gc.h"    - RCSID("$Id: error.c,v 1.87 2002/08/15 17:43:25 marcus Exp $"); + RCSID("$Id: error.c,v 1.88 2002/09/21 16:29:43 mast Exp $");      #undef ATTRIBUTE   #define ATTRIBUTE(X)
83:       /* Add more stuff here when required */   } + #endif      PMOD_EXPORT void pike_gdb_breakpoint(void)   {   } - #endif +       PMOD_EXPORT JMP_BUF *init_recovery(JMP_BUF *r DEBUG_LINE_ARGS)   {
363:    }       in_fatal = 1; + #if 0   #ifdef PIKE_DEBUG    dump_backlog();   #endif -  + #endif       if(Pike_in_gc)    fprintf(stderr,"Pike was in GC stage %d when this fatal occured:\n",Pike_in_gc);