From: Stu Grossman Date: Wed, 16 Oct 1996 08:57:35 +0000 (+0000) Subject: * v850-tdep.c (v850_push_arguments): Use symbolic names for arg X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=687f4e2379f3aaf14bd74482b85488f444696464;p=binutils-gdb.git * v850-tdep.c (v850_push_arguments): Use symbolic names for arg registers. * config/v850/tm-v850.h: Change FP to 29. Define arg regs. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b1e50b330c0..265bc173f0d 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 diff --git a/gdb/config/v850/tm-v850.h b/gdb/config/v850/tm-v850.h index 9bd1b4884e1..6820ba58874 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 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;