Skip to content

Commit ab0538b

Browse files
committed
Add M32R_ARG_REGISTER_SIZE
gdb/ * m32r-tdep.c M32R_ARG_REGISTER_SIZE: Added. (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
1 parent 5430098 commit ab0538b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

gdb/ChangeLog

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2017-04-12 Alan Hayward <alan.hayward@arm.com>
2+
3+
* m32r-tdep.c M32R_ARG_REGISTER_SIZE: Added.
4+
(m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
5+
16
2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
27

38
* windows-nat.c (windows_create_inferior): Declare 'toexec' as

gdb/m32r-tdep.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
#include "m32r-tdep.h"
4040
#include <algorithm>
4141

42+
/* The size of the argument registers (r0 - r3) in bytes. */
43+
#define M32R_ARG_REGISTER_SIZE 4
44+
4245
/* Local functions */
4346

4447
extern void _initialize_m32r_tdep (void);
@@ -677,7 +680,7 @@ m32r_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
677680
enum type_code typecode;
678681
CORE_ADDR regval;
679682
gdb_byte *val;
680-
gdb_byte valbuf[MAX_REGISTER_SIZE];
683+
gdb_byte valbuf[M32R_ARG_REGISTER_SIZE];
681684
int len;
682685

683686
/* First force sp to a 4-byte alignment. */

0 commit comments

Comments
 (0)