This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: use memcpy, not a loop
On Tue, 2008-07-29 at 15:10 -0700, Michael Snyder wrote:
> On Tue, 2008-07-29 at 13:13 -0600, Tom Tromey wrote:
> > While debugging on the python branch I ran into a couple of loops that
> > can be replaced with memcpy. I find that this is easier to read and
> > it makes debugging a bit friendlier.
> >
> > Built and tested on the compile farm (x86-64).
> > Ok?
>
> Sure. Looks like you can nuke "tmp" from the function too...
>
> No need to re-submit if you decide to make that change.
> But doesn't each of those functions have *two* such loops?
Oh, never mind, I see that the 2nd loop is not a simple copy.
And so it still requires 'tmp'.