2 Oct 2008 17:01
Re: pretty-printing update
>>>>> "André" == André Pönitz <apoenitz@...> writes: André> But from a GUI point of view there is not really much André> difference whether gdb automatically looks in certain places André> for custom formatters or whether it has to pump a few hundred André> lines of "-var-set-format" into gdb "manually". I think the problem here is naming of the formatters. Suppose we have a custom formatters for a large number of libraries -- say one for every C++ library in the OS. How would a front end know the names of the various formatters to supply? The nice thing about the auto-loading plan is that it means that library authors can maintain formatting bits independently. André> Actually I would argue that the formatter code is pretty likely André> to depend more on the actual GUI than on the type (even with André> changing libstdc++ in mind). In the example I gave there are André> fields like "name" and "valueencoded" that will probably only André> make sense to a very specific GUI. I see what you mean. I think the current MI code on this branch just emits a couple of known fields. Maybe that is insufficient -- I don't know yet. Tom
RSS Feed