From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24990 invoked by alias); 11 Jul 2006 18:19:31 -0000 Received: (qmail 24979 invoked by uid 22791); 11 Jul 2006 18:19:30 -0000 X-Spam-Check-By: sourceware.org Received: from intranet.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.6) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 11 Jul 2006 18:19:29 +0000 Received: (qmail 17651 invoked from network); 11 Jul 2006 18:19:27 -0000 Received: from unknown (HELO ?192.168.189.145?) (nathan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 11 Jul 2006 18:19:27 -0000 Message-ID: <44B3EBAA.4010300@codesourcery.com> Date: Tue, 11 Jul 2006 18:19:00 -0000 From: Nathan Sidwell User-Agent: Thunderbird 1.5.0.4 (X11/20060615) MIME-Version: 1.0 To: Jim Blandy CC: Mark Kettenis , gdb-patches@sourceware.org, Daniel Jacobowitz Subject: Re: add vector container type References: <44B2273D.9030906@codesourcery.com> <24259.192.87.1.22.1152532444.squirrel@webmail.xs4all.nl> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00092.txt.bz2 Jim Blandy wrote: > "Mark Kettenis" writes: >> If this interface is better, are we going to convert other bits of >> GDB to use these interfaces? > > It's a type-safe form of the common idiom for dynamically resized > arrays. For me, at least, type safety is a big deal. I definitely > think we should convert other pieces of GDB to use it. > > Is this file modified much from the GCC version? Could GDB and GCC > share this from libiberty? IMO it is impractical to share this. GCC requires too much GC-specific additional bits. That's not to say putting this in libiberty would be a bad thing, just that GCC couldn't really use that copy. nathan -- Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk