This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Setting breakpoint in src file located in different directory
- From: Daniel Jacobowitz <drow at false dot org>
- To: Joakim Hove <hove at ift dot uib dot no>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 12 Apr 2005 08:07:46 -0400
- Subject: Re: Setting breakpoint in src file located in different directory
- References: <bjjpsx02w3b.fsf@termo1.fi.uib.no>
On Tue, Apr 12, 2005 at 11:16:56AM +0200, Joakim Hove wrote:
>
> Hello,
>
> I am running/debugging an executable in the path ~/RunPath
>
> The executable in question is built from sources located in many
> different directories. I (try) to set the breakpoints with the
> ~/.gdbinit file:
>
> break /home/fimm/cmu/hove/libdos/src/ehist.c:694
> break /home/fimm/cmu/hove/Cluster/Apps/src/Potts/Potts.c:396
>
> This should in my opinion the breakpoints in the two files
> listed. However when invoking gdb, I only get the message:
>
> No source file named /home/fimm/cmu/hove/libdos/src/ehist.c.
> No source file named /home/fimm/cmu/hove/Cluster/Apps/src/Potts/Potts.c.
You didn't mention what version of GDB you are using; that makes it
hard to help you. A lot of bugs in this area have been fixed lately,
so you might want to try 6.3 or a CVS snapshot.
--
Daniel Jacobowitz
CodeSourcery, LLC