From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9262 invoked by alias); 12 Apr 2005 12:07:56 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 8816 invoked from network); 12 Apr 2005 12:07:47 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 12 Apr 2005 12:07:47 -0000 Received: from drow by nevyn.them.org with local (Exim 4.50 #1 (Debian)) id 1DLKBG-0001pw-C2; Tue, 12 Apr 2005 08:07:46 -0400 Date: Tue, 12 Apr 2005 12:07:00 -0000 From: Daniel Jacobowitz To: Joakim Hove Cc: gdb@sources.redhat.com Subject: Re: Setting breakpoint in src file located in different directory Message-ID: <20050412120746.GB6951@nevyn.them.org> Mail-Followup-To: Joakim Hove , gdb@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-SW-Source: 2005-04/txt/msg00062.txt.bz2 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