4 Created: Jan 19, 1993 by Philip Homburg
6 Copyright 1995 Philip Homburg
11 #include <minix/sysutil.h>
13 typedef unsigned int reg_t
;
15 extern reg_t
get_bp(void);
17 void util_stacktrace(void)
26 hbp
= ((reg_t
*)bp
)[0];
27 printf("0x%lx ", (unsigned long) pc
);
28 if (hbp
!= 0 && hbp
<= bp
)
30 printf("0x%lx ", (unsigned long) -1);
36 #endif /* USE_SYSDEBUG */