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]
Other format: [Raw text]

[patch/RFA]: Fix duplicated define of _initialize_ser_e7000pc


Hi,

Attached patch fix double call of _initialize_ser_e7000pc 
in generated init.c

Ok for commit?

Andrey
 
2002-10-06 Andrey Volkov <avolkov@transas.com>

	* ser-e7kpc.c: Fix duplicated define and call of 
	_initialize_ser_e7000pc

Index: ser-e7kpc.c
===================================================================
RCS file: /cvs/src/src/gdb/ser-e7kpc.c,v
retrieving revision 1.7
diff -u -r1.7 ser-e7kpc.c
--- ser-e7kpc.c	11 Jul 2001 17:52:32 -0000	1.7
+++ ser-e7kpc.c	10 Jun 2002 11:20:50 -0000
@@ -423,16 +423,12 @@
   e7000pc_noop,			/* wait for output to drain */
 };
 
-void
-_initialize_ser_e7000pc (void)
-{
-  serial_add_interface (&e7000pc_ops);
-}
-#else
+#endif /*_WIN32 or __GO32__*/
 
 void
 _initialize_ser_e7000pc (void)
 {
-
+#if defined __GO32__ || defined _WIN32
+  serial_add_interface (&e7000pc_ops);
+#endif  
 }
-#endif


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