This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Problem after hitting breakpoint on Windows (with GDBserver)
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 13 Mar 2012 15:24:18 +0100
- Subject: Re: Problem after hitting breakpoint on Windows (with GDBserver)
- References: <1331602756-23567-1-git-send-email-brobecker@adacore.com>
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