|
From: | red floyd |
Subject: | Examining polymorphic pointers in GDB |
Date: | Fri, 30 Jul 2004 15:07:28 GMT |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 |
Assuming I have classes like this: class Base { ... }; class Derived : public Base { ... }; and some code like this: Derived *pd = new Derived; Base *pb = pd; How can I examine the Derived through the Base pointer pb in GDB? Thanks
[Prev in Thread] | Current Thread | [Next in Thread] |