add/re-enable at_wini debug output
[minix3.git] / servers / inet / stacktrace.c
blobd4e8adf684b5e4d0b39039c8831b33fd86dea73a
1 /*
2 stacktrace.c
4 Created: Jan 19, 1993 by Philip Homburg
6 Copyright 1995 Philip Homburg
7 */
9 #include "inet.h"
11 PUBLIC void stacktrace()
13 typedef unsigned int reg_t;
14 reg_t bp, pc, hbp;
15 extern reg_t get_bp ARGS(( void ));
17 bp= get_bp();
18 while(bp)
20 pc= ((reg_t *)bp)[1];
21 hbp= ((reg_t *)bp)[0];
22 printf("0x%lx ", (unsigned long)pc);
23 if (hbp != 0 && hbp <= bp)
25 printf("???");
26 break;
28 bp= hbp;
30 printf("\n");
34 * $PchId: stacktrace.c,v 1.6 1996/05/07 21:11:34 philip Exp $