aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-08-08 01:54:50 +1000
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-08-08 05:54:16 +1000
commit760fc1e8f3e75e2fac20c8bd56adb4273cd89aa6 (patch)
treed15bb829a22bface476cdce805dca7bdc3d5e4d1
parent25a306f11328002774e4b2daa69571ce130dad29 (diff)
downloadman-pages-760fc1e8f3e75e2fac20c8bd56adb4273cd89aa6.tar.gz
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>
-rw-r--r--man1/pldd.117
1 files changed, 17 insertions, 0 deletions
diff --git a/man1/pldd.1 b/man1/pldd.1
index 8906688022..4468f95ad8 100644
--- a/man1/pldd.1
+++ b/man1/pldd.1
@@ -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