Message ID | 20161128122758.7762-3-antoine.tremblay@ericsson.com |
---|---|
State | New |
Headers | show |
Antoine Tremblay writes: > Before this patch, sparc_store_gregset_from_stack would read the inferior > memory with (*the_target)->read_memory, which returns the raw memory, > rather than the shadowed memory. I'm pulling back this patch as the read is done from the stack so using ->read_memory is ok. Thanks, Antoine
diff --git a/gdb/gdbserver/linux-sparc-low.c b/gdb/gdbserver/linux-sparc-low.c index 70c5c93..31ef791 100644 --- a/gdb/gdbserver/linux-sparc-low.c +++ b/gdb/gdbserver/linux-sparc-low.c @@ -184,7 +184,7 @@ sparc_store_gregset_from_stack (struct regcache *regcache, const void *buf) for (i = l0_regno; i <= i7_regno; i++) { - (*the_target->read_memory) (addr, tmp_reg_buf, sizeof (tmp_reg_buf)); + target_read_memory (addr, tmp_reg_buf, sizeof (tmp_reg_buf)); supply_register (regcache, i, tmp_reg_buf); addr += sizeof (tmp_reg_buf); }