🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #10177

Can't debug fortran programs with gdb 3.5

#10177
From: Charles Karney
Date: Thu, 01 Sep 1994 05:19
41 lines
2263 bytes
I'm running gdb 3.5 on a Sun SPARCstation with SunOS 4.0.3.  I have a
simple fortran program  in /user/karney/codes/bounce/test.f:
	program test
	xfoo=2
	y=xfoo+xfoo
	write(6,*) 'xfooff=',xfoo,' y=',y
	stop
	end
I type
    cd /user/karney/codes/bounce/
    f77 -g -o test test.f
    gdb test
This gives:
    GDB 3.5, Copyright (C) 1989 Free Software Foundation, Inc.
    There is ABSOLUTELY NO WARRANTY for GDB; type "info warranty" for details.
    GDB is free software and you are welcome to distribute copies of it
     under certain conditions; type "info copying" to see the conditions.
    Reading symbol data from /user/karney/codes/bounce/test...done.
    Type "help" for a list of commands.
    (gdb) break 1
    Reading in symbols for /user/karney/codes/bounce/...done.
    No line 1 in file "/user/karney/codes/bounce/".
    (gdb) break 2
    No line 2 in file "/user/karney/codes/bounce/".
    (gdb) break 3
    No line 3 in file "/user/karney/codes/bounce/".
    (gdb) break 4
    No line 4 in file "/user/karney/codes/bounce/".
    (gdb) break 5
    No line 5 in file "/user/karney/codes/bounce/".
    (gdb) symbol-file test
    Load new symbol table from "test"? (y or n) y
    Reading symbol data from /user/karney/codes/bounce/test...done.
    (gdb) break 5
    Reading in symbols for /user/karney/codes/bounce/...done.
    No line 5 in file "/user/karney/codes/bounce/".

   Charles Karney
   Plasma Physics Laboratory	  E-mail:  Karney@Princeton.EDU
   Princeton University		  Phone:   +1 609 243 2607
   Princeton, NJ 08543-0451	  FAX:	   +1 609 243 2160
Technical Details
Message-ID: <9004131838.AA00959@SS01.PPPL.GOV>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!CCC.NERSC.GOV!karney%SS01.PPPL.GOV

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,21d6653241080022,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 1990-04-14 22:10:32 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!CCC.NERSC.GOV!karney%SS01.PPPL.GOV
From: karney%SS01.PPPL.GOV@CCC.NERSC.GOV (Charles Karney)
Newsgroups: gnu.gdb.bug
Subject: Can't debug fortran programs with gdb 3.5
Message-ID: <9004131838.AA00959@SS01.PPPL.GOV>
Date: 1 Sep 94 05:19:49 GMT
Sender: usenet_news@tut.cis.ohio-state.edu
Reply-To: Karney@princeton.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 41
Posted: Thu Sep  1 06:19:49 1994