Struct kernel::process::ProcessDebug
[−]
[src]
struct ProcessDebug { app_heap_start_pointer: Option<*const u8>, app_stack_start_pointer: Option<*const u8>, min_stack_pointer: *const u8, syscall_count: Cell<usize>, last_syscall: Cell<Option<Syscall>>, }
State for helping with debugging apps.
These pointers and counters are not strictly required for kernel operation, but provide helpful information when an app crashes.
Fields
app_heap_start_pointer: Option<*const u8>
Where the process has started its heap in RAM.
app_stack_start_pointer: Option<*const u8>
Where the start of the stack is for the process. If the kernel does the PIC setup for this app then we know this, otherwise we need the app to tell us where it put its stack.
min_stack_pointer: *const u8
How low have we ever seen the stack pointer.
syscall_count: Cell<usize>
How many syscalls have occurred since the process started.
last_syscall: Cell<Option<Syscall>>
What was the most recent syscall.