mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 06:37:52 +00:00
Kernel: Make Processor::capture_stack_trace fallible using ErrorOr
This commit is contained in:
@@ -1192,7 +1192,7 @@ ErrorOr<NonnullOwnPtr<KString>> Thread::backtrace()
|
||||
Vector<RecognizedSymbol, 128> recognized_symbols;
|
||||
|
||||
auto& process = const_cast<Process&>(this->process());
|
||||
auto stack_trace = Processor::capture_stack_trace(*this);
|
||||
auto stack_trace = TRY(Processor::capture_stack_trace(*this));
|
||||
VERIFY(!g_scheduler_lock.is_locked_by_current_processor());
|
||||
ScopedAddressSpaceSwitcher switcher(process);
|
||||
for (auto& frame : stack_trace) {
|
||||
|
||||
Reference in New Issue
Block a user