From: "Eli Zaretskii" <eliz@gnu.org>
To: gdb-patches@sources.redhat.com
Subject: [commit] A tip for using less memory for symtabs
Date: Sat, 23 Oct 2004 14:13:00 -0000 [thread overview]
Message-ID: <01c4b909$Blat.v2.2.2$ea105680@zahav.net.il> (raw)
This issue came up in a past disucssion, so I've committed the
attached patch ti give users a tip.
2004-10-23 Eli Zaretskii <eliz@gnu.org>
* gdb.texinfo (Files): Add a tip for decreasing memory used
for symtabs from shared libraries.
Index: gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.218
diff -u -r1.218 gdb.texinfo
--- gdb.texinfo 23 Oct 2004 13:52:37 -0000 1.218
+++ gdb.texinfo 23 Oct 2004 14:08:19 -0000
@@ -10453,6 +10453,16 @@
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.
next reply other threads:[~2004-10-23 14:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-23 14:13 Eli Zaretskii [this message]
2004-10-23 18:16 ` Joel Brobecker
2004-10-23 19:33 ` Eli Zaretskii
2004-10-24 16:01 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='01c4b909$Blat.v2.2.2$ea105680@zahav.net.il' \
--to=eliz@gnu.org \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox