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

* [Bug mi/10898] gdb 7.0/mi reports strange bogus type names.
  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 ` andre dot poenitz at nokia dot com
  2010-03-03 17:31 ` tromey at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: andre dot poenitz at nokia dot com @ 2009-11-04  7:10 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From andre dot poenitz at nokia dot com  2009-11-04 07:10 -------
It's not 100% reproducible. Every now and then I get the correct answer
"std::string", but in most cases it's "QString::string". This is  stock ubuntu
9.04 with gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3  here.

Archer version is dad6b53fe4a6df586dcd0a57e2151e7663191f18, the 7.0 case is
using a build from an unmodified source package of the gdb 7.0 release.

-- 


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

* [Bug mi/10898] gdb 7.0/mi reports strange bogus type names.
  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
  3 siblings, 0 replies; 5+ messages in thread
From: tromey at redhat dot com @ 2010-03-03 17:31 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From tromey at redhat dot com  2010-03-03 17:31 -------
FWIW, I couldn't reproduce this at all on my F11 box.
I ran gdb under valgrind, on the off chance that this would
show a latent bug, but that didn't report one either.
It is possible that this is something that was fixed by
one of the dwarf2read.c allocation bug fixes; could you
try CVS HEAD?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com


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

* [Bug mi/10898] gdb 7.0/mi reports strange bogus type names.
  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
  3 siblings, 0 replies; 5+ messages in thread
From: vladimir at codesourcery dot com @ 2010-03-29 20:43 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From vladimir at codesourcery dot com  2010-03-29 20:43 -------
Andre,
I believe the ball is yours. Are you planning to recheck this?

-- 


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

* [Bug mi/10898] gdb 7.0/mi reports strange bogus type names.
  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
                   ` (2 preceding siblings ...)
  2010-03-29 20:43 ` vladimir at codesourcery dot com
@ 2010-03-30  9:14 ` andre dot poenitz at nokia dot com
  3 siblings, 0 replies; 5+ messages in thread
From: andre dot poenitz at nokia dot com @ 2010-03-30  9:14 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From andre dot poenitz at nokia dot com  2010-03-30 09:14 -------
Thanks for reminding me.

The problem is still reproducible with current git master and released 7.1.

However, I had to go back to gcc 4.2.4 to reproduce it (even the updated Ubuntu
9.04 gcc 4.3 is fine), so this pretty much looks more like a gcc issue than a
gdb issue, and it's even one that is fixed there by now.

I doubt gdb is interested in working around old gcc issues, so I guess this
issue can be closed.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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