🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42731

Very basic gdb question.

#42731
From: James McGill
Date: Sat, 04 Nov 1995 00:00
35 lines
1742 bytes
I am fairly clear on the concepts of using the debugger.

I'm just missing something basic...  My source files are not loaded
when I run gdb.  

I am sitting in the directory where I have built my program, all the
*.c, *.h, and Makefile for the program are there.  The program compiles
and links just fine, and when I run gdb on it I can run it from the debugger
but I cannot see source code.

I ensure that my source directory is in the path with "directory", as 
well as $cdir:$cwd 

Whenever I try to do anything that wants a source file, I get

(gdb) search main
/isl1f/gnu/gcc-2.6.3/./libgcc2.c: No such file or directory.

for example.  I hope someone will steer me the right way on this 
deal.  I will be productive with gdb right away, once I figure out
how to load my source file into it.  I feel stupid :-) 


Sincere regards,

James


------------------------+----------------------------------------------
   James L. McGill      |   Professional Internet Consulting [PICnet]
 Systems Administrator  |   A Division of Netcom Communications Corp.
                        |                  Dallas, Texas
 <fishbowl@netcom.com>  | -=[  vox: 214-789-0456  fax: 214-789-0460 ]=-
------------------------+----------------------------------------------
Losing your drivers license is just God's way of saying "BOOGA, BOOGA!"
Technical Details
Message-ID: <fishbowlDHHypK.FKH@netcom.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,168ee1fa9af2522b,start
X-Google-Attributes: gid11318c,public
From: fishbowl@netcom.com (James McGill)
Subject: Very basic gdb question.
Date: 1995/11/04
Message-ID: <fishbowlDHHypK.FKH@netcom.com>
X-Deja-AN: 118699717
sender: fishbowl@netcom8.netcom.com
organization: Hardly
newsgroups: gnu.gcc.help