SystemMonitor: Use SymbolServer to symbolicate thread stacks

This commit is contained in:
Andreas Kling 2021-02-04 23:18:25 +01:00
commit 5dd555fe2f
Notes: sideshowbarker 2024-07-18 22:35:40 +09:00
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;