This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: add vector container type
- From: "Mark Kettenis" <mark dot kettenis at xs4all dot nl>
- To: "Nathan Sidwell" <nathan at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org, "Daniel Jacobowitz" <dan at codesourcery dot com>
- Date: Mon, 10 Jul 2006 13:54:04 +0200 (CEST)
- Subject: Re: add vector container type
- References: <44B2273D.9030906@codesourcery.com>
> 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