This is the mail archive of the gdb@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: 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



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