Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] Watching inside an array declared with allocatable attribute

Apparently is a bug of 7.7 GDB version, I fixed it by installing the last version of GDB (7.10) and now it works perfectly

Regards

Nicolás

2015-11-10 9:56 GMT-03:00 Daniel Harenberg <dan.harenberg@xxxxxxxxx>:
The Intel compiler used to be free for Linux (private use), but that is not the case anymore.


On 11/10/2015 01:46 PM, Fernando V. Molina wrote:

Hi Nicolás,

I remember reading some time ago (but could not find the message) that these issues are (were) due to the way gfortran generates debug info, not to the debugger. A program compiled with gfortran had trouble inspecting module variables with either debugger, gdb and idb; however, the same program compiled with ifort (Intel Fortran) could be debugged correctly with both debuggers. As of today, I am using photran scarcely so I cannot tell if this is the case now. No idea what happens with g95, either. If you work in linux, the intel Fortan compiler is free.

Hope that helps,

Fernando

 

El 2015-11-10 05:41, Daniel Harenberg escribió:

I don't think there is an open source version.

I found my correspondence on this list on the same topic, dating from 2010(!), unfortunately without much more insight, see also the few other answers there:
https://dev.eclipse.org/mhonarc/lists/photran/msg01491.html

The issue has recently (2014) also been raised on stackoverflow, without any good answers:
https://stackoverflow.com/questions/23659594/typecast-in-eclipse-for-allocatable-arrays-in-fortran
But there is a link discussing a workaround. I am not a programmer at all, but it seems to me that the issue is related to the debugger, not to Photran. In particular, if you follow the link in the stackoverflow question, some ppl seem to report that it works with newer versions of gdb. Maybe you try to install the most recent GDB?

On Eclipse Bugzilla no bugs related to Photran and allocatable arrays have been filed and I think it is too early to do so.


On 11/09/2015 05:26 PM, Nicolás Biocca wrote:
Thanks for the tip Daniel, but is it impossible with gdb no? because I suppose that gdb-ia is not an open source, at least is it possible get a free version?  

2015-11-06 12:38 GMT-03:00 Daniel Harenberg <dan.harenberg@xxxxxxxxx>:
I seem to remember to have had this problem. Maybe I solved it by setting the debugger to be gdb-ia, which I think comes with the Intel Fortran Compiler. So if you use that compiler, you can try: menu item Run -> Run Configurations... -> Fortran Local Application (on the left) -> 'your Debug' -> in the right-hand part of the window, click Debugger -> in the field GDB debugger, write gdb-ia

Also make sure the array is allocated.


On 05.11.2015 01:51, Nicolás Biocca wrote:
Hi all, I'm starting with Photran and I've a problem with the debug perspective, I can't watch inside an array declared as a allocatable. Someone else had this problem?
Thanks in advance.

Nicolás.

_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/photran

_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/photran


_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/photran


_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/photran


_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/photran


_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/photran


Back to the top