This is the mail archive of the gdb-patches@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: Problem after hitting breakpoint on Windows (with GDBserver)


On Tue, 13 Mar 2012 02:39:15 +0100, Joel Brobecker wrote:
>     One way to fix that problem was to lift that limitation, by using
>     a temporary buffer inside memory_xfer_partial, and then copy the
>     contents of that buffer into the target buffer after the two steps
>     are complete. But Pedro felt it was too heavy a hammer.

This problem was affecting also gdbserver which I fixed in December:
	[patch] gdbserver: Fix overlapping memcpy (safe now)
	http://sourceware.org/ml/gdb-patches/2011-12/msg00057.html

I tried now shortly and I cannot reproduce the valgrind errors for GDB with
gdbserver with disabled z* packets but according to the code and according to
you description it looks as the same problem.

Isn't it safer to fix all the cases?


Thanks,
Jan


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