public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug mi/10898] New: gdb 7.0/mi reports strange bogus type names.
@ 2009-11-03 17:06 andre dot poenitz at nokia dot com
  2009-11-04  7:10 ` [Bug mi/10898] " andre dot poenitz at nokia dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: andre dot poenitz at nokia dot com @ 2009-11-03 17:06 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-03-30  9:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-03 17:06 [Bug mi/10898] New: gdb 7.0/mi reports strange bogus type names andre dot poenitz at nokia dot com
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

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).