This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] Misc compiler errors



Just checked in.
A couple of things that came about after the protoization:

2000-07-31  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>

	* sh-tdep.c (sh_push_arguments): Make header match prototype.

	* remote-e7000.c (e7000_start_remote): Use void *, not char * as
 	parameter to avoid compiler warning.
	(fetch_regs_from_dump): Call get_hex() with the correct number of
 	parameters.


Index: sh-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sh-tdep.c,v
retrieving revision 1.13
diff -c -u -p -r1.13 sh-tdep.c
cvs server: conflicting specifications of output style
--- sh-tdep.c   2000/07/30 01:48:27     1.13
+++ sh-tdep.c   2000/07/31 16:21:06
@@ -920,8 +920,8 @@ sh_pop_frame (void)
    to R7.   */
 
 static CORE_ADDR
-sh_push_arguments (int nargs, value_ptr *args, CORE_ADDR sp,
-                  unsigned char struct_return, CORE_ADDR struct_addr)
+sh_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
+                  int struct_return, CORE_ADDR struct_addr)
 {
   int stack_offset, stack_alloc;
   int argreg;


Index: remote-e7000.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-e7000.c,v
retrieving revision 1.6
diff -c -u -p -r1.6 remote-e7000.c
cvs server: conflicting specifications of output style
--- remote-e7000.c      2000/07/30 01:48:26     1.6
+++ remote-e7000.c      2000/07/31 16:22:15
@@ -562,7 +562,7 @@ or \t\ttarget e7000 pc\n");
 /* Stub for catch_errors.  */
 
 static int
-e7000_start_remote (char *dummy)
+e7000_start_remote (void *dummy)
 {
   int loop;
   int sync;
@@ -895,7 +895,7 @@ fetch_regs_from_dump (nextchar, want)
            }
          store_signed_integer (buf,
                                REGISTER_RAW_SIZE (regno),
-                               (LONGEST) get_hex (&thischar, nextchar));
+                               (LONGEST) get_hex (&thischar));
          supply_register (regno, buf);
          break;
        }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]