Fortran print allocatable array in gdb

前端 未结 3 1413
梦谈多话
梦谈多话 2020-11-29 12:58

I\'m adding some functionality on to an open-source scientific code. I work with a lot of allocatables, but I\'m having some trouble printing them properly. For example, I d

3条回答
  •  感情败类
    2020-11-29 13:11

    Unfortunately GDB trunk comes with no support of allocatable arrays. But the Archer branch includes some support.

    I recently read the following post of Tobias Burnus :

    https://gcc.gnu.org/ml/fortran/2012-09/msg00013.html

    I work with Ubuntu 14.02. I downloaded the most recent OpenSUSE rpm package of gdb and extracted it by a command like

    rpm2cpio myrpmfile.rpm | cpio -idmv
    

    Then I copied the gdb executable program in /usr/local/bin (with sudo cp) and I was happy to see it working correctly !

提交回复
热议问题