From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26370 invoked by alias); 26 Mar 2005 00:14:52 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 26326 invoked from network); 26 Mar 2005 00:14:36 -0000 Received: from unknown (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org with SMTP; 26 Mar 2005 00:14:36 -0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DEywG-0002PT-2B for insight@sources.redhat.com; Sat, 26 Mar 2005 01:14:04 +0100 Received: from 66.168.89.166 ([66.168.89.166]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Mar 2005 01:14:04 +0100 Received: from gene.smith by 66.168.89.166 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 26 Mar 2005 01:14:04 +0100 To: insight@sources.redhat.com From: geneSmith Subject: Re: Stop sign ignored while debugging linux pgm Date: Sat, 26 Mar 2005 00:14:00 -0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 66.168.89.166 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910 In-Reply-To: X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner-SpamScore: sss X-MailScanner-From: gcdi-insight@m.gmane.org X-MailScanner-To: insight@sources.redhat.com X-SW-Source: 2005-q1/txt/msg00063.txt.bz2 geneSmith wrote, On 3/25/2005 2:52 PM: > I have a program (written by someone else) that I need to look at with > gdb. The program runs in a tight loop looking for a keypress and > servicing tcp/ip events with select. When the program runs under insight > it seems to remove all the oxygen from the insight gui in that the STOP > button and other menus are ineffective. The program itself resesponds to > the keypresses appropriately. Also, if a window covers the insight gui > with the program running under its control it never get redrawn. > > When the program runs stand-alone (without insight/gdb) it does not respond > to ctrl-c. Do I possibly need some sort of SIGINT handler? > > When I write my own test program just looping forever on printf it responds > to the STOP button (SIGINT) as expected and stops the program > executation as I would expect. But the other program does not. > > Tks, > -gene Found that program had termios flag ISIG forced off. If left on can now at least do ctrl-c in program's xterm and cause insight to halt which is good. However, STOP button (and other menu items in insight) still disabled while program is running. Would be nice if STOP button worked but having ctrl-c respond is next best thing. -gene ps: Corrected a couple typos in original post above. -- Lit up like Levy's