This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: [PATCH] Make StdVectorPrinter in printers.py compatible with ddd


>>> If you allow this, where does it stop? ?Any badly written gdb frontend
>>> will complain about something.

I don't consider the pretty printers to be stable and feature complete
yet, but I'll take your reply as an objection and so won't go ahead
and commit the change.

> It seems to me as though there are two questions involved:
> 1) Does this patch make the STL pretty-print code more consistent?

I don't think we've settled on a consistent output from the pretty
printers yet, all the options have some flaws.

(Aside, one issue I have with the pretty printers is they
automatically dereference iterators, which is a problem for
past-the-end iterators.)

> 2) Is it reasonable for a gdb front-end to expect a comma to be used
> ? in the way that it is used in the pre-patched code?

Mu.

A GDB front end should use one of the programmatic interfaces to get
output from GDB, writing a GUI by parsing text meant for display in a
terminal is doomed to fail in the long run.

But I do think this particular change is reasonable.


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