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

SystemMonitor: Use SymbolServer to symbolicate thread stacks

This commit is contained in:
Andreas Kling 2021-02-04 23:18:25 +01:00
parent b7d16e3496
commit 5dd555fe2f
3 changed files with 20 additions and 10 deletions

View file

@ -112,7 +112,7 @@ int main(int argc, char** argv)
auto app = GUI::Application::construct(argc, argv);
if (pledge("stdio proc recvfd sendfd accept rpath exec", nullptr) < 0) {
if (pledge("stdio proc recvfd sendfd accept rpath exec unix", nullptr) < 0) {
perror("pledge");
return 1;
}
@ -137,6 +137,11 @@ int main(int argc, char** argv)
return 1;
}
if (unveil("/tmp/portal/symbol", "rw") < 0) {
perror("unveil");
return 1;
}
if (unveil("/bin", "r") < 0) {
perror("unveil");
return 1;