This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
RE: insight won't debug my program
- From: "Martin Alley" <martin dot alley at ntlworld dot com>
- To: "'Martin M. Hunt'" <hunt at redhat dot com>
- Cc: <insight at sources dot redhat dot com>
- Date: Mon, 29 Sep 2003 14:43:26 +0100
- Subject: RE: insight won't debug my program
Hi Richard,
I found that if I executed a run command in the command window, it then
ran successfully, breaking at my breakpoints.
I will try not putting anything the xterm field. Admittedly, when it
ran as described above, then program ran in the window I ran
sourcenavigator from, not the xterm window established by xterm -e.
Thanks so far
Martin
-----Original Message-----
From: Martin M. Hunt [mailto:hunt@redhat.com]
Sent: 29 September 2003 09:03
To: Martin Alley
Cc: insight@sources.redhat.com
Subject: Re: insight won't debug my program
On Sun, 2003-09-28 at 08:02, Martin Alley wrote:
> Hi All,
>
> I want to debug a program on RedHat 9 (to which I am fairly new).
> I have downloaded, made and installed Insight/gdb5.3 (./configure,
> ./make, ./make install)
>
> I want to try "debugging" the monop demo C program.
> I have set up the debugger to run monop, and the working directory is
> that of monop.
>
> The xterm field is set to xterm -e
> When I click debug, an xterm window comes up with the following
> contents:
> "
> xterm: Can't execvp -T: No such file or directory
> [martin@rh9 monop]$
> "
>
>
> I get the insight source window, set a breakpoint at the first
> executable line in main, and hit run - insight then hangs. (cursor is
> watch symbol).
>
> I have left the command to run insight as insight - not changed it to
> gdb in contradiction to the readme instructions with sourcenavigator.
>
>
> How do I troubleshoot my problem?
I don't have a copy of 5.3 around, but I don't recall an xterm field,
just a checkbox. Does Insight work if you don't use xterm?
Can run debug your program with GDB?
--
Martin M. Hunt <hunt@redhat.com>
Red Hat Inc.