summaryrefslogtreecommitdiff
path: root/gdb/v850-tdep.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1996-10-16 08:57:35 +0000
committerStu Grossman <grossman@cygnus>1996-10-16 08:57:35 +0000
commit687f4e2379f3aaf14bd74482b85488f444696464 (patch)
tree6cb6a141ff9cee6cf6e98ab47b30dcf70f789cbc /gdb/v850-tdep.c
parentf964b01d903959abb9ccf666a111bb80b6f2da01 (diff)
downloadbinutils-gdb-687f4e2379f3aaf14bd74482b85488f444696464.tar.gz
* v850-tdep.c (v850_push_arguments): Use symbolic names for arg
registers. * config/v850/tm-v850.h: Change FP to 29. Define arg regs.
Diffstat (limited to 'gdb/v850-tdep.c')
-rw-r--r--gdb/v850-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/v850-tdep.c b/gdb/v850-tdep.c
index 7e6b431da91..1b1f5c81041 100644
--- a/gdb/v850-tdep.c
+++ b/gdb/v850-tdep.c
@@ -343,7 +343,7 @@ v850_push_arguments (nargs, args, sp, struct_return, struct_addr)
int argreg;
int argnum;
- argreg = 6;
+ argreg = ARG0_REGNUM;
if (struct_return)
{
@@ -371,7 +371,7 @@ v850_push_arguments (nargs, args, sp, struct_return, struct_addr)
}
while (len > 0)
- if (argreg <= 9)
+ if (argreg <= ARGLAST_REGNUM)
{
CORE_ADDR regval;