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

include gdb-gdbserver in docker images #140

Open
fche opened this issue Nov 8, 2018 · 1 comment
Open

include gdb-gdbserver in docker images #140

fche opened this issue Nov 8, 2018 · 1 comment

Comments

@fche
Copy link

fche commented Nov 8, 2018

RHEL base docker images include the /usr/bin/gdbserver (gdb-gdbserver subrpm), because this enables somewhat straightforward remote debugging of running containers. (gdbserver acts as a remote debugging agent.) Please add this tiny piece into the centos base images too.

@serhei
Copy link

serhei commented Nov 23, 2018

Some reasons why gdbserver might be desirable in the CentOS images:

  1. Consistency with the enterprise RHEL images.

  2. I want to debug a process in the container, but my debuginfo is outside the container and quite big, so I don't want to bother copying it into the container. I launch gdbserver within the container and connect to it with gdb from my laptop, where the debuginfo is available.

  3. I want to use a different debugging tool that speaks gdbserver protocol. There is work in-progress or upcoming to make other tools (e.g. strace) be able to connect to a gdbserver on a separate host. Then I would be able to strace a process in the container without actually having to install strace into the container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants