diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-10-24 20:14:58 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-10-24 20:14:58 +0000 |
commit | 24bf05ac93c26e876121110acc0cf8911bd7c38f (patch) | |
tree | a81de78272e0e05c9613b3f318fca5cbd761d0ea /gdb/target-memory.c | |
parent | fa99aa09842d6b92705f34d7735828bd78509fcd (diff) | |
download | gdb-24bf05ac93c26e876121110acc0cf8911bd7c38f.zip gdb-24bf05ac93c26e876121110acc0cf8911bd7c38f.tar.gz gdb-24bf05ac93c26e876121110acc0cf8911bd7c38f.tar.bz2 |
2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
* target-memory.c (claim_memory): Propagate baton for split memory
requests.
Diffstat (limited to 'gdb/target-memory.c')
-rw-r--r-- | gdb/target-memory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/target-memory.c b/gdb/target-memory.c index 78f9d9c..b013367 100644 --- a/gdb/target-memory.c +++ b/gdb/target-memory.c @@ -84,10 +84,10 @@ claim_memory (VEC(memory_write_request_s) *blocks, { struct memory_write_request *n = VEC_safe_push (memory_write_request_s, *result, NULL); - memset (n, 0, sizeof (struct memory_write_request)); + *n = *r; n->begin = claimed_begin; n->end = claimed_end; - n->data = r->data + (claimed_begin - r->begin); + n->data += claimed_begin - r->begin; } } } |