Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Move debugger core functionality to separate process? #688
There are some platforms which will require root privileges to use the debugging API. It is probably undesirable to ask a user to run the debugger as root, so it is a cleaner design to have the debugger core gain root privileges by being a suid root binary.
We obviously would want to not sacrifice performance, so things such as reading large segments of memory would have to be well thought out.
What are some examples of such platforms? It seems to require quite an error-prone changes for seemingly small gain (compared to running EDB as root).
I think, if this is to be done, it should be done simultaneously with implementing remote debugging functionality. Optimized reading of large segments of memory could be an additional feature, e.g. using shared memory or something like that. But by default the interaction could be via network.