From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19945 invoked by alias); 11 Jun 2008 17:16:36 -0000 Received: (qmail 19865 invoked by uid 22791); 11 Jun 2008 17:16:35 -0000 X-Spam-Check-By: sourceware.org Received: from bluesmobile.specifix.com (HELO bluesmobile.specifix.com) (216.129.118.140) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 11 Jun 2008 17:16:01 +0000 Received: from [127.0.0.1] (bluesmobile.specifix.com [216.129.118.140]) by bluesmobile.specifix.com (Postfix) with ESMTP id 2D4A43C24E; Wed, 11 Jun 2008 10:16:00 -0700 (PDT) Subject: Re: What do I need to look at the source while debugging? From: Michael Snyder To: Igor Korot Cc: gdb@sourceware.org In-Reply-To: <4779653.1213201568391.JavaMail.root@elwamui-little.atl.sa.earthlink.net> References: <4779653.1213201568391.JavaMail.root@elwamui-little.atl.sa.earthlink.net> Content-Type: text/plain Date: Wed, 11 Jun 2008 17:16:00 -0000 Message-Id: <1213204559.3601.609.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-7.fc7) 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: 2008-06/txt/msg00098.txt.bz2 On Wed, 2008-06-11 at 09:26 -0700, Igor Korot wrote: > Hi, ALL, > First a question: Is there anybody that using Gentoo + Portage? > > And now to the problem: > > I have a Gentoo box installed. On it I have a GNOME with KDevelop, > wxGTK, unixODBC and gdb. GNOME, KDevelop and gdb installed through > Portage. wxGTK is hand compiled and installed. > I installed unixODBC-2.2.12 using following: > > 'PORTAGE_TMPDIR=/home/igor FEATURES="noclean keepwork" emerge unixODBC' > > Then I change permissions on the /home/igor/portage/dev-db directory > to make it accessible to my user 'igor'. > Next, I started KDevelop, open the file /home/igor/portage/dev-db/unixODBC-2.2.12/work/unixODBC-2.2.12/Drivers/SQLConfigDataSource.c (it did open fine). > I put a breakopint in that function, and started my program. > At this point I received following message: > > no file named /home/igor/portage/dev-db/unixODBC-2.2.12/work/unixODBC-2.2.12/Drivers/SQLConfigDataSource.c. Is that the correct location of your source files? If so, could there be a directory along that path in which user 'igor' does not have read permission? If not, you can override gdb's source file search path by using the "dir" command (see "help dir") Michael