mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
Kernel: Make Processor::capture_stack_trace fallible using ErrorOr
This commit is contained in:
parent
03b7352286
commit
0142f33ddc
Notes:
sideshowbarker
2024-07-17 20:49:09 +09:00
Author: https://github.com/IdanHo
Commit: 0142f33ddc
Pull-request: https://github.com/SerenityOS/serenity/pull/11932
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/creator1creeper1
4 changed files with 15 additions and 12 deletions
|
@ -398,7 +398,7 @@ public:
|
|||
NEVER_INLINE void switch_context(Thread*& from_thread, Thread*& to_thread);
|
||||
[[noreturn]] static void assume_context(Thread& thread, FlatPtr flags);
|
||||
FlatPtr init_context(Thread& thread, bool leave_crit);
|
||||
static Vector<FlatPtr, 32> capture_stack_trace(Thread& thread, size_t max_frames = 0);
|
||||
static ErrorOr<Vector<FlatPtr, 32>> capture_stack_trace(Thread& thread, size_t max_frames = 0);
|
||||
|
||||
static StringView platform_string();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue