This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb output for type information very verbose


>>>>> "Rick" == Rick Moseley <rmoseley@redhat.com> writes:

Rick> (gdb) ptype s

Like Roland (and you :) said, maybe we need an option or a gdb setting
to control this.  I think we will always want a way to tell gdb
"please give me all the details", but the default can be
user-friendlier.

Note that "whatis" gives a shorter answer.  Maybe too short -- in one
test it gave me an answer which was not valid when I typed it back
in.  (In general I think it is nicer if gdb's output for expressions
and types is also valid input...)

I think one idea would be for these, by default, to try to emit type
names the way the user wrote them.  This means using typedef names,
omitting default template arguments, respecting 'using' declarations,
etc -- however it appears in the code.  Then, one question is whether
gcc emits enough information to achieve that.

Another idea is from Benjamin: somehow visually separate the data
members from the methods.  E.g., maybe methods should not be displayed
unless requested.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]