From: Daniel Jacobowitz <drow@false.org>
To: "André Pönitz" <apoenitz@trolltech.com>
Cc: gdb@sources.redhat.com
Subject: Re: std::string and MI
Date: Wed, 03 Dec 2008 17:27:00 -0000 [thread overview]
Message-ID: <20081203172700.GA19812@caradoc.them.org> (raw)
In-Reply-To: <200811271339.03070.apoenitz@trolltech.com>
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
>
> ^done,locals=[{name="s",type="string"},{name="f",type="foo::string"},
> {name="t",type="string"}]
>
> Similarily, "-var-create s * s" followed by "-var-info-type s" produces
>
> ^done,type="string"
>
> 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.
--
Daniel Jacobowitz
CodeSourcery
prev parent reply other threads:[~2008-12-03 17:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-27 12:39 André Pönitz
2008-12-02 17:37 ` Tom Tromey
2008-12-03 17:27 ` Daniel Jacobowitz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081203172700.GA19812@caradoc.them.org \
--to=drow@false.org \
--cc=apoenitz@trolltech.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox