This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: GDB 6.8.92 available for testing
> Date: Fri, 2 Oct 2009 11:14:47 -0700
> From: Joel Brobecker <brobecker@adacore.com>
>
> > However, the idiom:
> >
> > int len = TYPE_LENGTH(...);
> >
> > memcpy(..., ..., len);
> >
> > is used in several other places in the GDB tree. I really think that
> > we should fix all these cases; not just this one.
>
> Perhaps the type of length in struct type should be changed to size_t?
I think that would be a bad idea since size_t will be a 64-bit type on
64-bit hosts. This will increase memory usage on 6-bit hosts.