Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* need a way to disable/limit printing template arguments
@ 2013-03-05 20:32 Kamil Dudka
  2013-03-12 15:52 ` Jan Kratochvil
  0 siblings, 1 reply; 2+ messages in thread
From: Kamil Dudka @ 2013-03-05 20:32 UTC (permalink / raw)
  To: gdb

Hello,

is there any way to disable or limit expansion of template arguments when 
printing local variables in gdb?

Using 'info local' on the following program with the default configuration 
produces ~300kB output for just one empty local variable:

#include <boost/bimap.hpp>
#include <boost/bimap/bimap.hpp>
#include <boost/bimap/multiset_of.hpp>

int main()
{
    typedef boost::bimaps::multiset_of<int> TMulti;
    typedef boost::bimap<TMulti, TMulti> TBiMap;
    TBiMap biMap;
    __asm__("INT3");
    return 0;
}

I tried the options from info documentation (the Print Settings section) 
to no avail.  Is there any way to suppress the excessive output for this?

Thanks in advance!

Kamil


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: need a way to disable/limit printing template arguments
  2013-03-05 20:32 need a way to disable/limit printing template arguments Kamil Dudka
@ 2013-03-12 15:52 ` Jan Kratochvil
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kratochvil @ 2013-03-12 15:52 UTC (permalink / raw)
  To: Kamil Dudka; +Cc: gdb

On Tue, 05 Mar 2013 21:30:04 +0100, Kamil Dudka wrote:
> is there any way to disable or limit expansion of template arguments when 
> printing local variables in gdb?

There should be primarily written Python Pretty printers for Boost like they
are for libstdc++.  Nobody has done so yet.

Besides that the output could be smaller with various output optimization
like this open Bug (depending on open GCC Bug):
	type-printing should optionally elide defaulted template parameters
	http://sourceware.org/bugzilla/show_bug.cgi?id=15251


Jan


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-12 15:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-05 20:32 need a way to disable/limit printing template arguments Kamil Dudka
2013-03-12 15:52 ` Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox