diff options
author | Rodrigo Tobar <rtobarc@gmail.com> | 2021-09-28 23:59:50 +0800 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-30 00:51:08 +0200 |
commit | 840822b8f100bac14a3ad0ac94f87912da1abd1e (patch) | |
tree | ab8a73ebcb8432feafa08926897e2addff4e17f7 /Userland/Applications/SystemMonitor | |
parent | ee8380edeabf822cf194eacaf081b801deea6c3a (diff) | |
download | serenity-840822b8f100bac14a3ad0ac94f87912da1abd1e.zip |
LibSymbolication+SystemMonitor: Show ELF object in stack
This small patch allows SystemMonitor's Stack tab to show the name of
the ELF object to which the displayed address refers to. This gives a
bit more of contextual information to the viewer.
A better to show this is probably a table, but I'm not that familiar yet
with the GUI framework in general, so I'm keeping things simple.
Diffstat (limited to 'Userland/Applications/SystemMonitor')
-rw-r--r-- | Userland/Applications/SystemMonitor/ThreadStackWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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'); |