<?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: Unwrapping a call stack in Fortran in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/unwrapping-a-call-stack-in-fortran/m-p/5018623#M35238</link>
    <description>&lt;!--!*#--&gt;Yes...Thank you to Karl and Hein.&lt;BR /&gt;I believe that the directed discussion thread contains the desired information.&lt;BR /&gt;&lt;BR /&gt;Much obliged.&lt;BR /&gt;</description>
    <pubDate>Wed, 13 Dec 2006 10:30:09 GMT</pubDate>
    <dc:creator>HDS</dc:creator>
    <dc:date>2006-12-13T10:30:09Z</dc:date>
    <item>
      <title>Unwrapping a call stack in Fortran</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unwrapping-a-call-stack-in-fortran/m-p/5018620#M35235</link>
      <description>&lt;!--!*#--&gt;Hello.&lt;BR /&gt;&lt;BR /&gt;When an image abend occurs, the call stack is unraveled, displaying a trace of the module names that brought us to the point of the abend. I am looking for a Fortran[-77] routine that would do the same without the abend.&lt;BR /&gt;&lt;BR /&gt;For example, &lt;BR /&gt;%SYSTEM-F-ABORT, abort&lt;BR /&gt;%TRACE-F-TRACEBACK, symbolic stack dump follows&lt;BR /&gt;  image    module    routine             line&lt;BR /&gt;JOBTOPMEN  FALEXIT  FALEXIT             1999 JOBTOPMEN  MFSERR  MFSERRM              5336 JOBTOPMEN  DABUSDAY  DABUSDAY            140  JOBTOPMEN  ISBUSDAY  ISBUSDAY             55  JOBTOPMEN  JBFNDJPR  JBFNDJPR           3270  JOBTOPMEN  JBBLDJPR  JBBLDJPR           3437  JOBTOPMEN  JBSETJPR  JBSETJPR           3749  JOBTOPMEN  JOBTOPMEN  JOBTOPMEN         3603 &lt;BR /&gt;&lt;BR /&gt;I believe that I could use a subroutine that executes an internal WRITE with inconsistant variables...as doing so will generate a traceback dump and continue, but that seems a bit 'sloppy'.&lt;BR /&gt;&lt;BR /&gt;I also understand that there are services that may do what I am looking for... &lt;BR /&gt;LIB$GET_INVO_CONTEXT and &lt;BR /&gt;LIB$GET_PREV_INVO_CONTEXT&lt;BR /&gt;but I have not been able to locate any examples on their use, and I believe that they only return the addresses of the routines...not their names.&lt;BR /&gt;&lt;BR /&gt;Any suggestions? Ideas?&lt;BR /&gt;&lt;BR /&gt;Many thanks,&lt;BR /&gt;Howard&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Dec 2006 10:06:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unwrapping-a-call-stack-in-fortran/m-p/5018620#M35235</guid>
      <dc:creator>HDS</dc:creator>
      <dc:date>2006-12-13T10:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unwrapping a call stack in Fortran</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unwrapping-a-call-stack-in-fortran/m-p/5018621#M35236</link>
      <description>Perhaps this thread in comp.os.vms is of some help:&lt;BR /&gt;&lt;A href="http://groups.google.de/group/comp.os.vms/browse_thread/thread/43a39b78e8a42f1d/562562c7dfbbca2f?hl=de#562562c7dfbbca2f" target="_blank"&gt;http://groups.google.de/group/comp.os.vms/browse_thread/thread/43a39b78e8a42f1d/562562c7dfbbca2f?hl=de#562562c7dfbbca2f&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
      <pubDate>Wed, 13 Dec 2006 10:16:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unwrapping-a-call-stack-in-fortran/m-p/5018621#M35236</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2006-12-13T10:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unwrapping a call stack in Fortran</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unwrapping-a-call-stack-in-fortran/m-p/5018622#M35237</link>
      <description>&lt;BR /&gt;There was a recent discussion in comp.os.vms about this very topic under the subject "Who called me?"&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://groups.google.com/group/comp.os.vms/search?group=comp.os.vms&amp;amp;q=LIB%24GET_CURR_INVO_CONTEXT+&amp;amp;qt_g=1" target="_blank"&gt;http://groups.google.com/group/comp.os.vms/search?group=comp.os.vms&amp;amp;q=LIB%24GET_CURR_INVO_CONTEXT+&amp;amp;qt_g=1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Basically you can use the undocumented trace-back routine  tbk$show_traceback and give it an action routine where your code will be called for every line in the current traceback.&lt;BR /&gt;&lt;BR /&gt;Sample (C) code attached.&lt;BR /&gt;Enjoy!&lt;BR /&gt;&lt;BR /&gt;Hein van den Heuvel&lt;BR /&gt;HvdH Performance Consulting&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Dec 2006 10:17:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unwrapping-a-call-stack-in-fortran/m-p/5018622#M35237</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-12-13T10:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unwrapping a call stack in Fortran</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unwrapping-a-call-stack-in-fortran/m-p/5018623#M35238</link>
      <description>&lt;!--!*#--&gt;Yes...Thank you to Karl and Hein.&lt;BR /&gt;I believe that the directed discussion thread contains the desired information.&lt;BR /&gt;&lt;BR /&gt;Much obliged.&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Dec 2006 10:30:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unwrapping-a-call-stack-in-fortran/m-p/5018623#M35238</guid>
      <dc:creator>HDS</dc:creator>
      <dc:date>2006-12-13T10:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unwrapping a call stack in Fortran</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unwrapping-a-call-stack-in-fortran/m-p/5018624#M35239</link>
      <description>Howard,&lt;BR /&gt;&lt;BR /&gt;Welcome to the VMS Forum!&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;Yes...Thank you to Karl and Hein.&lt;BR /&gt;I believe that the directed discussion thread contains the desired information.&lt;BR /&gt;&lt;BR /&gt;Much obliged.&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;For the way to express your thanks, see&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on em.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Wed, 13 Dec 2006 12:15:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unwrapping-a-call-stack-in-fortran/m-p/5018624#M35239</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-12-13T12:15:03Z</dc:date>
    </item>
  </channel>
</rss>

