<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to show derived type array pointer content with idb ? in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-show-derived-type-array-pointer-content-with-idb/m-p/762188#M17675</link>
    <description>I have the same problem as desribed above. The suggested solution does not solve the problem as I have installed the latest compiler and debugger available. &lt;BR /&gt;&lt;BR /&gt;To illustrate I have made a small testcode (16 lines). To reproduce, &lt;BR /&gt;compile with options -g -debug extended and set a breakpoint at the end of the code. Run and issue the command:&lt;BR /&gt;p AbsDataType&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Then the following error should appear:&lt;BR /&gt;  anarray = type dwarf2_array_descriptor &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This problem must be resolved in order to make idb useful for developers.&lt;BR /&gt;&lt;BR /&gt;Leif Rune Hellevik&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------8&amp;lt;---------------------------------&lt;BR /&gt;PROGRAM test&lt;BR /&gt;  IMPLICIT NONE&lt;BR /&gt;&lt;BR /&gt;  TYPE TAbsDataType&lt;BR /&gt;     REAL, ALLOCATABLE :: AnArray (:)&lt;BR /&gt;  END TYPE TAbsDataType&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  TYPE(TAbsDataType) :: AbsDataType&lt;BR /&gt;&lt;BR /&gt;  ALLOCATE(AbsDataType%AnArray(2))&lt;BR /&gt;  &lt;BR /&gt;  AbsDataType%AnArray(1) = 1.0&lt;BR /&gt;  AbsDataType%AnArray(1) = 2.0&lt;BR /&gt;&lt;BR /&gt;END&lt;BR /&gt;------------------------8&amp;lt;----------------------------</description>
    <pubDate>Wed, 15 Feb 2006 23:10:19 GMT</pubDate>
    <dc:creator>leif_r_hellevik</dc:creator>
    <dc:date>2006-02-15T23:10:19Z</dc:date>
    <item>
      <title>How to show derived type array pointer content with idb ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-show-derived-type-array-pointer-content-with-idb/m-p/762185#M17672</link>
      <description>&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;I'm trying to print the contents of derived type array pointerin the idb debugger:&lt;/DIV&gt;&lt;BR /&gt;&lt;PRE&gt;Linux Application Debugger for 32-bit applications, Version 9.0-12, Build 20050729&lt;BR /&gt;...&lt;BR /&gt;stopped at [subroutine `MOD1`sub1():38:3 0x0804a168]&lt;BR /&gt;     38   write(*,*) 'my_array',s2%int&lt;BR /&gt;(idb) print s1%cdata&lt;BR /&gt;type dwarf2_array_descriptor&lt;BR /&gt;(idb) whatis s1%cdata&lt;BR /&gt;character*1 fstring::cdata(:)&lt;BR /&gt;(idb) whatis s2%int&lt;BR /&gt;integer*4 my_array::int(:)&lt;BR /&gt;(idb) print s2%int&lt;BR /&gt;type dwarf2_array_descriptor&lt;BR /&gt;I only get this 'type dwarf2_array_descriptor' ???&lt;BR /&gt;How can I print the real content of the arrays ?&lt;BR /&gt; &lt;BR /&gt;I compiled with ifort 9.0.27 with options:&lt;BR /&gt;ifort -g -debug extended mod1.f90 pointer.f90&lt;BR /&gt; &lt;BR /&gt;source of mod1.f90 is&lt;BR /&gt;module mod1&lt;BR /&gt;type fstring&lt;BR /&gt;  character (len=1), dimension(:), pointer :: cdata =&amp;gt; null()&lt;BR /&gt;end type fstring&lt;BR /&gt;type my_array&lt;BR /&gt;  integer, dimension(, pointer :: int&lt;BR /&gt;end type my_array&lt;BR /&gt;contains&lt;BR /&gt;subroutine  sub1&lt;BR /&gt;type(fstring) :: s1&lt;BR /&gt;type(my_array)  :: s2&lt;BR /&gt;integer :: i&lt;BR /&gt;  allocate(s1%cdata(30))&lt;BR /&gt;  allocate(s2%int(40))&lt;BR /&gt;  s1%cdata(1) = 'a'&lt;BR /&gt;  s1%cdata(2) = 'q'&lt;BR /&gt;  s1%cdata(3) = 'w'&lt;BR /&gt;  s1%cdata(4) = 'e'&lt;BR /&gt;  s1%cdata(5) = 'r'&lt;BR /&gt;  s1%cdata(6) = 't'&lt;BR /&gt;  s1%cdata(7) = 'z'&lt;BR /&gt;  s1%cdata(8) = 'u'&lt;BR /&gt;  s1%cdata(9) = 'i'&lt;BR /&gt;  s1%cdata(10) = 'o'&lt;BR /&gt;  do i = 1, 40&lt;BR /&gt;    s2%int(i) = i&lt;BR /&gt;  end do&lt;BR /&gt;  write(*,*) 'fstring',s1%cdata&lt;BR /&gt;  write(*,*) 'my_array',s2%int&lt;BR /&gt;  deallocate(s1%cdata)&lt;BR /&gt;  deallocate(s2%int)&lt;BR /&gt;  return&lt;BR /&gt;end subroutine sub1&lt;BR /&gt;end module mod1&lt;/PRE&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;This is just a test module. In the real application I get also only&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;type dwarf2_array_descriptor. But I need to know the contents.&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;Any help is appreciated.&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;Hans&lt;/DIV&gt;&lt;P&gt;Message Edited by sblionel on &lt;SPAN class="date_text"&gt;10-05-2005&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;02:32 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2005 20:46:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-show-derived-type-array-pointer-content-with-idb/m-p/762185#M17672</guid>
      <dc:creator>hanswb</dc:creator>
      <dc:date>2005-10-05T20:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to show derived type array pointer content with idb ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-show-derived-type-array-pointer-content-with-idb/m-p/762186#M17673</link>
      <description>I too would really like to know how to do this.....&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;Jeremy</description>
      <pubDate>Mon, 23 Jan 2006 20:43:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-show-derived-type-array-pointer-content-with-idb/m-p/762186#M17673</guid>
      <dc:creator>jft27</dc:creator>
      <dc:date>2006-01-23T20:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to show derived type array pointer content with idb ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-show-derived-type-array-pointer-content-with-idb/m-p/762187#M17674</link>
      <description>Try a more recent version of the compiler and debugger.</description>
      <pubDate>Mon, 23 Jan 2006 22:43:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-show-derived-type-array-pointer-content-with-idb/m-p/762187#M17674</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2006-01-23T22:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to show derived type array pointer content with idb ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-show-derived-type-array-pointer-content-with-idb/m-p/762188#M17675</link>
      <description>I have the same problem as desribed above. The suggested solution does not solve the problem as I have installed the latest compiler and debugger available. &lt;BR /&gt;&lt;BR /&gt;To illustrate I have made a small testcode (16 lines). To reproduce, &lt;BR /&gt;compile with options -g -debug extended and set a breakpoint at the end of the code. Run and issue the command:&lt;BR /&gt;p AbsDataType&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Then the following error should appear:&lt;BR /&gt;  anarray = type dwarf2_array_descriptor &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This problem must be resolved in order to make idb useful for developers.&lt;BR /&gt;&lt;BR /&gt;Leif Rune Hellevik&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------8&amp;lt;---------------------------------&lt;BR /&gt;PROGRAM test&lt;BR /&gt;  IMPLICIT NONE&lt;BR /&gt;&lt;BR /&gt;  TYPE TAbsDataType&lt;BR /&gt;     REAL, ALLOCATABLE :: AnArray (:)&lt;BR /&gt;  END TYPE TAbsDataType&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  TYPE(TAbsDataType) :: AbsDataType&lt;BR /&gt;&lt;BR /&gt;  ALLOCATE(AbsDataType%AnArray(2))&lt;BR /&gt;  &lt;BR /&gt;  AbsDataType%AnArray(1) = 1.0&lt;BR /&gt;  AbsDataType%AnArray(1) = 2.0&lt;BR /&gt;&lt;BR /&gt;END&lt;BR /&gt;------------------------8&amp;lt;----------------------------</description>
      <pubDate>Wed, 15 Feb 2006 23:10:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-show-derived-type-array-pointer-content-with-idb/m-p/762188#M17675</guid>
      <dc:creator>leif_r_hellevik</dc:creator>
      <dc:date>2006-02-15T23:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to show derived type array pointer content with idb ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-show-derived-type-array-pointer-content-with-idb/m-p/762189#M17676</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I reported the issue to Premier Support. They told methey have fixed it.&lt;/P&gt;
&lt;P&gt;Hopefully the fix is included in the next release.&lt;/P&gt;
&lt;P&gt;Hans&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Feb 2006 23:31:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-show-derived-type-array-pointer-content-with-idb/m-p/762189#M17676</guid>
      <dc:creator>hanswb</dc:creator>
      <dc:date>2006-02-15T23:31:26Z</dc:date>
    </item>
  </channel>
</rss>

