From: Daniel Jacobowitz <drow@false.org>
To: Joakim Hove <hove@ift.uib.no>
Cc: gdb@sources.redhat.com
Subject: Re: Setting breakpoint in src file located in different directory
Date: Tue, 12 Apr 2005 12:07:00 -0000 [thread overview]
Message-ID: <20050412120746.GB6951@nevyn.them.org> (raw)
In-Reply-To: <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
next prev parent reply other threads:[~2005-04-12 12:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-12 10:16 Joakim Hove
2005-04-12 12:07 ` Daniel Jacobowitz [this message]
2005-04-12 12:18 ` Joakim Hove
2005-04-12 12:22 ` Daniel Jacobowitz
2005-04-12 12:59 ` Joakim Hove
2005-04-12 13:04 ` Daniel Jacobowitz
2005-04-12 13:16 ` Joakim Hove
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050412120746.GB6951@nevyn.them.org \
--to=drow@false.org \
--cc=gdb@sources.redhat.com \
--cc=hove@ift.uib.no \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox