Go to the source code of this file.
◆ ASSERT
| #define ASSERT |
( |
|
CONDITION | ) |
|
Value: if ((CONDITION)) { } else { \
PANIC ("assertion `%s' failed.", #CONDITION); \
}
◆ NO_INLINE
◆ NO_RETURN
◆ NOT_REACHED
| #define NOT_REACHED |
( |
| ) |
PANIC ("executed an unreachable statement"); |
◆ PANIC
| #define PANIC |
( |
|
... | ) |
debug_panic (__FILE__, __LINE__, __func__, __VA_ARGS__) |
◆ PRINTF_FORMAT
◆ UNUSED
◆ debug_backtrace()
| void debug_backtrace |
( |
void |
| ) |
|
13 {
14 static bool explained;
16
18 for (
frame = __builtin_frame_address (0);
23
24 if (!explained) {
25 explained = true;
26 printf (
"The `backtrace' program can make call stacks useful.\n"
27 "Read \"Backtraces\" in the \"Debugging Tools\" chapter\n"
28 "of the Pintos documentation for more information.\n");
29 }
30}
#define NULL
Definition: stddef.h:4
int printf(const char *,...) PRINTF_FORMAT(1
◆ debug_panic()
| void debug_panic |
( |
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
function, |
|
|
const char * |
message, |
|
|
|
... |
|
) |
| |
◆ NO_RETURN