Problem after hitting breakpoint on Windows (with GDBserver)

Jan Kratochvil jan.kratochvil@redhat.com
Tue Mar 13 14:24:00 GMT 2012


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



More information about the Gdb-patches mailing list