This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Suggest running gdbserver for a PID in container
- From: Pedro Alves <palves at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>, gdb-patches at sourceware dot org
- Cc: Daniel Colascione <dancol at dancol dot org>, Gary Benson <gbenson at redhat dot com>
- Date: Thu, 17 Mar 2016 11:13:45 +0000
- Subject: Re: [patch] Suggest running gdbserver for a PID in container
- Authentication-results: sourceware.org; auth=none
- References: <20160315220750 dot GA24570 at host1 dot jankratochvil dot net>
On 03/15/2016 10:07 PM, Jan Kratochvil wrote:
Hi,
currently
gdb -p <pid from a container>
will print:
warning: Target and debugger are in different PID namespaces; thread lists and other data are likely unreliable
BTW it is a bit lost in all the other messages. Full screen output is in:
https://sourceware.org/bugzilla/show_bug.cgi?id=19828
It correctly states the problem but it does not say how to solve it.
Is at least this little suggestion OK?
OK.
Originally I wanted to suggest also the Docker "-p 1234:1234" parameter but
I see the containers are more general topic than just Docker (even LxC etc.).
According to Gary future GDBs should be able to work even without gdbserver.
But currently gdbserver is still required.
Yes, when/if Infinity notes are accepted in glibc.
Thanks,
Pedro Alves