From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29254 invoked by alias); 8 May 2004 03:27:20 -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 29242 invoked from network); 8 May 2004 03:27:20 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 8 May 2004 03:27:20 -0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i483RJ0m018889 for ; Fri, 7 May 2004 23:27:19 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i483RHw12848; Fri, 7 May 2004 23:27:17 -0400 Received: from redhat.com (dhcp-172-16-25-160.sfbay.redhat.com [172.16.25.160]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id i483RGC00465; Fri, 7 May 2004 20:27:16 -0700 Message-ID: <409C5394.3070208@redhat.com> Date: Sat, 08 May 2004 03:27:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.4.2) Gecko/20040301 MIME-Version: 1.0 To: gdb-patches@sources.redhat.com, Elena Zannoni Subject: [RFA] Make QUIT work Content-Type: multipart/mixed; boundary="------------090105050202060907010701" X-RedHat-Spam-Score: 0 X-SW-Source: 2004-05/txt/msg00234.txt.bz2 This is a multi-part message in MIME format. --------------090105050202060907010701 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 269 Elena, here's something that must have fallen thru the cracks at some point. handle_sigint needs to set quit_flag -- or else QUIT won't quit. As is currently, QUIT won't work unles immediate_quit is set -- and I'm pretty sure that's not how it was intended to work. --------------090105050202060907010701 Content-Type: text/plain; name="quit" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="quit" Content-length: 704 2004-05-08 Michael Snyder * event-top.c (handle_sigint): Set quit_flag, so that QUIT will work the next time it's invoked. Index: event-top.c =================================================================== RCS file: /cvs/src/src/gdb/event-top.c,v retrieving revision 1.33 diff -p -r1.33 event-top.c *** event-top.c 28 Feb 2004 18:04:36 -0000 1.33 --- event-top.c 8 May 2004 03:22:55 -0000 *************** void *** 950,955 **** --- 950,956 ---- handle_sigint (int sig) { signal (sig, handle_sigint); + quit_flag=1; /* If immediate_quit is set, we go ahead and process the SIGINT right away, even if we usually would defer this to the event loop. The --------------090105050202060907010701--