diff options
author | Pedro Alves <palves@redhat.com> | 2011-10-31 12:55:26 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-10-31 12:55:26 +0000 |
commit | b9fd179153353a88a34dd97a03ee698376212d29 (patch) | |
tree | 8bc287b65968fbb6ab935b498ed00a0db9363cec /gdb/gdbserver/target.c | |
parent | bb593acb76bc52b23ddbad3f9b5199be26879da5 (diff) | |
download | gdb-b9fd179153353a88a34dd97a03ee698376212d29.zip gdb-b9fd179153353a88a34dd97a03ee698376212d29.tar.gz gdb-b9fd179153353a88a34dd97a03ee698376212d29.tar.bz2 |
2011-10-31 Pedro Alves <pedro@codesourcery.com>
gdb/gdbserver/
* mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
clobber the breakpoints' shadows with fast tracepoint jumps.
* mem-break.h (check_mem_write): Add `myaddr' parameter.
* target.c (write_inferior_memory): Also pass MYADDR down to
check_mem_write.
gdb/testsuite/
* gdb.trace/trace-break.c: New.
* gdb.trace/trace-break.exp: New.
Diffstat (limited to 'gdb/gdbserver/target.c')
-rw-r--r-- | gdb/gdbserver/target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbserver/target.c b/gdb/gdbserver/target.c index 83eb27f..873ee68 100644 --- a/gdb/gdbserver/target.c +++ b/gdb/gdbserver/target.c @@ -63,7 +63,7 @@ write_inferior_memory (CORE_ADDR memaddr, const unsigned char *myaddr, buffer = xmalloc (len); memcpy (buffer, myaddr, len); - check_mem_write (memaddr, buffer, len); + check_mem_write (memaddr, buffer, myaddr, len); res = (*the_target->write_memory) (memaddr, buffer, len); free (buffer); buffer = NULL; |