Repository navigation
feat #81: print stack - #121
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR implements stack tracing functionality for the kernel by adding a print_stack_trace() function that displays both stack contents and call chain information. The feature is integrated into the kernel panic handler to provide debugging information when the system crashes.
- Added
print_stack_trace()function that walks the stack frame and prints memory contents and return addresses - Integrated stack tracing into the kernel panic macro to automatically show stack information during crashes
- Added test panic call in TTY handler to demonstrate the functionality
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| kernel/src/utils.c | Implements the stack tracing functionality with x86 assembly |
| kernel/include/utils.h | Header declaration for the stack trace function |
| kernel/include/kpanic.h | Integrates stack tracing into the panic handler |
| kernel/src/tty/tty.c | Adds test panic call to demonstrate stack tracing |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Antoine Verin <24255551+antoineverin@users.noreply.github.com>
8655ecc to
5b6ab46
Compare
|



No description provided.