<?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 HP-UX PA-RISC - Turning a PC value to &amp;lt;source:line&amp;gt; pair string in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-pa-risc-turning-a-pc-value-to-lt-source-line-gt-pair/m-p/5571407#M640376</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wish to add HP-UX PA-RISC support to my LeakTracer code described at&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://vouters.dyndns.org/tima/Linux-OpenVMS-HP-UX-IA64-Displaying_memory_leaks.html"&gt;http://vouters.dyndns.org/tima/Linux-OpenVMS-HP-UX-IA64-Displaying_memory_leaks.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already been extremely lucky to complete the PA-RISC backtrace code for both +DD32 and +DD64 compile-time options thanks to difficult to Google find two documents (&lt;A target="_blank" href="http://ftp.parisc-linux.org/docs/arch/rad_11_0_32.pdf"&gt;http://ftp.parisc-linux.org/docs/arch/rad_11_0_32.pdf&lt;/A&gt; [+DD32] and&amp;nbsp;&lt;A target="_blank" href="http://ftp.parisc-linux.org/docs/arch/unwind.pdf"&gt;http://ftp.parisc-linux.org/docs/arch/unwind.pdf&lt;/A&gt; [+DD64])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As binutils/addr2line does not seem to be working on HP-UX with +DD32 (+DD64 ???), I need to write the PA-RISC equivalent of the HP-UX IA64 trace routine. This purpose of this trace routine is to convert a binary PC value into a &amp;lt;source:line&amp;gt; pair string. This is where the problem arises. The HP-UX PA-RISC system I have access to has strictly no man available on the callable U_xxxxx routines in /usr/lib/libcl.sl or /usr/lib/pa_20/libcl.sl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone from HP mentionned a required HP license. Would someone of you have information upon this license ? Would it bring all the much needed mans ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for +DD32 I am really oriented onto calling U_find_line. As anyone the C function prototype of it with its arguments explanations ? For +DD64, I have strictly no idea upon which U_xxxx routines would match my need. Could someone orient me ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that I do NOT want the U_STACK_TRACE() function as it does not match my need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without me completing this HP-UX PA-RISC work, this means every HP-UX PA-RISC developer will have to use a commercial solution such as Insure++. Of cource a commercial solution is always for fees and closed code. This is totally the contrary of what I propose.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for attention.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;</description>
    <pubDate>Sat, 03 Mar 2012 16:31:24 GMT</pubDate>
    <dc:creator>Ph Vouters</dc:creator>
    <dc:date>2012-03-03T16:31:24Z</dc:date>
    <item>
      <title>HP-UX PA-RISC - Turning a PC value to &lt;source:line&gt; pair string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-pa-risc-turning-a-pc-value-to-lt-source-line-gt-pair/m-p/5571407#M640376</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wish to add HP-UX PA-RISC support to my LeakTracer code described at&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://vouters.dyndns.org/tima/Linux-OpenVMS-HP-UX-IA64-Displaying_memory_leaks.html"&gt;http://vouters.dyndns.org/tima/Linux-OpenVMS-HP-UX-IA64-Displaying_memory_leaks.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already been extremely lucky to complete the PA-RISC backtrace code for both +DD32 and +DD64 compile-time options thanks to difficult to Google find two documents (&lt;A target="_blank" href="http://ftp.parisc-linux.org/docs/arch/rad_11_0_32.pdf"&gt;http://ftp.parisc-linux.org/docs/arch/rad_11_0_32.pdf&lt;/A&gt; [+DD32] and&amp;nbsp;&lt;A target="_blank" href="http://ftp.parisc-linux.org/docs/arch/unwind.pdf"&gt;http://ftp.parisc-linux.org/docs/arch/unwind.pdf&lt;/A&gt; [+DD64])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As binutils/addr2line does not seem to be working on HP-UX with +DD32 (+DD64 ???), I need to write the PA-RISC equivalent of the HP-UX IA64 trace routine. This purpose of this trace routine is to convert a binary PC value into a &amp;lt;source:line&amp;gt; pair string. This is where the problem arises. The HP-UX PA-RISC system I have access to has strictly no man available on the callable U_xxxxx routines in /usr/lib/libcl.sl or /usr/lib/pa_20/libcl.sl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone from HP mentionned a required HP license. Would someone of you have information upon this license ? Would it bring all the much needed mans ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for +DD32 I am really oriented onto calling U_find_line. As anyone the C function prototype of it with its arguments explanations ? For +DD64, I have strictly no idea upon which U_xxxx routines would match my need. Could someone orient me ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that I do NOT want the U_STACK_TRACE() function as it does not match my need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without me completing this HP-UX PA-RISC work, this means every HP-UX PA-RISC developer will have to use a commercial solution such as Insure++. Of cource a commercial solution is always for fees and closed code. This is totally the contrary of what I propose.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for attention.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2012 16:31:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-pa-risc-turning-a-pc-value-to-lt-source-line-gt-pair/m-p/5571407#M640376</guid>
      <dc:creator>Ph Vouters</dc:creator>
      <dc:date>2012-03-03T16:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX PA-RISC - Turning a PC value to &lt;source:line&gt; pair string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-pa-risc-turning-a-pc-value-to-lt-source-line-gt-pair/m-p/5571441#M640377</link>
      <description>&lt;P&gt;&amp;gt;This purpose of this trace routine is to convert a binary PC value into a &amp;lt;source:line&amp;gt; pair string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This doesn't exist.&amp;nbsp; Nothing to see here, move along.&amp;nbsp; :-)&lt;/P&gt;&lt;P&gt;The best you can do is load module, function + offset.&amp;nbsp; And that's not easy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The purpose of the Unwind lib on PA is just to support Pascal's try/recover and C++'s exception handling, Ada and U_STACK_TRACE and nothing else.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;no man available on the callable U_xxxxx routines in libcl.sl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They are in the PA-RISC Runtime Architecture documents.&amp;nbsp; Try a google search:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://h21007.www2.hp.com/portal/StaticDownload?attachment_ciid=35ae0c53071b7110VgnVCM100000275d6e10RCRD&amp;amp;ciid=a0f9483d2d2b7110VgnVCM100000275d6e10RCRD"&gt;http://h21007.www2.hp.com/portal/StaticDownload?attachment_ciid=35ae0c53071b7110VgnVCM100000275d6e10RCRD&amp;amp;ciid=a0f9483d2d2b7110VgnVCM100000275d6e10RCRD&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://h21007.www2.hp.com/portal/site/dspp/menuitem.1b39e60a9475acc915b49c108973a801/?chid=6dc55e210a66a010VgnVCM100000275d6e10RCRD#topic_pa_risc_architecture"&gt;http://h21007.www2.hp.com/portal/site/dspp/menuitem.1b39e60a9475acc915b49c108973a801/?chid=6dc55e210a66a010VgnVCM100000275d6e10RCRD#topic_pa_risc_architecture&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801?ciid=5b2d57a02b2b7110VgnVCM100000275d6e10RCRD"&gt;http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801?ciid=5b2d57a02b2b7110VgnVCM100000275d6e10RCRD&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801?ciid=2ddfaa5e702b7110VgnVCM100000275d6e10RCRD"&gt;http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801?ciid=2ddfaa5e702b7110VgnVCM100000275d6e10RCRD&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;Someone from HP mentioned a required HP license.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Who/where?&amp;nbsp; It doesn't exist, so I'm not sure what license?&amp;nbsp; GPL for gdb?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;As for +DD32 I am really oriented onto calling U_find_line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This won't do what you want.&amp;nbsp; It's only for Ada.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;Without me completing this HP-UX PA-RISC work, this means every HP-UX PA-RISC developer will have to use a commercial solution&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is always wdb/gdb which already has heap corruption and leak detection.&lt;/P&gt;&lt;P&gt;And you can always download the gdb sources so you can see how to get your &amp;lt;source:line&amp;gt; tuple.&lt;/P&gt;&lt;P&gt;Or look at the above Runtime Architecture docs to see how the debug info works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Support on Integrity is done through the Minimal Line Table, even without -g.&amp;nbsp; But for some applications, this will double the size of the program file.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Mar 2012 05:58:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-pa-risc-turning-a-pc-value-to-lt-source-line-gt-pair/m-p/5571441#M640377</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-03-04T05:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX PA-RISC - Turning a PC value to &lt;source:line&gt; pair string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-pa-risc-turning-a-pc-value-to-lt-source-line-gt-pair/m-p/5577901#M640378</link>
      <description>&lt;P&gt;Dear Dennis,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could download HP-UX WBD full source code only because I am an AllianceONE member. As all my Web site is source code opened, I do not want to face any possible lawsuit with HP. I made tests with the latest GNU gdb. It happens GNU gdb is unable to correctly parse the symbol table if the executable has been built with the HP-UX CC/aCC compiler..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One question I asked one of the Opensource maintainer whose code is included into GNU gdb has been the following:&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;My concern expressed otherwise : " What did prevent the GNU binutils and GNU gdb communities to incorporate HP-UX chages into their respective source stram ????"&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;His answer has been:&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;Proper submission from HP (with a copyrigh assignment).&lt;/P&gt;&lt;P&gt;AFAIK, but I am no lawyer.&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;So I can't currently carry on with my desire to also offer HP-UX PA-RISC support to my LeakTracer code. And I can't get rid from the trace routine on HP-UX IA64 because of lack of support by binutils/addr2line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Deeply sorry for all these HP's HP-UX PA-RISC customers who thought this could be a good alternative to commercial products.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2012 22:24:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-pa-risc-turning-a-pc-value-to-lt-source-line-gt-pair/m-p/5577901#M640378</guid>
      <dc:creator>Ph Vouters</dc:creator>
      <dc:date>2012-03-08T22:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX PA-RISC - Turning a PC value to &lt;source:line&gt; pair string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-pa-risc-turning-a-pc-value-to-lt-source-line-gt-pair/m-p/5578123#M640379</link>
      <description>&lt;P&gt;&amp;gt;I could download HP-UX WDB full source code only because I am an AllianceONE member.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone can register.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;As all my Web site is source code opened, I do not want to face any possible lawsuit with HP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HP doesn't own the gdb sources, HP donated that code and is required to make that code available under GPL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;GNU gdb is unable to correctly parse the symbol table if the executable has been built with the HP-UX CC/aCC compiler.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most likely.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;Proper submission from HP (with a copyright assignment).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem was it was made too hard to submit the large number of changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;So I can't currently carry on with my desire to also offer HP-UX PA-RISC support to my LeakTracer code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You would have to extract that code from WDB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;And I can't get rid from the trace routine on HP-UX IA64 because of lack of support by binutils/addr2line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could get this code from WDB too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;Deeply sorry for all these HP's HP-UX PA-RISC customers who thought this could be a good alternative to commercial products.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The are probably already happy using the free WDB leak detection? :-)&lt;/P&gt;&lt;P&gt;So I can't currently carry on with my desire to also offer HP-UX PA-RISC support to my LeakTracer code. And I can't get rid from the trace routine on HP-UX IA64 because of lack of support by binutils/addr2line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Deeply sorry for all these HP's HP-UX PA-RISC customers who thought this could be a good alternative to commercial products.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2012 06:15:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-pa-risc-turning-a-pc-value-to-lt-source-line-gt-pair/m-p/5578123#M640379</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-03-09T06:15:17Z</dc:date>
    </item>
  </channel>
</rss>

