Re: gdb 8.x - g++ 7.x compatibility
Jonathan Wakely <[email protected]>
| Newsgroups | gmane.comp.gdb.devel,gmane.comp.gcc.devel |
|---|---|
| Message-ID | <CAH6eHdR_j1f_sftM_P4V=u+arkd-XupTm8i1SikUAF3KvF24sQ@mail.gmail.com> |
On 5 February 2018 at 17:44, Roman Popov wrote: > Interestingly RTTI name also gives no guarantees: > http://en.cppreference.com/w/cpp/types/type_info/name > > << Returns an implementation defined null-terminated character string > containing the name of the type. No guarantees are given; in particular, > the returned string can be identical for several types and change between > invocations of the same program. >> > > It probably makes sense to look how g++ implements > std::type_info::operator== . Probably there are some hints that GDB > algorithm can utilize. > Operator std::type_info::operator== must return true for equivalent types. It's the mangled name.