Re: Fortran Debugger help for a newbie using Windows
- From: Tim Prince <tprince@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 25 Jun 2008 16:38:04 +0900
skcllus@xxxxxxxxx wrote:
Hello, I'm currently running FORTRAN 77 code with Force 2.0.8 (an IDE
for the g77 compiler). This compiler allows me to link to the GDB
debugger (Insight). When I try to debug the code, I can see the
assembly line code which is not all that helpful. When I try to open
the source file with the program (I set the language from the command
line to fortran (set language fortran)), the debugger barfs.
The error is as follows:
C:/Documents and Settings/xedmcase/My Documents/penslabexp.f:1: Error
in sourced command file:
Undefined command:
"CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC".
Try "help".
while executing
"gdb_cmd "source $file_name""
(procedure "source_file" line 4)
invoked from within
"source_file"
(menu invoke)errorCode is NONE
This is the first line of the code and as you guys know C is just a
comment. Does anyone know how I can get gbm to recognize that this
file is fortran, and not be confused by the Cs?
Thanks
If you built everything with -g option set, the source view should come up automatically when you step into one of your subroutines, and it should automatically recognize the Fortran code. However, g77 has been off support long enough that it will take a lot of luck on recent Windows. versions. Current Fortran compilers support all f77 plus nearly all extensions which could be used sanely in g77.
.
- References:
- Fortran Debugger help for a newbie using Windows
- From: skcllus
- Fortran Debugger help for a newbie using Windows
- Prev by Date: Re: Copying files
- Next by Date: Re: save statement in a module
- Previous by thread: Fortran Debugger help for a newbie using Windows
- Next by thread: Re: Fortran Debugger help for a newbie using Windows
- Index(es):
Relevant Pages
|
|