#include <debug.h>#include <console.h>#include <stdarg.h>#include <stdbool.h>#include <stddef.h>#include <stdio.h>#include <string.h>#include "threads/init.h"#include "threads/interrupt.h"#include "threads/thread.h"#include "threads/switch.h"#include "threads/vaddr.h"#include "devices/serial.h"Go to the source code of this file.
Functions | |
| void | debug_panic (const char *file, int line, const char *function, const char *message,...) |
| static void | print_stacktrace (struct thread *t, void *aux UNUSED) |
| void | debug_backtrace_all (void) |
| void debug_backtrace_all | ( | void | ) |
Definition at line 117 of file debug.c.
References intr_disable(), intr_set_level(), print_stacktrace(), and thread_foreach().
Referenced by keyboard_interrupt().
| void debug_panic | ( | const char * | file, | |
| int | line, | |||
| const char * | function, | |||
| const char * | message, | |||
| ... | ||||
| ) |
Definition at line 18 of file debug.c.
References console_panic(), debug_backtrace(), intr_disable(), power_off(), power_off_when_done, printf(), serial_flush(), va_end, va_start, and vprintf().
| static void print_stacktrace | ( | struct thread * | t, | |
| void *aux | UNUSED | |||
| ) | [static] |
Definition at line 56 of file debug.c.
References switch_threads_frame::ebp, switch_threads_frame::eip, thread::name, NULL, PGSIZE, printf(), thread::stack, thread::status, switch_entry(), THREAD_BLOCKED, thread_current(), THREAD_READY, and THREAD_RUNNING.
Referenced by debug_backtrace_all().
1.5.6