This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: What do I need to look at the source while debugging?


Hi, Michael,

-----Original Message-----
>From: Michael Snyder <msnyder@specifix.com>
>Sent: Jun 11, 2008 10:15 AM
>To: Igor Korot <ikorot@earthlink.net>
>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.
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]