User forums > Help
Debugging fortran
mandrav:
--- Quote ---
--- Code: ---At C:/Projects/Tiny/fello/tiny.f:4
--- End code ---
--- End quote ---
This line in the debugger's log, shows that the breakpoint was actually seen by C::B (this is a C::B message). So, if there is no marker for the active line, it has to do with the editor. Either the debugger failed to access the cbEditor* holding the file or the editor's markers are not setup correctly.
Morten,
I don't know fortran neither I have it installed. So I 'm gonna need your help on this.
The problem must be inside DebuggerGDB::SyncEditor() (debuggergdb.cpp). Can you put a breakpoint in there and see what's going on when the breakpoint hits?
Hint of the day: did you know that you can examine previous frames (caller functions) by switching to them (right click on the backtrace and choose "switch")?
MortenMacFly:
--- Quote from: mandrav on May 10, 2006, 09:09:35 am ---So I 'm gonna need your help on this.
--- End quote ---
...got it: The problem is indeed inside DebuggerGDB::SyncEditor. The issue lies in the following lines of code:
--- Code: --- FileType ft = FileTypeOf(filename);
if (ft == ftOther)
return; // don't try to open unknown files
--- End code ---
Since for a fortran (*.f) file type the "if" statement is true, DebuggerGDB::SyncEditor just returns and nothing happens.
I hope you have an idea what to do. I'm not sure whether it makes sense just to remove that "if" statement? ...or should we add another file type "ftFortran"?
With regards, Morten.
MortenMacFly:
--- Quote from: MortenMacFly on May 10, 2006, 09:54:33 am ---should we add another file type "ftFortran"?
--- End quote ---
...forget about that. I think just adding another FileFilter and modifying FileTypeOf() to include e.g. a new FileFilters::F_EXT should work I guess... Should I give it a try and propose a patch if that works?
With regards, Morten.
mandrav:
--- Quote ---should we add another file type "ftFortran"?
--- End quote ---
This sounds better. It will also solve the "manually check compile/link" when adding fortran files to the project.
I 'm on it...
mandrav:
Can you try this patch and see if it solves the problem?
[attachment deleted by admin]
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version