]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
pldd.1: Note gdb(1) command that can be used as a replacement for pldd
authorMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 7 Aug 2016 15:54:50 +0000 (01:54 +1000)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 7 Aug 2016 19:54:16 +0000 (05:54 +1000)
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>
man1/pldd.1

index 890668802272315cec25812bf9b8bf736aebf1b6..4468f95ad8332df6eca73b0e714de3778ec59300 100644 (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