summaryrefslogtreecommitdiff
path: root/Kernel/Thread.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-07 17:58:29 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-07 19:27:00 +0100
commit5c45b0d32d79d5070442e7bb2ced57c8a0c4ae73 (patch)
tree07bf7a1d1b53d6a217aec1c10d5a8d1f5f4771c7 /Kernel/Thread.cpp
parentfd3eca3accc501f779db5015c8bdacee4ed30b51 (diff)
downloadserenity-5c45b0d32d79d5070442e7bb2ced57c8a0c4ae73.zip
Kernel: Combine Thread::backtrace() and backtrace_impl() into one
Diffstat (limited to 'Kernel/Thread.cpp')
-rw-r--r--Kernel/Thread.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/Kernel/Thread.cpp b/Kernel/Thread.cpp
index b7ec88bdee..54db5fbcbd 100644
--- a/Kernel/Thread.cpp
+++ b/Kernel/Thread.cpp
@@ -393,7 +393,7 @@ void Thread::finalize()
}
if (m_dump_backtrace_on_finalization)
- dbgln("{}", backtrace_impl());
+ dbgln("{}", backtrace());
kfree_aligned(m_fpu_state);
drop_thread_count(false);
@@ -959,11 +959,6 @@ void Thread::set_state(State new_state, u8 stop_signal)
}
}
-String Thread::backtrace()
-{
- return backtrace_impl();
-}
-
struct RecognizedSymbol {
u32 address;
const KernelSymbol* symbol { nullptr };
@@ -992,7 +987,7 @@ static bool symbolicate(const RecognizedSymbol& symbol, const Process& process,
return true;
}
-String Thread::backtrace_impl()
+String Thread::backtrace()
{
Vector<RecognizedSymbol, 128> recognized_symbols;