Re: add vector container type

Mark Kettenis
2006-07-10T11:54:13Z

> 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