mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 08:45:09 +00:00

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.
26 lines
543 B
C++
26 lines
543 B
C++
/*
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/String.h>
|
|
#include <LibDebug/DebugInfo.h>
|
|
|
|
namespace Symbolication {
|
|
|
|
struct Symbol {
|
|
FlatPtr address { 0 };
|
|
String name {};
|
|
String object {};
|
|
u32 offset { 0 };
|
|
Vector<Debug::DebugInfo::SourcePosition> source_positions;
|
|
};
|
|
|
|
Optional<FlatPtr> kernel_base();
|
|
Vector<Symbol> symbolicate_thread(pid_t pid, pid_t tid);
|
|
Optional<Symbol> symbolicate(String const& path, FlatPtr address);
|
|
|
|
}
|