<?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: idb debugger in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-debugger/m-p/762336#M17823</link>
    <description>If you want bounds checking, it is good to have debug, but you need also the -CB option, or equivalent.</description>
    <pubDate>Thu, 03 Nov 2005 23:12:05 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2005-11-03T23:12:05Z</dc:date>
    <item>
      <title>idb debugger</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-debugger/m-p/762335#M17822</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hi,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;A very simple question:&lt;/DIV&gt;
&lt;DIV&gt;How do I get the debugger to stop at the line where the error occurred.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Example program is:&lt;/DIV&gt;
&lt;DIV&gt;program tmp&lt;BR /&gt;integer arr(5)&lt;/DIV&gt;
&lt;DIV&gt;do i = 1,10&lt;BR /&gt; arr(i) = i&lt;BR /&gt; print *,arr(i)&lt;BR /&gt;enddo&lt;BR /&gt;end&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;In the debugger it should stop at line 4 and tell me that the array is out of bounds.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Compilation:&lt;/DIV&gt;
&lt;DIV&gt;ifort -g -debug extended -debug-parameters all tmp.f90&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Run:&lt;/DIV&gt;
&lt;DIV&gt;idb a.out&lt;/DIV&gt;
&lt;DIV&gt;Linux Application Debugger for Intel EM64T-based applications, Version 9.0-12, Build 20050729&lt;BR /&gt;------------------&lt;BR /&gt;object file name: a.out&lt;BR /&gt;Reading symbolic information from /nrs/home/aha/a.out...done&lt;BR /&gt;(idb) r&lt;BR /&gt; 1&lt;BR /&gt; 2&lt;BR /&gt; 3&lt;BR /&gt; 4&lt;BR /&gt; 5&lt;BR /&gt; 6&lt;BR /&gt; 7&lt;BR /&gt; 8&lt;BR /&gt; 9&lt;BR /&gt; 10&lt;BR /&gt;Process has exited with status 0&lt;BR /&gt;(idb)&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;What do I do wrong?&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Thank you very much,&lt;/DIV&gt;
&lt;DIV&gt;Arnold &lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Nov 2005 22:09:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-debugger/m-p/762335#M17822</guid>
      <dc:creator>harbers_a</dc:creator>
      <dc:date>2005-11-03T22:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: idb debugger</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-debugger/m-p/762336#M17823</link>
      <description>If you want bounds checking, it is good to have debug, but you need also the -CB option, or equivalent.</description>
      <pubDate>Thu, 03 Nov 2005 23:12:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-debugger/m-p/762336#M17823</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2005-11-03T23:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: idb debugger</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-debugger/m-p/762337#M17824</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Compiling with -C option gives:&lt;/P&gt;
&lt;P&gt;Reading symbolic information from /nrs/home/aha/a.out...done&lt;BR /&gt;(idb) r&lt;BR /&gt; 1&lt;BR /&gt; 2&lt;BR /&gt; 3&lt;BR /&gt; 4&lt;BR /&gt; 5&lt;BR /&gt;forrtl: severe (408): fort: (2): Subscript #1 of the array ARR has value 6 which is greater than the upper bound of 5&lt;/P&gt;
&lt;P&gt;Process has exited with status 152&lt;/P&gt;
&lt;P&gt;It is a little bit better, but still the process exits and my expectation was that it would stop at line 5. I want to be able to check the values of certain variables and I can not do that when the process exits.&lt;/P&gt;
&lt;P&gt;I am used to the Tru64 ladebug debugger. Output would be:&lt;/P&gt;
&lt;P&gt;object file name: a.out&lt;BR /&gt;Reading symbolic information ...done&lt;BR /&gt;(ladebug) l&lt;BR /&gt; 4 arr(i) = i&lt;BR /&gt; 5 print *,arr(i)&lt;BR /&gt; 6 enddo&lt;BR /&gt; 7 end&lt;BR /&gt; 8&lt;BR /&gt;(ladebug) r&lt;BR /&gt; 1&lt;BR /&gt; 2&lt;BR /&gt; 3&lt;BR /&gt; 4&lt;BR /&gt; 5&lt;BR /&gt;Thread received signal TRAP&lt;BR /&gt;stopped at [subroutine main$tmp():4 0x120001b3c]&lt;BR /&gt; 4 arr(i) = i&lt;BR /&gt;(ladebug) print i&lt;BR /&gt;6&lt;BR /&gt;(ladebug) print arr(i)&lt;BR /&gt;Bounds error for dimension 1&lt;BR /&gt;Subscript 6 is outside the bounds (1:5)&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;How do I get idb to do the same?&lt;/P&gt;
&lt;P&gt;Arnold&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2005 15:00:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-debugger/m-p/762337#M17824</guid>
      <dc:creator>harbers_a</dc:creator>
      <dc:date>2005-11-04T15:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: idb debugger</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-debugger/m-p/762338#M17825</link>
      <description>&lt;P&gt;Everyone,&lt;/P&gt;
&lt;P&gt;Intel compiler support's response:&lt;BR /&gt;&lt;BR /&gt;"The Fortran run-time intercepts exceptions. It will provide more information if you compile with -traceback. It doesn't yet pass control to IDB before process exit. We've made a proposal for it to do this and waiting to get that approved for 10.0."&lt;/P&gt;
&lt;P&gt;Thought I'd share it with you.&lt;/P&gt;
&lt;P&gt;Just hope that 10.0 is released soon.&lt;/P&gt;
&lt;P&gt;Arnold&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2005 19:32:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-debugger/m-p/762338#M17825</guid>
      <dc:creator>harbers_a</dc:creator>
      <dc:date>2005-11-30T19:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: idb debugger</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-debugger/m-p/762339#M17826</link>
      <description>There is quite a straightforward way to do this.&lt;BR /&gt;Just set a breakpoint in the Intel RTL routine&lt;BR /&gt;which prints the message.&lt;BR /&gt;&lt;BR /&gt;  stop in for_emit_diagnostic&lt;BR /&gt;&lt;BR /&gt;If you have compiled with -CB the debugger will take control&lt;BR /&gt;after detection of the error but before the program is&lt;BR /&gt;terminated, so you may examine your variables.&lt;BR /&gt;&lt;BR /&gt;Keith</description>
      <pubDate>Wed, 30 Nov 2005 23:51:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/idb-debugger/m-p/762339#M17826</guid>
      <dc:creator>Keith_R_</dc:creator>
      <dc:date>2005-11-30T23:51:34Z</dc:date>
    </item>
  </channel>
</rss>

