diff options
Diffstat (limited to 'Userland/Libraries/LibCoreDump/Backtrace.h')
-rw-r--r-- | Userland/Libraries/LibCoreDump/Backtrace.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Userland/Libraries/LibCoreDump/Backtrace.h b/Userland/Libraries/LibCoreDump/Backtrace.h index 6915b170c2..a0ca69d480 100644 --- a/Userland/Libraries/LibCoreDump/Backtrace.h +++ b/Userland/Libraries/LibCoreDump/Backtrace.h @@ -29,6 +29,7 @@ #include <AK/Types.h> #include <LibCoreDump/Reader.h> #include <LibDebug/DebugInfo.h> +#include <LibELF/CoreDump.h> namespace CoreDump { @@ -54,14 +55,16 @@ public: String to_string(bool color = false) const; }; - Backtrace(const Reader&); + Backtrace(const Reader&, const ELF::Core::ThreadInfo&); ~Backtrace(); + const ELF::Core::ThreadInfo thread_info() const { return m_thread_info; } const Vector<Entry> entries() const { return m_entries; } private: - void add_backtrace_entry(const Reader&, FlatPtr eip); + void add_entry(const Reader&, FlatPtr eip); + ELF::Core::ThreadInfo m_thread_info; Vector<Entry> m_entries; }; |