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 symm-nat.c, symtab.c, ultra3-nat.c


More protoization...

Although three files were modified, only one function was actually
protoized.  The other two functions (one each in symm-nat.c and
symtab.c) were flagged as not being prototyped by my script which
searches for K&R style declarations.  They both turned out to be
okay, except for an extraneous blank line.

	* symm-nat.c (print_1167_regs): Remove extraneous blank line
	after function declarator.
	* symtab.c (search_symbols): Likewise.
	* ultra3-nat.c (fetch_core_registers): Protoize.

Index: symm-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/symm-nat.c,v
retrieving revision 1.3
diff -u -r1.3 symm-nat.c
--- symm-nat.c	2000/10/27 01:25:10	1.3
+++ symm-nat.c	2000/10/31 05:54:23
@@ -314,7 +314,6 @@
 }
 
 print_1167_regs (long regs[FPA_NREGS])
-
 {
   int i;
 
Index: symtab.c
===================================================================
RCS file: /cvs/src/src/gdb/symtab.c,v
retrieving revision 1.20
diff -u -r1.20 symtab.c
--- symtab.c	2000/10/30 21:50:58	1.20
+++ symtab.c	2000/10/31 05:54:28
@@ -3535,7 +3535,6 @@
 void
 search_symbols (char *regexp, namespace_enum kind, int nfiles, char *files[],
 		struct symbol_search **matches)
-
 {
   register struct symtab *s;
   register struct partial_symtab *ps;
Index: ultra3-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/ultra3-nat.c,v
retrieving revision 1.3
diff -u -r1.3 ultra3-nat.c
--- ultra3-nat.c	2000/07/30 01:48:27	1.3
+++ ultra3-nat.c	2000/10/31 05:54:29
@@ -254,14 +254,13 @@
 /* 
  * Read AMD's Binary Compatibilty Standard conforming core file.
  * struct ptrace_user is the first thing in the core file
+ *
+ * CORE_REG_SECT, CORE_REG_SIZE, WHICH, and REG_ADDR are all ignored.
  */
 
 static void
-fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
-     char *core_reg_sect;	/* Unused in this version */
-     unsigned core_reg_size;	/* Unused in this version */
-     int which;			/* Unused in this version */
-     CORE_ADDR reg_addr;	/* Unused in this version */
+fetch_core_registers (char *core_reg_sect, unsigned core_reg_size,
+		      int which, CORE_ADDR reg_addr)
 {
   register int regno;
   int val;


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