ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem: execution doesn;t come to the breakpoint


From: Knox Long
Subject: Re: Problem: execution doesn;t come to the breakpoint
Date: Sat, 30 Aug 2008 15:34:54 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.16) Gecko/20080703 SeaMonkey/1.1.11


I have had similar annoying problems in the past, and never fully been able to determine their cause. Generally, my workaround has been to trying startding ddd in the directory with the source files, and so the problem is clearly associated with search paths. But it would be nice if this were fixed. The other problem I see commonly is that the program stops but the cursor is not at the breakpoint but somewhere considerably higher up in the code. next usually brings the cursor where it ought to be. Knox Long

Peter Wainwright wrote:
On Fri, 2008-08-29 at 16:49 +0530, Nilanka Rajapaksha wrote:
Hi,

Please someone help me with this as I'm  a newbie to this debugger.
When I debug the project the execution doesn't come to my breakpoint which I'm sure the execution should come.

The project has a lot of files in different directories. I checked the *.o file is also created to the file. I added the breakpoint after opening the file using "open source" command. and when I press the edit button it opens a empty vi window in the wrong location which is the location that I run the debugger.

1) can the ddd debugger debug project with sources in different directories?

It is supposed to work.  I'm not sure how it determines the absolute
path to the source file and why it sometimes does not do this.  If you
look in the window title bar, sometimes you see an absolute and
sometimes a relative path.  If you try to Edit Source when you have a
relative path name in the source window, it fails.  It's on my To Do
list :-)

However, if you can see the correct file in the source window, and if
you can set a breakpoint in this window, it should work.  Have you
checked whether the breakpoint is set as you expect in the
Source/Breakpoints dialog (or using the gdb command "info breakpoints")?

Peter Wainwright

2) What is the correct method if the method I mentioned above is wrong?



_______________________________________________
Ddd mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/ddd


_______________________________________________
ddd mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/ddd

Attachment: long.vcf
Description: Vcard


reply via email to

[Prev in Thread] Current Thread [Next in Thread]