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 symtab/11912] C++ name lookup failes


------- Additional Comments From andre dot poenitz at nokia dot com  2010-08-17 10:21 -------
(In reply to comment #4)
> [...]
> As a workaround you can use "ptype class Object" to tell the parser that
> you are asking about a type.  (I learned this today while looking at the
> docs :-)

Thanks for the workaround. With

 type = gdb.parse_and_eval("(class '%s'*)0" % typename).type.target()

it's even usable with python ;-)


-- 


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

------- 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]