This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: add vector container type


Jim Blandy wrote:
"Mark Kettenis" <mark.kettenis@xs4all.nl> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]