1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

LibSymbolClient+bt: Move bt logic to SymbolClient::symbolicate_thread()

Since this is useful in many places, let's have a common implementation
of walking the stack of a given thread via /proc and symbolicating each
of the frames.
This commit is contained in:
Andreas Kling 2021-02-04 23:04:58 +01:00
parent a5d89ca5df
commit b7d16e3496
3 changed files with 130 additions and 113 deletions

View file

@ -34,12 +34,14 @@ namespace SymbolClient {
struct Symbol {
FlatPtr address { 0 };
String name;
String name {};
u32 offset { 0 };
String filename;
String filename {};
u32 line_number { 0 };
};
Vector<Symbol> symbolicate_thread(pid_t pid, pid_t tid);
class Client
: public IPC::ServerConnection<SymbolClientEndpoint, SymbolServerEndpoint>
, public SymbolClientEndpoint {