[PATCH] PR59170 make pretty printers check for singular iterators
Jonathan Wakely
jwakely@redhat.com
Fri Dec 16 01:07:00 GMT 2016
On 15/12/16 22:19 +0100, Jan Kratochvil wrote:
>On Thu, 15 Dec 2016 15:18:17 +0100, Jonathan Wakely wrote:
>> I'm going to add Xmethods for all our iterator types so that it will
>> always be possible to do "print *iter", so if GDB supports Xmethods
>> then we don't need to register the iterator printers.
>
>Just with the GDB 'compile' project (libcc1) which is planned to be used for
>all GDB expressions evalation the Xmethods will no longer work.
Ah.
But then *it can just get compiled, so it will still work, right?
The only reason it doesn't work today is that the definition for
operator* might not be in the executable, but if you can compile a new
definition that doesn't matter.
More information about the Libstdc++
mailing list