This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: Insight stalls when running program
- From: Keith Seitz <keiths at redhat dot com>
- To: Jesper Klitgaard <20034438 at eit dot iha dot dk>
- Cc: "insight at sources dot redhat dot com" <insight at sources dot redhat dot com>
- Date: Mon, 01 Aug 2005 11:52:31 -0700
- Subject: Re: Insight stalls when running program
- References: <42E740AE.20408@eit.iha.dk>
On Wed, 2005-07-27 at 10:07 +0200, Jesper Klitgaard wrote:
> I load a simple executable in to the program;
>
> 1 #include <stdio.h>
> 2 #include <stdlib.h>
> 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