This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Change "set print frame-arguments"'s default to scalars
- From: Tom Tromey <tromey at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 24 Mar 2009 18:08:49 -0600
- Subject: Re: [RFC] Change "set print frame-arguments"'s default to scalars
- References: <20090324212730.GU9472@adacore.com>
- Reply-to: tromey at redhat dot com
>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:
Joel> This is a slight change in behavior that we made at AdaCore
Joel> which everyone seemed to have enjoyed. The proposal is to
Joel> change the default for "set print frame-arguments" to "scalars"
Joel> in order to unclutter frames a bit.
Joel> So I don't think this change would impact C users much. I'm not
Joel> sure about C++, in particular I'm not sure about how
Joel> classes/objects are passed.
I implemented something vaguely similar to this as part of the Python
pretty-printing work. I did not know about the frame-arguments
parameter, so I added a new "summary" flag in value_print_options, and
I have the pretty-printers print just part of complex structure
arguments.
So, I think your patch is reasonable (though it needs a doc update
:-). I'll rework the pretty-printing stuff a bit to use
frame-arguments.
Tom