X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=FJ+ QjezKykORw8/TuMHy9y0dgawssRlXrUBmmHEg8gggBB4nUn0lsnhWRBmJXY/Tkcr rL4sJhl1O6nDtQiDU5ORmBkZu8tMlzI6S+cg4BIYAQLYhYNIdcbJueuZCiC/JC3s QsIrABLvggNM54VR1bEx+cgRI1DMaKfRFJJ+OXYA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; s=default; bh=F1niuplTs MiZxAYps9lqM2f1wqU=; b=kNwTaMJdzKsMGiQOWawgydmLzIzZKIhqoAxDH5+84 IoYMT36SkyK9fjU6P3gp9o1zLC0EVMWaohnLvs2KbLQFvhneox7hlIlHP8tcKf1z OUtAEbJiIEcikc7L9VWxB7X1w30Xm1Gs4Rt8xqMWzhtAIAO5Gm2qsuKzBvi4H5Ek 0s= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.0 required=5.0 tests=AWL,BAYES_20,SPF_PASS autolearn=ham version=3.3.2 X-HELO: smtp2.cc.ic.ac.uk From: "Kris Thielemans" To: Subject: gdb: interrupt program with ctrl-C works, but cannot continue Date: Sat, 18 Jan 2014 10:51:22 -0000 Message-ID: <00c501cf143b$3ab721e0$b02565a0$@imperial.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-IC-MsgID: 1W4TUY-0001JO-Tp Hi I'm using Cygwin gdb 7.6.50.20130728-cvs (cygwin-special) to debug my program compiled with cygwin g++ 4.8.2. I'm trying to interrupt my program with ctrl-C to see where it is (info stack), and then to use "continue" to keep on going. Unfortunately, after this, my program exits (gdb doesn't). I see something like this in the gdb window: Program received signal SIGINT, Interrupt. Quit (gdb) c Continuing. [Inferior 1 (process 22828) exited with code 01000] Clearly, the interrupt gets passed to the program, which in this case I don't want. I'm fairly sure that half a year ago, this wasn't the case (i.e. I could continue my program from wherever it was). Pressing ctrl-break seems even worse: Program received signal SIGQUIT, Quit. 0x004b8bcc in stir::UCL::CListEventECAT8_32bit::get_detection_position (this=0x8004f914, det_pos=...) at /home/kris/devel/INM/STIR-UCL/src/listmode_buildblock/CListRecordECAT8_32bit .cxx:58 58 const int tang_pos_num = this->data.offset % num_tangential_poss;//(this->num_sinograms * this-> num_views); (gdb) c Continuing. 198 [main] lm_to_projdata 26288 open_stackdumpfile: Dumping stack trace to lm_to_projdata.exe.stackdump [Inferior 1 (process 26288) exited with code 0101400] Is there some command I can type in the gdb prompt to achieve what I want? I'm guessing "handle" should do it, but I cannot figure it out. Thanks Kris PS: running latest Cygwin 32-bit version. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple