From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9474 invoked by alias); 6 Feb 2003 19:54:04 -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 9200 invoked from network); 6 Feb 2003 19:54:03 -0000 Received: from unknown (HELO mail.silk.net) (207.194.1.122) by 172.16.49.205 with SMTP; 6 Feb 2003 19:54:03 -0000 Received: from noodle.com (kelowna-64-114-77-144.gen.pacificcoast.net [64.114.77.144]) by mail.silk.net (8.11.6/8.11.6) with SMTP id h16Jso520057 for ; Thu, 6 Feb 2003 11:54:50 -0800 Date: Thu, 06 Feb 2003 19:54:00 -0000 From: William Trenker To: gdb@sources.redhat.com Subject: Re: How Do I see (Disabled) data? Message-Id: <20030206115126.58b8e0fc.wdtrenker@yahoo.ca> In-Reply-To: References: <20030206104718.24775823.wdtrenker@yahoo.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2003-02/txt/msg00135.txt.bz2 On 06 Feb 2003 14:25:59 -0500 Jim Blandy wrote: > Can you show us the exact commands you're using, and the exact output > from GDB? The exact gdb commands, below, are actually generated by DDD: (gdb) graph display buff (gdb) graph display *buff dependent on 1 (gdb) Attempt to dereference a generic pointer. Disabling display 2 to avoid infinite recursion. buff is defined in the code as: buff = (void *)param->get_string(); I should mention that I've experimented some more since my first message. I got adventurous with gdb's print command and found out I could explicitly cast the variable, like this: (gdb) print (char*)buff $1 = 0x8060a40 "Alex" I think I may have answered my own question -- right? Thanks again, Bill