From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Faylor To: GDB Patches Subject: Re: [rfc] Zap _WIN32 from main.c Date: Fri, 04 May 2001 14:58:00 -0000 Message-id: <20010504175724.A25953@redhat.com> References: <3AF2E913.9060902@cygnus.com> X-SW-Source: 2001-05/msg00049.html Dunno if you need my approval for this, since it's under a _WIN32 conditional, but you've got it. cgf On Fri, May 04, 2001 at 01:38:27PM -0400, Andrew Cagney wrote: >Hello, > >Per _WIN32 discussion, the attatched zapps the #ifndef _WIN32 from main.c. > > Andrew >2001-05-04 Andrew Cagney > > * main.c (captured_main): Delete #ifndef _WIN32 conditional for > WinGDB. > >Index: main.c >=================================================================== >RCS file: /cvs/src/src/gdb/main.c,v >retrieving revision 1.9 >diff -p -r1.9 main.c >*** main.c 2001/04/05 02:02:13 1.9 >--- main.c 2001/05/04 16:56:39 >*************** extern int gdbtk_test (char *); >*** 706,718 **** > #endif > } > >- /* The default command loop. >- The WIN32 Gui calls this main to set up gdb's state, and >- has its own command loop. */ >- #if !defined _WIN32 || defined __GNUC__ >- /* GUIs generally have their own command loop, mainloop, or >- whatever. This is a good place to gain control because many >- error conditions will end up here via longjmp(). */ > #if 0 > /* FIXME: cagney/1999-11-06: The original main loop was like: */ > while (1) >--- 706,711 ---- >*************** extern int gdbtk_test (char *); >*** 748,754 **** > { > catch_errors (captured_command_loop, 0, "", RETURN_MASK_ALL); > } >- #endif > /* No exit -- exit is through quit_command. */ > } > >--- 741,746 ---- -- cgf@cygnus.com Red Hat, Inc. http://sources.redhat.com/ http://www.redhat.com/