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 RFC] Protoize m32r-stub.c, m88k-nat.c, m88k-tdep.c


More protoization...

I did three files this time because there was only one function that
needed doing in each of them.  (The m88k-*.c files bring back old
memories; I first started hacking on gdb on an m88k box in the early
nineties.)

	* m32r-stub.c (prepare_to_step): Protoize.
	* m88k-nat.c (fetch_inferior_registers): Protoize.
	* m88k-tdep.c (m88k_skip_prologue): Protoize.

Index: m32r-stub.c
===================================================================
RCS file: /cvs/src/src/gdb/m32r-stub.c,v
retrieving revision 1.3
diff -u -r1.3 m32r-stub.c
--- m32r-stub.c	2000/07/30 01:48:26	1.3
+++ m32r-stub.c	2000/09/15 07:17:27
@@ -1083,7 +1083,11 @@
    Returns: True  if we should actually execute the instruction; 
 	    False if we are going to emulate executing the instruction,
 	    in which case we simply report to GDB that the instruction 
-	    has already been executed.  */
+	    has already been executed.  
+	    
+   CONTINUE_P indicates whether or not this operation is a single
+   step.  (0 for single step, 1 for continue - see below for more
+   details.) */
 
 #define TRAP1  0x10f1;	/* trap #1 instruction */
 #define NOOP   0x7000;  /* noop    instruction */
@@ -1092,8 +1096,7 @@
 static unsigned short noop  = NOOP;
 
 static int
-prepare_to_step(continue_p)
-     int continue_p;	/* if this isn't REALLY a single-step (see below) */
+prepare_to_step(int continue_p)
 {
   unsigned long pc = registers[PC];
   int branchCode   = isBranch((unsigned char *) pc);
Index: m88k-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/m88k-nat.c,v
retrieving revision 1.3
diff -u -r1.3 m88k-nat.c
--- m88k-nat.c	2000/07/30 01:48:26	1.3
+++ m88k-nat.c	2000/09/15 07:17:28
@@ -62,8 +62,7 @@
 extern int errno;
 
 void
-fetch_inferior_registers (regno)
-     int regno;			/* Original value discarded */
+fetch_inferior_registers (int regno)
 {
   register unsigned int regaddr;
   char buf[MAX_REGISTER_RAW_SIZE];
Index: m88k-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/m88k-tdep.c,v
retrieving revision 1.2
diff -u -r1.2 m88k-tdep.c
--- m88k-tdep.c	2000/07/30 01:48:26	1.2
+++ m88k-tdep.c	2000/09/15 07:17:29
@@ -401,8 +401,7 @@
    prologue.  */
 
 CORE_ADDR
-m88k_skip_prologue (ip)
-CORE_ADDR (ip);
+m88k_skip_prologue (CORE_ADDR ip)
 {
   struct frame_saved_regs saved_regs_dummy;
   struct symtab_and_line sal;


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