From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20966 invoked by alias); 11 Jun 2008 17:54:00 -0000 Received: (qmail 20958 invoked by uid 22791); 11 Jun 2008 17:54:00 -0000 X-Spam-Check-By: sourceware.org Received: from elasmtp-dupuy.atl.sa.earthlink.net (HELO elasmtp-dupuy.atl.sa.earthlink.net) (209.86.89.62) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 11 Jun 2008 17:53:39 +0000 Received: from [209.86.224.39] (helo=elwamui-little.atl.sa.earthlink.net) by elasmtp-dupuy.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1K6UVr-00056t-Bx; Wed, 11 Jun 2008 13:53:35 -0400 Received: from 66.121.73.254 by webmail.pas.earthlink.net with HTTP; Wed, 11 Jun 2008 13:53:34 -0400 Message-ID: <16620283.1213206815197.JavaMail.root@elwamui-little.atl.sa.earthlink.net> Date: Wed, 11 Jun 2008 17:54:00 -0000 From: Igor Korot Reply-To: Igor Korot To: Michael Snyder Subject: Re: What do I need to look at the source while debugging? Cc: gdb@sourceware.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Mailer: EarthLink Zoo Mail 1.0 X-ELNK-Trace: ae972db06a188bef94f5150ab1c16ac08868399773331e30dcdfb13aa9c9068a9b72de90e2770993350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c 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/msg00101.txt.bz2 Hi, Michael, -----Original Message----- >From: Michael Snyder >Sent: Jun 11, 2008 10:15 AM >To: Igor Korot >Cc: gdb@sourceware.org >Subject: Re: What do I need to look at the source while debugging? > >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? Yes, it is. > >If so, could there be a directory along that path in which user 'igor' >does not have read permission? If user 'igor' wouldn't have a read permission I won't be able to open this file in KDevelop IDE. > >If not, you can override gdb's source file search path by using the >"dir" command (see "help dir") You mean like this: gdb myprogram gdb> dir /home/igor/portage/dev-db/unixODBC-2.2.12/work/unixODBC-2.2.12/Drivers right? > >Michael Thank you. > >