From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26105 invoked by alias); 12 Feb 2002 05:48:01 -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 26046 invoked from network); 12 Feb 2002 05:47:58 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.135.44) by sources.redhat.com with SMTP; 12 Feb 2002 05:47:58 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id E15D93CC2 for ; Tue, 12 Feb 2002 00:47:53 -0500 (EST) Message-ID: <3C68AC89.4030807@cygnus.com> Date: Mon, 11 Feb 2002 21:48:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.8) Gecko/20020210 X-Accept-Language: en-us MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: set $argv = *argv@100 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-02/txt/msg00180.txt.bz2 Consider the sequence: (top-gdb) print argv $4 = (char **) 0xbfbfd3cc (top-gdb) set $argv = *argv@100 (top-gdb) print $argv $5 = (char **) 0xbfbfd3cc (top-gdb) print sizeof ($argv) $6 = 0x4 (top-gdb) print sizeof (*argv@100) $7 = 0x190 should $argv have been assigned the contents of *argv@100 or just the address? Contrast it with: (top-gdb) print args $9 = {func = 0x804d498 , func_args = 0xbfbfd8d4} (top-gdb) set $a = args (top-gdb) print $a $10 = {func = 0x804d498 , func_args = 0xbfbfd8d4} puzzled. Andrew