aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2004-10-23 14:11:33 +0000
committerEli Zaretskii <eliz@gnu.org>2004-10-23 14:11:33 +0000
commitdcaf7c2c09e2c689575fa13a443e4a3365af9269 (patch)
treef5409c96a88a01c87b81e3d05ce78f5b458896a7
parent60bf7e09b16803307d05908cbf4323abf062e49f (diff)
downloadgdb-dcaf7c2c09e2c689575fa13a443e4a3365af9269.zip
gdb-dcaf7c2c09e2c689575fa13a443e4a3365af9269.tar.gz
gdb-dcaf7c2c09e2c689575fa13a443e4a3365af9269.tar.bz2
2004-10-23 Eli Zaretskii <eliz@gnu.org>
* gdb.texinfo(Files): Add a tip for decreasing memory used for symtabs from shared libraries.
-rw-r--r--gdb/doc/ChangeLog2
-rw-r--r--gdb/doc/gdb.texinfo10
2 files changed, 12 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index b15da41..93061fc 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -3,6 +3,8 @@
* gdb.texinfo (SVR4 Process Information): Document subcommands of
"info proc" that are already implemented. Add index entries.
(Working Directory): Add a cross-reference to "info proc" command.
+ (Files): Add a tip for decreasing memory used for symtabs from
+ shared libraries.
2004-10-12 Andrew Cagney <cagney@gnu.org>
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index c5b0a66..3c798be 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -10453,6 +10453,16 @@ informs @value{GDBN} that a new library has been loaded. If @var{mode}
is @code{off}, symbols must be loaded manually, using the
@code{sharedlibrary} command. The default value is @code{on}.
+@cindex memory used for symbol tables
+If your program uses lots of shared libraries with debug info that
+takes large amounts of memory, you can decrease the @value{GDBN}
+memory footprint by preventing it from automatically loading the
+symbols from shared libraries. To that end, type @kbd{set
+auto-solib-add off} before running the inferior, then load each
+library whose debug symbols you do need with @kbd{sharedlibrary
+@var{regexp}}, where @var{regexp} is a regular expresion that matches
+the libraries whose symbols you want to be loaded.
+
@kindex show auto-solib-add
@item show auto-solib-add
Display the current autoloading mode.