This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfc] Zap _WIN32 from main.c
- To: GDB Patches <gdb-patches at sources dot redhat dot com>
- Subject: Re: [rfc] Zap _WIN32 from main.c
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Fri, 4 May 2001 17:57:24 -0400
- References: <3AF2E913.9060902@cygnus.com>
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 <ac131313@redhat.com>
>
> * 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/