From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5796 invoked by alias); 18 Dec 2013 03:01:43 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 5772 invoked by uid 89); 18 Dec 2013 03:01:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 18 Dec 2013 03:01:41 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 1C11D1162D6; Tue, 17 Dec 2013 22:02:20 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WPW2SQkx-mqx; Tue, 17 Dec 2013 22:02:20 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id A1D5911624D; Tue, 17 Dec 2013 22:02:19 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 17D97E18B1; Wed, 18 Dec 2013 07:01:35 +0400 (RET) Date: Wed, 18 Dec 2013 03:01:00 -0000 From: Joel Brobecker To: Sanimir Agovic Cc: gdb-patches@sourceware.org Subject: Re: [PATCH v4 00/13] C99 variable length array support Message-ID: <20131218030135.GC3493@adacore.com> References: <1387282678-3847-1-git-send-email-sanimir.agovic@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1387282678-3847-1-git-send-email-sanimir.agovic@intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-12/txt/msg00681.txt.bz2 > this patch series (v3) add C99 variable length support to gdb. > > It allows the user to evaluate a vla like an ordinary static array e.g. print > its elements instead of printing the pointer to the array. In addition the size > of a vla can be retrieved with gdbs builtin sizeof operator. > > > 1| void foo (size_t n) { > 2| int ary[n]; > 3| memset(ary, 0, sizeof(ary)); > 4| } > > (gdb) print ary > $1 = {0 } > > (gdb) print sizeof ary > $2 = 168 I haven't had time so far to say how excited I am to see this patch series. I think this is going to be extremely useful, and not just for C. I can see Fortran being mentioned, but I think Pascal and Ada also will be able to benefit from it. So Thank You! -- Joel