pike.git / src / interpret.c

version» Context lines:

pike.git/src/interpret.c:3939:    }    else    fputs ("frame with no references\n", stderr);   }      /*: Prints the Pike backtraces for the interpreter contexts in all    *: Pike threads to stderr, using @[gdb_backtrace].    *:    *: This function is intended only for convenient use inside a    *: debugger session; it can't be used from inside the program. +  *: +  *: It is also used as a fallback from Pike_fatal() if the master +  *: object doesn't exist or fails to format the backtrace.    */   void gdb_backtraces()   {   #ifdef PIKE_THREADS    extern INT32 gdb_next_thread_state(INT32, struct thread_state **);    INT32 i = 0;    struct thread_state *ts = 0;    while ((i = gdb_next_thread_state (i, &ts)), ts) {    fprintf (stderr, "\nTHREAD_ID %p (swapped %s):\n",    (void *)(ptrdiff_t)ts->id, ts->swapped ? "out" : "in");