mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:37:35 +00:00
Kernel: Make Thread::backtrace() fallible using KString
This commit is contained in:
parent
06af81fcfb
commit
9a7cd8fef8
3 changed files with 16 additions and 17 deletions
|
@ -13,7 +13,6 @@
|
|||
#include <AK/IntrusiveList.h>
|
||||
#include <AK/Optional.h>
|
||||
#include <AK/OwnPtr.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/TemporaryChange.h>
|
||||
#include <AK/Time.h>
|
||||
#include <AK/Variant.h>
|
||||
|
@ -1247,7 +1246,7 @@ public:
|
|||
bool is_allocation_enabled() const { return m_allocation_enabled; }
|
||||
void set_allocation_enabled(bool value) { m_allocation_enabled = value; }
|
||||
|
||||
String backtrace();
|
||||
ErrorOr<NonnullOwnPtr<KString>> backtrace();
|
||||
|
||||
private:
|
||||
Thread(NonnullRefPtr<Process>, NonnullOwnPtr<Memory::Region>, NonnullRefPtr<Timer>, NonnullOwnPtr<KString>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue