This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] PR59170 make pretty printers check for singular iterators
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Jonathan Wakely <jwakely at redhat dot com>
- Cc: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, Keith Seitz <keiths at redhat dot com>, Pedro Alves <palves at redhat dot com>
- Date: Fri, 16 Dec 2016 08:51:36 +0100
- Subject: Re: [PATCH] PR59170 make pretty printers check for singular iterators
- Authentication-results: sourceware.org; auth=none
- References: <20161215141817.GA22699@redhat.com> <20161215211903.GA22897@host1.jankratochvil.net> <20161216010707.GF22266@redhat.com>
On Fri, 16 Dec 2016 02:07:07 +0100, Jonathan Wakely wrote:
> On 15/12/16 22:19 +0100, Jan Kratochvil wrote:
> > Just with the GDB 'compile' project (libcc1) which is planned to be used for
> > all GDB expressions evalation the Xmethods will no longer work.
>
> 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.
Currently it cannot as the source for gcc (via libcc1) is (re)generated from
DWARF. Currently GDB does not provide original sources as a context for the
compiled expression.
Besides that there is a C++17 modules feature which should solve that for
LLDB as pointed out by Pedro before:
http://lists.llvm.org/pipermail/lldb-dev/2016-August/010870.html
Unaware if/when GDB 'compile' will handle C++ modules as a sources substitute
or if/when it will do the original source recompilation.
Jan