gdb/
* m32r-tdep.c M32R_ARG_REGISTER_SIZE: Added.
(m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
+2017-04-12 Alan Hayward <alan.hayward@arm.com>
+
+ * m32r-tdep.c M32R_ARG_REGISTER_SIZE: Added.
+ (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
+
2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
* windows-nat.c (windows_create_inferior): Declare 'toexec' as
#include "m32r-tdep.h"
#include <algorithm>
+/* The size of the argument registers (r0 - r3) in bytes. */
+#define M32R_ARG_REGISTER_SIZE 4
+
/* Local functions */
extern void _initialize_m32r_tdep (void);
enum type_code typecode;
CORE_ADDR regval;
gdb_byte *val;
- gdb_byte valbuf[MAX_REGISTER_SIZE];
+ gdb_byte valbuf[M32R_ARG_REGISTER_SIZE];
int len;
/* First force sp to a 4-byte alignment. */