15 static bool explained;
18 printf (
"Call stack: %p", __builtin_return_address (0));
19 for (frame = __builtin_frame_address (1);
28 printf (
"The `backtrace' program can make call stacks useful.\n"
29 "Read \"Backtraces\" in the \"Debugging Tools\" chapter\n"
30 "of the Pintos documentation for more information.\n");
void debug_backtrace(void)
Prints the call stack, that is, a list of addresses, one in each of the functions we are nested withi...
int printf(const char *format,...)
Writes formatted output to the console.