Lines Matching refs:fp
69 struct frame *fp; in backtrace() local
81 fp = (struct frame*)((char*)(fpval) + STACK_BIAS); in backtrace()
83 for (i = 0; (i < FRAME_OFFSET) && (fp != NULL); i++) in backtrace()
84 fp = (struct frame*)((char*)(fp->fr_savfp) + STACK_BIAS); in backtrace()
87 for (i = 0; (fp != NULL) && (fp->fr_savpc != 0) && (i < max_frames); i++) in backtrace()
90 struct frame * prev = (struct frame*)((char*)(fp->fr_savfp) + STACK_BIAS); in backtrace()
93 *(buffer++) = (void*)(fp->fr_savpc); in backtrace()
96 fp = (prev > fp) ? prev : 0; in backtrace()
105 FILE *fp = fdopen( fd, "w" ); in backtrace_symbols_fd() local
107 if ( fp ) in backtrace_symbols_fd()
121 fprintf( fp, "%s+0x%" SAL_PRI_PTRDIFFT "x", dli.dli_fname, offset ); in backtrace_symbols_fd()
126 fprintf( fp, "(%s+0x%" SAL_PRI_PTRDIFFT "x)", dli.dli_sname, offset ); in backtrace_symbols_fd()
129 fprintf( fp, "[%p]\n", *pFramePtr ); in backtrace_symbols_fd()
132 fflush( fp ); in backtrace_symbols_fd()
133 fclose( fp ); in backtrace_symbols_fd()
153 struct frame *fp; in backtrace() local
158 fp = (struct frame*)(((size_t*)(ctx))[FRAME_PTR_OFFSET]); in backtrace()
159 for ( i=0; (i<FRAME_OFFSET) && (fp!=NULL); i++) in backtrace()
160 fp = fp->fr_savfp; in backtrace()
162 for (i=0; fp && fp->fr_savpc && i<max_frames; i++) in backtrace()
165 *(buffer++) = (void *)fp->fr_savpc; in backtrace()
167 fp=fp->fr_savfp; in backtrace()
174 FILE *fp = fdopen( fd, "w" ); in backtrace_symbols_fd() local
176 if ( fp ) in backtrace_symbols_fd()
189 fprintf( fp, "%s+0x%" SAL_PRI_PTRDIFFT "x", dli.dli_fname, offset ); in backtrace_symbols_fd()
194 fprintf( fp, "(%s+0x%" SAL_PRI_PTRDIFFT "x)", dli.dli_sname, offset ); in backtrace_symbols_fd()
197 fprintf( fp, "[%p]\n", *pFramePtr ); in backtrace_symbols_fd()
199 fflush( fp ); in backtrace_symbols_fd()
200 fclose( fp ); in backtrace_symbols_fd()
232 struct frame *fp; in backtrace() local
242 fp = (struct frame*)(((size_t*)(ctx))[FRAME_PTR_OFFSET]); in backtrace()
243 for ( i=0; (i<FRAME_OFFSET) && (fp!=NULL); i++) in backtrace()
244 fp = fp->fr_savfp; in backtrace()
247 for (i=0; fp && fp->fr_savpc && i<max_frames; i++) in backtrace()
250 *(buffer++) = (void *)fp->fr_savpc; in backtrace()
252 fp=fp->fr_savfp; in backtrace()
259 FILE *fp = fdopen( fd, "w" ); in backtrace_symbols_fd() local
261 if ( fp ) in backtrace_symbols_fd()
275 fprintf( fp, "%s+0x%" SAL_PRI_PTRDIFFT "x", dli.dli_fname, offset ); in backtrace_symbols_fd()
280 fprintf( fp, "(%s+0x%" SAL_PRI_PTRDIFFT "x)", dli.dli_sname, offset ); in backtrace_symbols_fd()
283 fprintf( fp, "[%p]\n", *pFramePtr ); in backtrace_symbols_fd()
286 fflush( fp ); in backtrace_symbols_fd()
287 fclose( fp ); in backtrace_symbols_fd()
325 FILE *fp = fdopen( fd, "w" ); in backtrace_symbols_fd() local
327 if ( fp ) in backtrace_symbols_fd()
341 fprintf( fp, "%s+0x%" SAL_PRI_PTRDIFFT "x", dli.dli_fname, offset ); in backtrace_symbols_fd()
346 fprintf( fp, "(%s+0x%" SAL_PRI_PTRDIFFT "x)", dli.dli_sname, offset ); in backtrace_symbols_fd()
349 fprintf( fp, "[%p]\n", *pFramePtr ); in backtrace_symbols_fd()
352 fflush( fp ); in backtrace_symbols_fd()
353 fclose( fp ); in backtrace_symbols_fd()