Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move debugger core functionality to separate process? #688

Open
eteran opened this Issue Dec 21, 2018 · 5 comments

Comments

Projects
None yet
3 participants
@eteran
Copy link
Owner

eteran commented Dec 21, 2018

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.

@eteran eteran added the enhancement label Dec 21, 2018

@10110111

This comment has been minimized.

Copy link
Contributor

10110111 commented Dec 21, 2018

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.

@AaronOpfer

This comment has been minimized.

Copy link
Contributor

AaronOpfer commented Dec 21, 2018

Which platforms are you referring to?

@eteran

This comment has been minimized.

Copy link
Owner Author

eteran commented Dec 21, 2018

macOS requires privileges last I checked, so do some of the BSDs.

@eteran

This comment has been minimized.

Copy link
Owner Author

eteran commented Dec 21, 2018

@10110111 sure, in fact, it is my understanding that gdb is always using gdbserver, just when it's local it does it via UNIX domain sockets to the local host.

@eteran

This comment has been minimized.

Copy link
Owner Author

eteran commented Dec 21, 2018

In particular, I'd like to see if edb can work well on macOS, as I think there's a lot of potentials there and not a lot of tools available for the types of things that edb can do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.