From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29845 invoked by alias); 10 Jul 2006 11:54:13 -0000 Received: (qmail 29829 invoked by uid 22791); 10 Jul 2006 11:54:12 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-vbr6.xs4all.nl (HELO smtp-vbr6.xs4all.nl) (194.109.24.26) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 10 Jul 2006 11:54:09 +0000 Received: from webmail.xs4all.nl (dovemail9.xs4all.nl [194.109.26.11]) by smtp-vbr6.xs4all.nl (8.13.6/8.13.6) with ESMTP id k6ABs31V031376; Mon, 10 Jul 2006 13:54:04 +0200 (CEST) (envelope-from mark.kettenis@xs4all.nl) Received: from 192.87.1.22 (SquirrelMail authenticated user sibelius) by webmail.xs4all.nl with HTTP; Mon, 10 Jul 2006 13:54:04 +0200 (CEST) Message-ID: <24259.192.87.1.22.1152532444.squirrel@webmail.xs4all.nl> In-Reply-To: <44B2273D.9030906@codesourcery.com> References: <44B2273D.9030906@codesourcery.com> Date: Mon, 10 Jul 2006 11:54:00 -0000 Subject: Re: add vector container type From: "Mark Kettenis" To: "Nathan Sidwell" Cc: gdb-patches@sourceware.org, "Daniel Jacobowitz" User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00078.txt.bz2 > The brief outline of this API is that it allows you to define variable > length > vectors of scalars, pointers or objects, and then have type-safe accessor > and > manipulator functions. GCC has been using this for about 2 years now. > > We (CSL) are using this API for some upcoming patches implementing the > flash > programming model that has previously been discussed here. > > ok? Nathan, can you give a motivation why we need this in GDB? Just the fact that GCC uses it and CSL developed some stuff that's based on this, is hardly enough to justify introducing yet another API to do memory allocation in GDB. Why are the existing interfaces not good enough for implementing the flash programming stuff? If this interface is better, are we going to convert other bits of GDB to use these interfaces? Could you provide a few examples of how this would be used? Oh, and Eli will want you to write a paragraph on how to use this in gdbint.tex. Mark