Skip to content

Commit

Permalink
Add M32R_ARG_REGISTER_SIZE
Browse files Browse the repository at this point in the history
gdb/
	* m32r-tdep.c M32R_ARG_REGISTER_SIZE: Added.
	(m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
  • Loading branch information
a74nh committed Apr 12, 2017
1 parent 5430098 commit ab0538b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions gdb/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
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
Expand Down
5 changes: 4 additions & 1 deletion gdb/m32r-tdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
#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);
Expand Down Expand Up @@ -677,7 +680,7 @@ m32r_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
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. */
Expand Down

0 comments on commit ab0538b

Please sign in to comment.