aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog9
-rw-r--r--gdb/config/v850/tm-v850.h6
-rw-r--r--gdb/v850-tdep.c4
3 files changed, 15 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b1e50b3..265bc17 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,11 @@
+start-sanitize-v850
+Wed Oct 16 01:53:43 1996 Stu Grossman (grossman@critters.cygnus.com)
+
+ * v850-tdep.c (v850_push_arguments): Use symbolic names for arg
+ registers.
+ * config/v850/tm-v850.h: Change FP to 29. Define arg regs.
+
+end-sanitize-v850
Tue Oct 15 16:30:07 1996 Stu Grossman (grossman@critters.cygnus.com)
* Makefile.in (init.c): Don't use -s option with grep. It means
@@ -22,6 +30,7 @@ start-sanitize-v850
* v850-tdep.c: Add support for function calling. Fix some
problems with debugging code w/o debug symbols.
* config/v850/tm-v850.h: Ditto.
+
end-sanitize-v850
Tue Oct 15 18:19:42 1996 Ian Lance Taylor <ian@cygnus.com>
diff --git a/gdb/config/v850/tm-v850.h b/gdb/config/v850/tm-v850.h
index 9bd1b48..6820ba5 100644
--- a/gdb/config/v850/tm-v850.h
+++ b/gdb/config/v850/tm-v850.h
@@ -26,7 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
{ "r0", "r1", "r2", "sp", "gp", "r5", "r6", "r7", \
"r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15", \
"r16", "r17", "r18", "r19", "r20", "r21", "r22", "r23", \
- "r24", "r25", "r26", "r27", "r28", "r29", "ep", "r31", \
+ "r24", "r25", "r26", "r27", "r28", "fp", "ep", "r31", \
\
"eipc", "eipsw", "fepc", "fepsw", "ecr", "psw", "sr6", "sr7", \
"sr8", "sr9", "sr10", "sr11", "sr12", "sr13", "sr14", "sr15", \
@@ -40,9 +40,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define MAX_REGISTER_RAW_SIZE 4
#define SP_REGNUM 3
-#define FP_REGNUM 2
+#define ARG0_REGNUM 6
+#define ARGLAST_REGNUM 9
#define V0_REGNUM 10
#define V1_REGNUM 11
+#define FP_REGNUM 29
#define RP_REGNUM 31
#define PC_REGNUM 64
diff --git a/gdb/v850-tdep.c b/gdb/v850-tdep.c
index 7e6b431..1b1f5c8 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;