From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24196 invoked by alias); 2 May 2005 02:43:55 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 24128 invoked from network); 2 May 2005 02:43:51 -0000 Received: from unknown (HELO hotmail.com) (64.4.37.37) by sourceware.org with SMTP; 2 May 2005 02:43:51 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 1 May 2005 19:43:48 -0700 Message-ID: Received: from 149.199.62.254 by by10fd.bay10.hotmail.msn.com with HTTP; Mon, 02 May 2005 02:43:48 GMT X-Originating-Email: [linq936@hotmail.com] X-Sender: linq936@hotmail.com From: "lin q" To: gdb@sources.redhat.com Bcc: Subject: how to examine the value in this compicated class Date: Mon, 02 May 2005 02:43:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 02 May 2005 02:43:48.0936 (UTC) FILETIME=[C49EDC80:01C54EC0] X-SW-Source: 2005-05/txt/msg00010.txt.bz2 Hi, I am new to gdb, in using print and display commands I can easily examine the value of simple data type. But how about this one: class C2; class C1{ char* s1; C2* c2; }; class C2{ char* s2; }; Let's say in the code there is a variable, c1, whose type is C1*. Then in GDB how I can check the value of c1->c2->s2? Thanks? _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/