Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch/RFA]: Fix duplicated define of _initialize_ser_e7000pc
@ 2002-06-10  4:32 Andrew Volkov
  2002-06-10  8:18 ` Andrew Cagney
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Volkov @ 2002-06-10  4:32 UTC (permalink / raw)
  To: gdb-patches

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch/RFA]: Fix duplicated define of _initialize_ser_e7000pc
  2002-06-10  4:32 [patch/RFA]: Fix duplicated define of _initialize_ser_e7000pc Andrew Volkov
@ 2002-06-10  8:18 ` Andrew Cagney
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Cagney @ 2002-06-10  8:18 UTC (permalink / raw)
  To: Andrew Volkov; +Cc: gdb-patches

> -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
> 
> 
Hmm, yes! Thanks.

Andrew



^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [patch/RFA]: Fix duplicated define of _initialize_ser_e7000pc
@ 2002-06-10 12:21 Andrew Volkov
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Volkov @ 2002-06-10 12:21 UTC (permalink / raw)
  To: gdb-patches

Committed

Andrey

>-----Original Message-----
>From: Andrew Volkov [mailto:Andrew.Volkov@transas.com]
>Sent: Monday, June 10, 2002 3:32 PM
>To: gdb-patches@sources.redhat.com
>Subject: [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
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-06-10 19:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-10  4:32 [patch/RFA]: Fix duplicated define of _initialize_ser_e7000pc Andrew Volkov
2002-06-10  8:18 ` Andrew Cagney
2002-06-10 12:21 Andrew Volkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox