mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:04:59 +00:00
Kernel: Print panic backtrace to both the screen and serial
Previously it would only print the backtrace to serial, which would be inaccessible if you don't have serial setup.
This commit is contained in:
parent
7c617394a1
commit
cbbbc38f27
3 changed files with 22 additions and 9 deletions
|
@ -15,6 +15,11 @@ struct KernelSymbol {
|
|||
const char* name;
|
||||
};
|
||||
|
||||
enum class PrintToScreen {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
|
||||
FlatPtr address_for_kernel_symbol(const StringView& name);
|
||||
const KernelSymbol* symbolicate_kernel_address(FlatPtr);
|
||||
void load_kernel_symbol_table();
|
||||
|
@ -23,6 +28,6 @@ extern bool g_kernel_symbols_available;
|
|||
extern FlatPtr g_lowest_kernel_symbol_address;
|
||||
extern FlatPtr g_highest_kernel_symbol_address;
|
||||
|
||||
void dump_backtrace();
|
||||
void dump_backtrace(PrintToScreen print_to_screen = PrintToScreen::No);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue