Re: std::string and MI
Daniel Jacobowitz <drow <at> false.org>
2008-12-03 17:27:00 GMT
On Thu, Nov 27, 2008 at 01:38:56PM +0100, André Pönitz wrote:
> I get after issuing a "-stack-list-locals 2" the response
> Similarily, "-var-create s * s" followed by "-var-info-type s" produces
> In both cases the 'std::' namespace is missing from the type.
I'll second Tom - I think I opened a GCC bug report about this.
> Incidentally: Would it be possible to extend the MI commands that output
> types to also produce the mangled types? (This could be restricted to the
> cases where these actually differs from the unmangled ones, but I really
> don't mind duplicated output)
There's not really any such thing in the debug info. Some GCC debug
info includes mangled names for functions, but it's not always there
and it is never present for types. We'd have to reconstruct it from
linkage names and map to parameters; it would be very hit-or-miss.