This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 6/9 v2] Implement mount namespace support for native Linux targets
- From: Gary Benson <gbenson at redhat dot com>
- To: Doug Evans <dje at google dot com>
- Cc: gdb-patches at sourceware dot org, Eli Zaretskii <eliz at gnu dot org>, Pedro Alves <palves at redhat dot com>, google dot com at redhat dot com
- Date: Wed, 27 May 2015 11:18:44 +0100
- Subject: Re: [PATCH 6/9 v2] Implement mount namespace support for native Linux targets
- Authentication-results: sourceware.org; auth=none
- References: <001a11356bf44269fc0516ee4bd0 at google dot com>
Doug Evans wrote:
> Gary Benson writes:
> > This commit allows GDB to access executables and shared libraries
> > on native Linux targets where GDB and the inferior have different
> > mount namespaces.
> >
> > gdb/ChangeLog:
> >
> > * linux-nat.c (nat/linux-namespaces.h): New include.
> > (fileio.h): Likewise.
> > (linux_nat_filesystem_is_local): New function.
> > (linux_nat_fileio_pid_of): Likewise.
> > (linux_nat_fileio_open): Likewise.
> > (linux_nat_fileio_readlink): Likewise.
> > (linux_nat_fileio_unlink): Likewise.
> > (linux_nat_add_target): Initialize to_filesystem_is_local,
> > to_fileio_open, to_fileio_readlink and to_fileio_unlink.
> > (_initialize_linux_nat): New "set/show debug lin-ns" commands.
> > * NEWS: Mention new "set/show debug lin-ns" commands.
>
> Nit: "set debug" options need a doc entry.
> [I didn't see it in another patch.
> I also didn't see this option used in this patch.]
It's used in nat/linux-namespaces.c.
I'll add some documentation for it.
Cheers,
Gary
--
http://gbenson.net/