From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6760 invoked by alias); 3 Sep 2010 19:18:52 -0000 Received: (qmail 6750 invoked by uid 22791); 3 Sep 2010 19:18:52 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from isis.lip6.fr (HELO isis.lip6.fr) (132.227.60.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 03 Sep 2010 19:18:46 +0000 Received: from mailone.lip6.fr (mailone.desir.lip6.fr [132.227.205.6]) by isis.lip6.fr (8.14.4/lip6) with ESMTP id o83JIb89004129 ; Fri, 3 Sep 2010 21:18:37 +0200 (CEST) X-pt: isis.lip6.fr Received: from [192.168.1.20] (unknown [86.67.12.238]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailone.lip6.fr (Postfix) with ESMTPSA id 75EC4B08; Fri, 3 Sep 2010 21:18:37 +0200 (CEST) Message-ID: <4C814A14.6050509@lip6.fr> Date: Fri, 03 Sep 2010 19:18:00 -0000 From: Nicolas Sabouret User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6 MIME-Version: 1.0 To: Andreas Schwab CC: gdb@sourceware.org Subject: Re: printing array in function References: <4C80BA7A.3030309@lip6.fr> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-09/txt/msg00015.txt.bz2 Hi, Le 03/09/2010 18:21, Andreas Schwab a écrit : > There is no such thing as an array parameter in C. I know this. I was just wondering if there was any workaround in gdb. I can understand why there is not, though. > This is the same as f(int *), see §6.7.5.3#7. Thanks for your answer. I think we will have to write a specific parser... or to use other pedagogical artifacts. Regards, -- Nicolas Sabouret LIP6, BC169, 4 place Jussieu, 75005 Paris http://www-poleia.lip6.fr/~sabouret