This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug mi/10898] New: gdb 7.0/mi reports strange bogus type names.
- From: "andre dot poenitz at nokia dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 3 Nov 2009 17:06:46 -0000
- Subject: [Bug mi/10898] New: gdb 7.0/mi reports strange bogus type names.
- Reply-to: sourceware-bugzilla at sourceware dot org
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.