This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/11777] Strange behaviour of gdb.Type.fields
- From: "andre dot poenitz at nokia dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 1 Jul 2010 07:35:18 -0000
- Subject: [Bug python/11777] Strange behaviour of gdb.Type.fields
- References: <20100701072012.11777.andre.poenitz@nokia.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From andre dot poenitz at nokia dot com 2010-07-01 07:35 -------
To reproduce:
mkdir x && cd x
echo -e "#include <QRegion>\nint main() { QRegion r; }" > 1.cpp
qmake -project && qmake && make
gdb -ex "b main" -ex "run" -ex "python import gdb" -ex 'python print
gdb.parse_and_eval("r")["d"].dereference()["qt_rgn"].dereference().type.fields()' -ex
'python print
gdb.lookup_type(str(gdb.parse_and_eval("r")["d"].dereference()["qt_rgn"].dereference().type)).fields()'
./x
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11777
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.