This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Move GDB to C++ ?
> Date: Wed, 30 Jul 2008 11:45:15 -0700
> From: Stan Shebs <stanshebs@earthlink.net>
> CC: gdb@sources.redhat.com
>
> Eli Zaretskii wrote:
> >> Date: Tue, 29 Jul 2008 12:35:02 -0700
> >> From: Stan Shebs <stanshebs@earthlink.net>
> >> CC: gdb@sources.redhat.com
> >>
> >> For instance, at this very moment I'm looking at
> >> ALL_OBJFILES and friends, wondering if the introduction of multiple
> >> execs is going to impact overall performance.
> >>
> >
> > And how would that change with C++?
> >
> >
> C++ collection classes would be very effective here.
Can we see some code, please?
> And sure, the same
> things could be constructed manually in C, but then you're using piles
> of macro trickery a la vec.h
Are we still talking about ALL_OBJFILES, or about something more
broad? ALL_OBJFILES is just a loop:
#define ALL_OBJFILES(obj) \
for ((obj) = object_files; (obj) != NULL; (obj) = (obj)->next)