From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15327 invoked by alias); 1 Aug 2005 18:52:44 -0000 Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org Received: (qmail 14688 invoked by uid 22791); 1 Aug 2005 18:52:38 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 01 Aug 2005 18:52:38 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j71IqbsH019057 for ; Mon, 1 Aug 2005 14:52:37 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j71IqbV16063; Mon, 1 Aug 2005 14:52:37 -0400 Received: from localhost.localdomain (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id j71IqVsV010819; Mon, 1 Aug 2005 14:52:36 -0400 Subject: Re: Insight stalls when running program From: Keith Seitz To: Jesper Klitgaard <20034438@eit.iha.dk> Cc: "insight@sources.redhat.com" In-Reply-To: <42E740AE.20408@eit.iha.dk> References: <42E740AE.20408@eit.iha.dk> Content-Type: text/plain Date: Mon, 01 Aug 2005 18:52:00 -0000 Message-Id: <1122922351.5039.11.camel@lindt.uglyboxes.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2005-q3/txt/msg00031.txt.bz2 On Wed, 2005-07-27 at 10:07 +0200, Jesper Klitgaard wrote: > I load a simple executable in to the program; > > 1 #include > 2 #include > 3 > 4 void f1() > - 5 { > - 6 printf("Function 1\n"); > - 7 } > 8 > 9 int main() > - 10 { > - 11 int i = 5; > - 12 printf("Hello world!\n"); > - 13 f1(); > 14 > - 15 i += 5; > 16 > - 17 return 0; > - 18 } > > When I press run, Insight stalls. I have to force quit the program > because its not responding. > > Does anybody have any idea whats wrong? This sounds a familiar. How are you running insight? (from a terminal or some GUI way?) First thing to try (if you haven't already) is to use the Run button with the "use xterm as inferior's tty" option selected (go to File- >Target Settings... and select the "exec" target, click the use xterm option, and click "OK"). Keith