[Top][All Lists]

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

Re: ddd cant find paths that gdb can

From: Peter Wainwright
Subject: Re: ddd cant find paths that gdb can
Date: Fri, 16 Jan 2009 18:23:14 +0000

On Fri, 2009-01-16 at 18:56 +0530, Rustom Mody wrote:
> I have a large source tree that I am trying to debug with DDD.
> It works with gdb.
> But when I use DDD to debug sources, and try to set a breakpoint as in
> gdb (actually at the gdb console in DDD) it complains:
> No source file named <name-of-file>
> The gdb behavior is that when the bp is set it says:
> function <name> not defined
> breakpoint 1 <name> pending
> Then a run command works fine and comes to the correct source line
> Note1: The file is there and Ive tried giving relative and absolute paths
> Note2:Tried to add the paths into sources and object directories but
> is seems to make no difference
> So it seems that gdb is able to find and debug into dynamically loaded
> files but DDD cant??

Try executing "set breakpoint pending on" in the GDB console.

Or in the dialog Edit/GDB Settings, set the entry entitled
"Debugger's behaviour regarding pending breakpoints" to "on"
(without the quotes).

The default value of this field is "auto", which works in GDB
but not in the DDD GDB console.  I imagine with this setting
GDB only gives a prompt if connected to a real terminal
(though I would have thought the DDD pseudo-tty should
be equivalent).

Peter Wainwright

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

reply via email to

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