<?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 Getting Debug Information from a binary in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-debug-information-from-a-binary/m-p/4603909#M679816</link>
    <description>In our code we extract the debug information from  the binaries( .so files) that are built using debug mode and store this information in a separate file. This is required because we strip all debug information  from the binaries  and  then ship them to the customer along with the extraction debug information files . &lt;BR /&gt;&lt;BR /&gt;Incase any failure occurrs ,our application will read the debug information from the stored/extracted  file and give proper trace information to the user ( with source , line number where error occured etc debug information).&lt;BR /&gt;&lt;BR /&gt; We are working on HP Itanium and we have code in Solaris and Linux which does the extraction of the debug information. But Solaris and Linux supports ELF STAB format while HP Itanium supports DWARF2 format. Basically we need to extract informations like function name  , src file names . source code of functions/sybols , size of function, start offset in exe, 1st function in source file, last function in src file, etc(the information in STAB in Solaris) using the DWARF2 format.&lt;BR /&gt;&lt;BR /&gt;In short this is more or less similar to a debugger code .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Is there any open source code or any API which we can re-use to attain this in HP Itanium ( DWARF2 reader )? &lt;BR /&gt;</description>
    <pubDate>Fri, 19 Mar 2010 11:45:42 GMT</pubDate>
    <dc:creator>Suchitra Venugopal</dc:creator>
    <dc:date>2010-03-19T11:45:42Z</dc:date>
    <item>
      <title>Getting Debug Information from a binary</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-debug-information-from-a-binary/m-p/4603909#M679816</link>
      <description>In our code we extract the debug information from  the binaries( .so files) that are built using debug mode and store this information in a separate file. This is required because we strip all debug information  from the binaries  and  then ship them to the customer along with the extraction debug information files . &lt;BR /&gt;&lt;BR /&gt;Incase any failure occurrs ,our application will read the debug information from the stored/extracted  file and give proper trace information to the user ( with source , line number where error occured etc debug information).&lt;BR /&gt;&lt;BR /&gt; We are working on HP Itanium and we have code in Solaris and Linux which does the extraction of the debug information. But Solaris and Linux supports ELF STAB format while HP Itanium supports DWARF2 format. Basically we need to extract informations like function name  , src file names . source code of functions/sybols , size of function, start offset in exe, 1st function in source file, last function in src file, etc(the information in STAB in Solaris) using the DWARF2 format.&lt;BR /&gt;&lt;BR /&gt;In short this is more or less similar to a debugger code .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Is there any open source code or any API which we can re-use to attain this in HP Itanium ( DWARF2 reader )? &lt;BR /&gt;</description>
      <pubDate>Fri, 19 Mar 2010 11:45:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-debug-information-from-a-binary/m-p/4603909#M679816</guid>
      <dc:creator>Suchitra Venugopal</dc:creator>
      <dc:date>2010-03-19T11:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Debug Information from a binary</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-debug-information-from-a-binary/m-p/4603910#M679817</link>
      <description>By default there is no debug info in load modules, +objdebug, it is left in the object files.&lt;BR /&gt;You would have to use +noobjdebug.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;we need to extract info like function name, src filenames.  size of function, start offset in exe,&lt;BR /&gt;&lt;BR /&gt;This info is already in the minimal line table and you don't need -g to include it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 20 Mar 2010 08:40:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-debug-information-from-a-binary/m-p/4603910#M679817</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-03-20T08:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Debug Information from a binary</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-debug-information-from-a-binary/m-p/4603911#M679818</link>
      <description>You could look into open source HP-WDB debugger.&lt;BR /&gt;It reads DWARF2 debugging information from binary.&lt;BR /&gt;You can download WDB and its source files from &lt;A href="http://www.hp.com/go/wdb" target="_blank"&gt;www.hp.com/go/wdb&lt;/A&gt;&lt;BR /&gt;The code that does this stuff is in file dwarf2read.c.&lt;BR /&gt;Hope this helps you.</description>
      <pubDate>Mon, 22 Mar 2010 08:16:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-debug-information-from-a-binary/m-p/4603911#M679818</guid>
      <dc:creator>ajay.paragi</dc:creator>
      <dc:date>2010-03-22T08:16:12Z</dc:date>
    </item>
  </channel>
</rss>

