This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug mi/10898] New: gdb 7.0/mi reports strange bogus type names.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]