Debugging fortran code in Eclipse with Photran and GDB debugger: missing symbols

Posted by tvandenbrande on Stack Overflow See other posts from Stack Overflow or by tvandenbrande
Published on 2012-10-03T15:14:22Z Indexed on 2012/10/20 23:01 UTC
Read the original article Hit count: 316

Filed under:
|
|
|
|

I have a program, written in fortran90, previously successfully compiled on a compaq compiler and working, that I'm now trying to compile with gfortran. I can compile the code to an .exe and run it. It works fine until a certain point in the routine and then an error is thrown.

My current configuration:

  • Windows 7
  • Eclipse Juno with CDT
  • Photran
  • Cygwin installation with gfortran compiler and GDB debugger (gdb.exe)
  • Configurations for the debugger:
    • GDB command set: Standard (Windows)
    • Protocol: mi
    • Shared libraries: don't load shared library symbols automatically (when activating this, no changes are noted).

When running the debug command I get the following output:

.gdbinit: No such file or directory.
Reading symbols from /cygdrive/c/Users/thys/Documents/doctoraat/12_in   progress/Hamfem/Debug/Hamfem.exe...done.
auto-solib-add on
Undefined command: "auto-solib-add".  Try "help".
Warning: C:/Users/thys/Documents/doctoraat/12_in progress/Hamfem/Hamfem/in: No such     file or directory.
[New Thread 5816.0x1914]
[New Thread 5816.0x654]

Basicly that leaves me with 2 questions:

  1. Where can I find the .gdbinit file in the cygwin installation?
  2. Are there any other possible errors in my setup, or points to think about?

© Stack Overflow or respective owner

Related posts about eclipse

Related posts about debugging