|
From: 孔涛 <ka...@ye...> - 2014-08-23 11:55:08
|
Sorry! The compiler and gdb are the newest default ones in Ubuntu, cygwin, and MinGW In mingw32: gfortran 4.8.1 and gdb 7.6.1. in cygwin64:gfortran 4.8.3 and gdb 7.8. Both of the above are on Windows 8.1 64-bit platform. I used the method you suggest, i.e. add -g3 instead of -g, but get the same result. In Cygwin, get: "Unhandled dwarf expression opcode 0x97" in MinGW, get: " $2 = (0)" in both case, whatis command cat get the type is "real(kind=8)" But on my server, centos 6.3 with gcc 4.7.0 and gdb 7.2. It works well, it can show the allocatable array's contents. How to show them in cygwin and mingw? -- Have a nice day! Kayneo ---- I saw, I came, I conquered! 在 2014-08-23 03:37:40,"Eli Zaretskii" <el...@gn...> 写道: >> Date: Sat, 23 Aug 2014 10:32:14 +0800 (CST) >> From: 孔涛 <ka...@ye...> >> >> How to print fortran allocatable array in GDB? > >I suggest to post this question to the GDB list, gd...@so.... >I see nothing MinGW-specific in your question. > >One general comment: > >> I use 'gfortran -g arr.f90 ' > >I suggest to always use -g3, to get the best debug info. Some GDB >features are not available without -g3. > >Also, when you post to the GDB list, please mention the version of >your gfortran compiler and the version of GDB you are using. This >might be important to answer your questions quickly and accurately. > > > >------------------------------------------------------------------------------ >Slashdot TV. >Video for Nerds. Stuff that matters. >http://tv.slashdot.org/ >_______________________________________________ >MinGW-users mailing list >Min...@li... > >This list observes the Etiquette found at >http://www.mingw.org/Mailing_Lists. >We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. > >_______________________________________________ >You may change your MinGW Account Options or unsubscribe at: >https://lists.sourceforge.net/lists/listinfo/mingw-users >Also: mailto:min...@li...?subject=unsubscribe |