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 | |
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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/target-memory.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f06e632..fd634e5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-10-24 Nathan Sidwell <nathan@codesourcery.com> + + * target-memory.c (claim_memory): Propagate baton for split memory + requests. + 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt> PR gdb/2341 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; } } } |