From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1807 invoked by alias); 7 Jul 2010 10:26:48 -0000 Received: (qmail 1791 invoked by uid 48); 7 Jul 2010 10:26:48 -0000 Date: Wed, 07 Jul 2010 10:26:00 -0000 Message-ID: <20100707102648.1790.qmail@sourceware.org> From: "andre dot poenitz at nokia dot com" To: gdb-prs@sourceware.org In-Reply-To: <20100706160015.11792.andre.poenitz@nokia.com> References: <20100706160015.11792.andre.poenitz@nokia.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug python/11792] Provide access to the dynamic type of an object 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/msg00016.txt.bz2 ------- Additional Comments From andre dot poenitz at nokia dot com 2010-07-07 10:26 ------- Created an attachment (id=4872) --> (http://sourceware.org/bugzilla/attachment.cgi?id=4872&action=view) proof-of-concept code, mainly copied code from a path triggered by 'set print object on' With the attached patch and adding -ex 'python print "Python says: '%s'" % gdb.parse_and_eval("b").dynamic_type' to the test script I get Temporary breakpoint 1, main () at :5 5 : No such file or directory. in 6 in $1 = (Base *) 0x804b008 $2 = (Derived *) 0x804b008 Python says: Base * Python says: Derived * -- http://sourceware.org/bugzilla/show_bug.cgi?id=11792 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.