pldd.1: Note gdb(1) command that can be used as a replacement for pldd

Taken from Carlos O'Donnell's suggestion in
https://sourceware.org/bugzilla/show_bug.cgi?id=18035#c2

Reported-by: Carlos O'Donell <carlos@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-08-08 01:54:50 +10:00
parent 25a306f113
commit 760fc1e8f3
1 changed files with 17 additions and 0 deletions

View File

@ -75,6 +75,23 @@ The command
also shows output that includes the dynamic shared objects
that are linked into a process.
The
.BR gdb (1)
.I "info shared"
command also shows the shared libraries being used by a process,
so that one can obtain similar output to
.BR pldd
using a command such as the following
(to monitor the process with the specified
.IR pid ):
.in +4n
.nf
$ \fBgdb \-ex "set confirm off" \-ex "set height 0" \-ex "info shared" \\\fP
\fB-ex "quit" \-p $pid | grep '^0x.*0x'\fP
.fi
.in
.SH BUGS
Since glibc 2.19,
.B pldd