public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "andre dot poenitz at nokia dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug mi/10898] New: gdb 7.0/mi reports strange bogus type names.
Date: Tue, 03 Nov 2009 17:06:00 -0000	[thread overview]
Message-ID: <20091103170645.10898.andre.poenitz@nokia.com> (raw)

Compile

   #include <string>
   struct QString { static inline QString fromStdString(const std::string &); };
   int main() { std::string str; }

using 

   g++ -g.

Then run

  ~/bin/gdb-7.0 -ex 'b main' -ex r -i mi  --args ./a.out debug

Typing 

  -stack-list-locals 2


results in 

  ^done,locals=[{name="str",type="QString::string"}]

Note the bogus 'type' field. 

Removing the "QString::fromStdString()" and repeating the procedure yields

  ^done,locals=[{name="str",type="string"}]

as does gdb 6.8 in both scenarios.

-- 
           Summary: gdb 7.0/mi reports strange bogus type names.
           Product: gdb
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: mi
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: andre dot poenitz at nokia dot com
                CC: gdb-prs at sourceware dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=10898

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


             reply	other threads:[~2009-11-03 17:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-03 17:06 andre dot poenitz at nokia dot com [this message]
2009-11-04  7:10 ` [Bug mi/10898] " andre dot poenitz at nokia dot com
2010-03-03 17:31 ` tromey at redhat dot com
2010-03-29 20:43 ` vladimir at codesourcery dot com
2010-03-30  9:14 ` andre dot poenitz at nokia dot com

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=20091103170645.10898.andre.poenitz@nokia.com \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).