From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14914 invoked by alias); 20 Feb 2004 17:06:08 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 14905 invoked from network); 20 Feb 2004 17:06:06 -0000 Received: from unknown (HELO takamaka.act-europe.fr) (205.232.38.116) by sources.redhat.com with SMTP; 20 Feb 2004 17:06:06 -0000 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 0024D47D62; Fri, 20 Feb 2004 09:06:05 -0800 (PST) Date: Fri, 20 Feb 2004 17:06:00 -0000 From: Joel Brobecker To: Elena Zannoni Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA/RFC] QUIT doesn't seem to be working !? Message-ID: <20040220170605.GD1713@gnat.com> References: <20030812222211.GC923@gnat.com> <16435.52781.747628.886278@localhost.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16435.52781.747628.886278@localhost.redhat.com> User-Agent: Mutt/1.4i X-SW-Source: 2004-02/txt/msg00557.txt.bz2 Hello Elena, > So, since 6.1 is approaching, I would mark this as a known problem, > and try to solve it in mainline, after the branch is cut. Sounds good to me. I will take care of documenting the problem. Could you take care of fixing it? I remember not being completely sure of how things were supposed to work when I was looking at this... Thanks, -- Joel > > 2003-08-12 J. Brobecker > > > > * event-top.c (handle_sigint): Set quit_flag. > > > > Comments? Ok to apply? > > > > -- > > Joel > > Index: event-top.c > > =================================================================== > > RCS file: /nile.c/cvs/Dev/gdb/gdb-5.3/gdb/event-top.c,v > > retrieving revision 1.1 > > diff -u -p -r1.1 event-top.c > > --- event-top.c 16 Jan 2003 09:46:22 -0000 1.1 > > +++ event-top.c 12 Aug 2003 21:27:57 -0000 > > @@ -967,9 +967,14 @@ handle_sigint (int sig) > > if (immediate_quit) > > async_request_quit (0); > > else > > - /* If immediate quit is not set, we process SIGINT the next time > > - through the loop, which is fine. */ > > - mark_async_signal_handler_wrapper (sigint_token); > > + { > > + /* If immediate quit is not set, we process SIGINT the next time > > + through the loop, which is fine. */ > > + mark_async_signal_handler_wrapper (sigint_token); > > + /* We can also process the signal at certain specific locations > > + which are explicitely marked by a call to QUIT. */ > > + quit_flag = 1; > > + } > > } > > > > /* Do the quit. All the checks have been done by the caller. */