LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-06-2001, 07:00 AM   #1
miasmak
LQ Newbie
 
Registered: Aug 2001
Posts: 3

Rep: Reputation: 0
Question fortran debugging question with g77 and gdb


Hello all

I am trying to unravel a brew of ancient Fortran and C code on Linux Mandrake 8.0.

I have managed to compile and run the fortran code and even debug it some in gdb, but I cannot see my fortran source in gdb. I have compiled with -g or -ggdb or-g3 and I can see my C source.

Is this even possible? Should I give up now and stick to grep and a straight jacket or is it worth pursuing.

Indebted in advance

Frustrated Fuzzy Fortran Familiar
 
Old 08-16-2006, 07:03 AM   #2
richardash1981
LQ Newbie
 
Registered: Aug 2006
Posts: 25
Blog Entries: 1

Rep: Reputation: 18
I don't know about with that toolchain, but using g95 and current gdb under gentoo it works fine.

Make sure you have added the -g flag to the fortran compilation as well as the C compilation - adding it to CFLAGS won't achieve that, you will need to set FFLAGS as well.

You might not have fortran support in your GDB if you have an old version of gdb.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fortran compiler gcc-g77 installation problem refp16 Linux - Software 6 11-26-2005 12:49 PM
compile( gcc-g77) fortran with fedora core 3 gambato79 Programming 1 05-06-2005 12:49 PM
G77 Fortran included in Fedora 2 ? aeslin Linux - Software 1 11-08-2004 07:27 AM
printing eqivalenced arrays using gdb, g77, Linux tdr Programming 0 02-09-2004 03:39 AM
Need help defining Fortran 77 input/output streams using g77! Gethyn Programming 1 08-14-2003 12:42 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration