diff options
Diffstat (limited to 'gdb/sh-tdep.c')
-rw-r--r-- | gdb/sh-tdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index bfb220a..04431df 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -923,12 +923,12 @@ sh_justify_value_in_reg (struct gdbarch *gdbarch, struct value *val, int len) { /* value gets right-justified in the register or stack word. */ if (gdbarch_byte_order (gdbarch) == BFD_ENDIAN_BIG) - memcpy (valbuf + (4 - len), value_contents (val), len); + memcpy (valbuf + (4 - len), value_contents (val).data (), len); else - memcpy (valbuf, value_contents (val), len); + memcpy (valbuf, value_contents (val).data (), len); return valbuf; } - return value_contents (val); + return value_contents (val).data (); } /* Helper function to eval number of bytes to allocate on stack. */ |