X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Flm32-tdep.c;h=ea83892b049a68f37ced0bcf9a794d0e544a4f95;hb=73e6209faecc21516a981ed86a27b259f506098c;hp=25a7e1ee70e7db45edebdcf1d8c4adff1e0e4b51;hpb=9a3c826307ae6ad4dd6fbd72431e7d9d4947f1dd;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/lm32-tdep.c b/gdb/lm32-tdep.c index 25a7e1ee70..ea83892b04 100644 --- a/gdb/lm32-tdep.c +++ b/gdb/lm32-tdep.c @@ -1,7 +1,7 @@ /* Target-dependent code for Lattice Mico32 processor, for GDB. Contributed by Jon Beniston - Copyright (C) 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2009-2016 Free Software Foundation, Inc. This file is part of GDB. @@ -289,7 +289,8 @@ lm32_push_dummy_call (struct gdbarch *gdbarch, struct value *function, regcache_cooked_write_unsigned (regcache, first_arg_reg + i, val); else { - write_memory (sp, (void *) &val, TYPE_LENGTH (arg_type)); + write_memory_unsigned_integer (sp, TYPE_LENGTH (arg_type), byte_order, + val); sp -= 4; } }