* [commit] A tip for using less memory for symtabs
@ 2004-10-23 14:13 Eli Zaretskii
2004-10-23 18:16 ` Joel Brobecker
0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2004-10-23 14:13 UTC (permalink / raw)
To: gdb-patches
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [commit] A tip for using less memory for symtabs
2004-10-23 14:13 [commit] A tip for using less memory for symtabs Eli Zaretskii
@ 2004-10-23 18:16 ` Joel Brobecker
2004-10-23 19:33 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Joel Brobecker @ 2004-10-23 18:16 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: gdb-patches
> 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.
Perhaps it would be useful to commit this in the branch as well?
--
Joel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [commit] A tip for using less memory for symtabs
2004-10-23 18:16 ` Joel Brobecker
@ 2004-10-23 19:33 ` Eli Zaretskii
2004-10-24 16:01 ` Daniel Jacobowitz
0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2004-10-23 19:33 UTC (permalink / raw)
To: Joel Brobecker; +Cc: gdb-patches
> Date: Sat, 23 Oct 2004 11:16:01 -0700
> From: Joel Brobecker <brobecker@gnat.com>
> Cc: gdb-patches@sources.redhat.com
>
> > 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.
>
> Perhaps it would be useful to commit this in the branch as well?
With less typos than my message above, one would hope :-(
I don't mind getting this into the branch, if people think it's worth
our while.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [commit] A tip for using less memory for symtabs
2004-10-23 19:33 ` Eli Zaretskii
@ 2004-10-24 16:01 ` Daniel Jacobowitz
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2004-10-24 16:01 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Joel Brobecker, gdb-patches
On Sat, Oct 23, 2004 at 09:28:30PM +0200, Eli Zaretskii wrote:
> > Date: Sat, 23 Oct 2004 11:16:01 -0700
> > From: Joel Brobecker <brobecker@gnat.com>
> > Cc: gdb-patches@sources.redhat.com
> >
> > > 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.
> >
> > Perhaps it would be useful to commit this in the branch as well?
>
> With less typos than my message above, one would hope :-(
>
> I don't mind getting this into the branch, if people think it's worth
> our while.
I think that would be a nice idea.
--
Daniel Jacobowitz
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-10-24 16:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-23 14:13 [commit] A tip for using less memory for symtabs Eli Zaretskii
2004-10-23 18:16 ` Joel Brobecker
2004-10-23 19:33 ` Eli Zaretskii
2004-10-24 16:01 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox