|
CS318 - Pintos
Pintos source browser for JHU CS318 course
|
#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"#include "devices/shutdown.h"
Go to the source code of this file.
Functions | |
| void | debug_panic (const char *file, int line, const char *function, const char *message,...) |
| Halts the OS, printing the source file name, line number, and function name, plus a user-specific message. More... | |
| static void | print_stacktrace (struct thread *t, void *aux UNUSED) |
| Print call stack of a thread. More... | |
| void | debug_backtrace_all (void) |
| Prints call stack of all threads. More... | |
| void debug_backtrace_all | ( | void | ) |
Prints call stack of all threads.
Definition at line 117 of file debug.c.
References intr_disable(), intr_set_level(), print_stacktrace(), and thread_foreach().

| void debug_panic | ( | const char * | file, |
| int | line, | ||
| const char * | function, | ||
| const char * | message, | ||
| ... | |||
| ) |
Halts the OS, printing the source file name, line number, and function name, plus a user-specific message.
Definition at line 19 of file debug.c.
References console_panic(), debug_backtrace(), intr_disable(), printf(), serial_flush(), shutdown(), va_end, va_start, and vprintf().

|
static |
Print call stack of a thread.
The thread may be running, ready, or blocked.
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.8.16