[6/9,v2] Implement mount namespace support for native Linux targets
Commit Message
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.
Eli, is this ok? (Not as a standalone patch, I'll merge it...)
Thanks,
Gary
Comments
> From: Gary Benson <gbenson@redhat.com>
> Cc: Eli Zaretskii <eliz@gnu.org>, Pedro Alves <palves@redhat.com>,
> Doug Evans <dje@google.com>
> Date: Tue, 9 Jun 2015 14:20:36 +0100
>
> Eli, is this ok?
Yes, thanks.
@@ -23484,6 +23484,11 @@ Displays the current state of @value{GDBN} JIT debugging.
Turns on or off debugging messages from the Linux LWP debug support.
@item show debug lin-lwp
Show the current state of Linux LWP debugging messages.
+@item set debug linux-namespaces
+@cindex @sc{gnu}/Linux namespaces debug messages
+Turns on or off debugging messages from the Linux namespaces debug support.
+@item show debug linux-namespaces
+Show the current state of Linux namespaces debugging messages.
@item set debug mach-o
@cindex Mach-O symbols processing
Control display of debugging messages related to Mach-O symbols