Changes in uspace/lib/c/generic/stacktrace.c [c7bbf029:63f8966] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/stacktrace.c
rc7bbf029 r63f8966 50 50 51 51 while (stacktrace_fp_valid(&st, fp)) { 52 printf("%p: %p()\n", (void *) fp, (void *)pc);52 printf("%p: %p()\n", fp, pc); 53 53 (void) stacktrace_ra_get(&st, fp, &pc); 54 54 (void) stacktrace_fp_prev(&st, fp, &nfp); … … 61 61 stacktrace_prepare(); 62 62 stacktrace_print_fp_pc(stacktrace_fp_get(), stacktrace_pc_get()); 63 64 63 /* 65 64 * Prevent the tail call optimization of the previous call by 66 65 * making it a non-tail call. 67 66 */ 68 69 printf("-- end of stack trace --\n"); 67 (void) stacktrace_fp_get(); 70 68 } 71 69
Note:
See TracChangeset
for help on using the changeset viewer.