From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4362 invoked by alias); 27 Mar 2009 08:44:01 -0000 Received: (qmail 4350 invoked by uid 22791); 27 Mar 2009 08:44:00 -0000 X-SWARE-Spam-Status: No, hits=0.0 required=5.0 tests=BAYES_00,DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 Mar 2009 08:43:56 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Ln7fO-0002yF-VH for gdb@sourceware.org; Fri, 27 Mar 2009 01:43:54 -0700 Message-ID: <22737823.post@talk.nabble.com> Date: Fri, 27 Mar 2009 08:44:00 -0000 From: Nirf To: gdb@sourceware.org Subject: Help with Code in Multiple Directories MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-03/txt/msg00177.txt.bz2 Hello, I'm trying to get started with GDB but am having great trouble. I have a fairly complicated program with code spread out over several directories and GDB is refusing to recognize that I have any source at all. I have also tried GDB on a hello world program and in that case it worked. To specify the directory structure, I have: .../UnixBuild/ which contains the make file and the executable .../HysteresisFiles/ which contains most of the source .../Console/ which contains the rest i go into the konsole, go into UnixBuild and run gdb. Then I enter in the commands "directory .../HysteresisFiles/" and then "directory .../Console/" (at this point I should probably clarify that ... stands for the base directory that I am typing in in full). Then I type "file HysteresisConsole" which is the name of my executable. It loads fine and I am able to run it. However when I type in a command like "list sourcecodename:5" it does not find the source code regardless of which file name I insert for sourcecodename. Any help with this would be greatly appreciated. Nir -- View this message in context: http://www.nabble.com/Help-with-Code-in-Multiple-Directories-tp22737823p22737823.html Sent from the Sourceware - gdb list mailing list archive at Nabble.com.