PKUOS - Pintos
Pintos source browser for PKU Operating System course
Functions
debug.c File Reference
#include <debug.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
Include dependency graph for debug.c:

Go to the source code of this file.

Functions

void debug_backtrace (void)
 Prints the call stack, that is, a list of addresses, one in each of the functions we are nested within. More...
 

Function Documentation

◆ debug_backtrace()

void debug_backtrace ( void  )

Prints the call stack, that is, a list of addresses, one in each of the functions we are nested within.

gdb or addr2line may be applied to kernel.o to translate these into file names, line numbers, and function names.

Definition at line 13 of file debug.c.

References NULL, and printf().

Referenced by debug_panic().

Here is the call graph for this function:
Here is the caller graph for this function: