diff --git a/Userland/Applications/SystemMonitor/ThreadStackWidget.cpp b/Userland/Applications/SystemMonitor/ThreadStackWidget.cpp index d0ccef72a7..d544d29a48 100644 --- a/Userland/Applications/SystemMonitor/ThreadStackWidget.cpp +++ b/Userland/Applications/SystemMonitor/ThreadStackWidget.cpp @@ -79,7 +79,7 @@ void ThreadStackWidget::custom_event(Core::CustomEvent& event) StringBuilder builder; for (auto& symbol : completion_event.symbols()) { - builder.appendff("{:p}", symbol.address); + builder.appendff("{:p} {:30s}", symbol.address, symbol.object); if (!symbol.name.is_empty()) builder.appendff(" {}", symbol.name); builder.append('\n'); diff --git a/Userland/Libraries/LibSymbolication/Symbolication.cpp b/Userland/Libraries/LibSymbolication/Symbolication.cpp index 67a0f8b894..50f78acb52 100644 --- a/Userland/Libraries/LibSymbolication/Symbolication.cpp +++ b/Userland/Libraries/LibSymbolication/Symbolication.cpp @@ -121,6 +121,7 @@ Optional symbolicate(String const& path, FlatPtr address) return Symbol { .address = address, .name = move(symbol), + .object = LexicalPath::basename(path), .offset = offset, .source_positions = move(positions), }; diff --git a/Userland/Libraries/LibSymbolication/Symbolication.h b/Userland/Libraries/LibSymbolication/Symbolication.h index a5a128ecad..5dc8b728f5 100644 --- a/Userland/Libraries/LibSymbolication/Symbolication.h +++ b/Userland/Libraries/LibSymbolication/Symbolication.h @@ -14,6 +14,7 @@ namespace Symbolication { struct Symbol { FlatPtr address { 0 }; String name {}; + String object {}; u32 offset { 0 }; Vector source_positions; };