From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13469 invoked by alias); 27 Feb 2008 22:12:43 -0000 Received: (qmail 13461 invoked by uid 22791); 27 Feb 2008 22:12:43 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 27 Feb 2008 22:12:23 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 0331E98140; Wed, 27 Feb 2008 22:12:22 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id D12FC9811F; Wed, 27 Feb 2008 22:12:19 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JUUVe-0007DG-Qf; Wed, 27 Feb 2008 17:12:18 -0500 Date: Wed, 27 Feb 2008 22:45:00 -0000 From: Daniel Jacobowitz To: Antony KING Cc: gdb@sourceware.org Subject: Re: Any solution to not being able to interrupt step in GDB ? Message-ID: <20080227221218.GA27709@caradoc.them.org> Mail-Followup-To: Antony KING , gdb@sourceware.org References: <47C5DD59.5090608@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47C5DD59.5090608@st.com> User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-02/txt/msg00235.txt.bz2 On Wed, Feb 27, 2008 at 09:59:53PM +0000, Antony KING wrote: > Is there any clean solution I can use which allows me to break out this > loop if there is a pending SIGINT event waiting to be processed ? There > seems a be a need for a way to "stop stepping" when Ctrl-C is pressed. > One thought I have is to fake a target SIGINT signal by checking for a > pending SIGINT event after returning from target_wait() and modifying > ecs before calling handle_inferior_event(). I can refer you to the reply to the message you linked; which signal handler is running when not in your "sweet spot"? -- Daniel Jacobowitz CodeSourcery