This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Move GDB to C++ ?
Nick Roberts wrote:
> > Tom> * Templates are used in at least one place -- vec.h.
> >
> > I found another gdb-specific example of this: observers. A given
> > observer is essentially an instance of a template class.
>
> From my point of view, another benefit of using C++, is presumably that
> variable objects could be represented as linked lists, rather than use the
> current vector API which, for reasons I've already given, I think is
> unsuitable.
Without getting into that discussion again, it's clear that either std::vector,
or std::list, or std::deque, are much better than anything implementable in C.
- Volodya