mirror of https://github.com/mkerrisk/man-pages
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:
parent
25a306f113
commit
760fc1e8f3
17
man1/pldd.1
17
man1/pldd.1
|
@ -75,6 +75,23 @@ The command
|
||||||
|
|
||||||
also shows output that includes the dynamic shared objects
|
also shows output that includes the dynamic shared objects
|
||||||
that are linked into a process.
|
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
|
.SH BUGS
|
||||||
Since glibc 2.19,
|
Since glibc 2.19,
|
||||||
.B pldd
|
.B pldd
|
||||||
|
|
Loading…
Reference in New Issue