aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/mem-break.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-10-31 12:55:26 +0000
committerPedro Alves <palves@redhat.com>2011-10-31 12:55:26 +0000
commitb9fd179153353a88a34dd97a03ee698376212d29 (patch)
tree8bc287b65968fbb6ab935b498ed00a0db9363cec /gdb/gdbserver/mem-break.h
parentbb593acb76bc52b23ddbad3f9b5199be26879da5 (diff)
downloadgdb-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/mem-break.h')
-rw-r--r--gdb/gdbserver/mem-break.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/gdbserver/mem-break.h b/gdb/gdbserver/mem-break.h
index 2f1dbea..c5cb20c 100644
--- a/gdb/gdbserver/mem-break.h
+++ b/gdb/gdbserver/mem-break.h
@@ -102,9 +102,11 @@ void check_mem_read (CORE_ADDR mem_addr, unsigned char *buf, int mem_len);
/* See if any breakpoints shadow the target memory area from MEM_ADDR
to MEM_ADDR + MEM_LEN. Update the data to be written to the target
- (in BUF) if necessary, as well as the original data for any breakpoints. */
+ (in BUF, a copy of MYADDR on entry) if necessary, as well as the
+ original data for any breakpoints. */
-void check_mem_write (CORE_ADDR mem_addr, unsigned char *buf, int mem_len);
+void check_mem_write (CORE_ADDR mem_addr,
+ unsigned char *buf, const unsigned char *myaddr, int mem_len);
/* Set the byte pattern to insert for memory breakpoints. This function
must be called before any breakpoints are set. */