From 24bf05ac93c26e876121110acc0cf8911bd7c38f Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Wed, 24 Oct 2007 20:14:58 +0000 Subject: [PATCH] 2007-10-24 Nathan Sidwell * target-memory.c (claim_memory): Propagate baton for split memory requests. --- gdb/ChangeLog | 5 +++++ gdb/target-memory.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f06e6324212..fd634e5f12f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-10-24 Nathan Sidwell + + * target-memory.c (claim_memory): Propagate baton for split memory + requests. + 2007-10-24 Pedro Alves PR gdb/2341 diff --git a/gdb/target-memory.c b/gdb/target-memory.c index 78f9d9c31cd..b0133677dde 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; } } } -- 2.30.2