GDB fails on simple linked list data type [message #1029666] |
Sat, 30 March 2013 01:17 |
|
Hi,
I am using CDT for FORTRAN development and so far it works absolutely fine. Nevertheless, these days I came across some pretty bad behavior regarding CDT/Phortran and GDB. The following little example code makes GDB crash:
PROGRAM GDB_Fail
IMPLICIT NONE
TYPE :: Test_Node
TYPE(Test_Node), POINTER :: next => null()
INTEGER data
END TYPE
TYPE(Test_Node) :: node_test
node_test%data = 4 ! Set Breakpoint here ...
END PROGRAM GDB_Fail
Executing the code in debug (-g3 or -g) the debugger stops at the place mentioned in the above code. I have the Variables View opened and want to inspect my linked list. GDB instantly starts bailing out once stopped complaining as such :
Reading symbols from C:\Dev\Eclipse-WS\Fortran\GDB_Fail\Debug\GDB_Fail.exe...done.
.gdbinit: No such file or directory.
[New Thread 1844.0xfd0]
PTR TO -> ( Type test_node
PTR TO -> ( Type test_node
PTR TO -> ( Type test_node
PTR TO -> ( Type test_node
PTR TO -> ( Type test_node
PTR TO -> ( Type test_node
PTR TO -> ( Type test_node
...
I am using the JUNO SR2 Release for Parallel Development. Besides that I am running on 32bit as well as 64 bit Windows Vista, Windows 7, Windows 8 Systems. For compilation and debugging I am using gfortran(4.7.2) and gdb(7.5) of MinGW.
Does anyone have the same issues? Does anyone know how to get around these problems?
Cheers
Phil
[Updated on: Sat, 30 March 2013 01:20] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03193 seconds