[Bug python/10953] gdb.Type does not give access to Base classes

pmuldoon at redhat dot com sourceware-bugzilla@sourceware.org
Tue Nov 17 17:03:00 GMT 2009


------- Additional Comments From pmuldoon at redhat dot com  2009-11-17 17:03 -------
If you add a call to strip_typedef() it will work:

python print
gdb.selected_frame().read_var("d").type.strip_typedefs().fields()[0].name
Base

I asked Dodji to help with this bug, and he should be updating the "why" this is
necessary in a far more eloquent way than I could ;)

-- 


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Gdb-prs mailing list