From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15758 invoked by alias); 1 Jul 2010 09:13:07 -0000 Received: (qmail 15738 invoked by uid 48); 1 Jul 2010 09:13:06 -0000 Date: Thu, 01 Jul 2010 09:13:00 -0000 Message-ID: <20100701091306.15737.qmail@sourceware.org> From: "andre dot poenitz at nokia dot com" To: gdb-prs@sourceware.org In-Reply-To: <20100701072012.11777.andre.poenitz@nokia.com> References: <20100701072012.11777.andre.poenitz@nokia.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug python/11777] Strange behaviour of gdb.Type.fields X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2010-q3/txt/msg00004.txt.bz2 ------- Additional Comments From andre dot poenitz at nokia dot com 2010-07-01 09:13 ------- To reproduce without Qt: ------------------------- snip ------------------------ mkdir x && cd x echo -e "struct P { P(); int a, b, c, d; }; " > p.h echo -e "#include \"p.h\"\n P::P() {} " > p.cpp echo -e "class P; struct X { X(); P *p; };" > x.h echo -e " #include \"x.h\"\n X::X() {} " > x.cpp echo -e "#include \"x.h\"\n int main() { X x; }" > main.cpp g++ -g -shared -o libxp.so x.cpp p.cpp g++ -g -o x -L. -lxp main.cpp -Wl,-rpath,`pwd` gdb -ex "b main" -ex "run" -ex "python import gdb" \ -ex 'set confirm off' \ -ex 'python print gdb.parse_and_eval("x")["p"].dereference().type.fields()' \ -ex 'python print gdb.lookup_type(str(gdb.parse_and_eval("x")["p"].dereference().type)).fields()' \ -ex q \ ./x ------------------------- snip ------------------------ -- 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.