<?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: debug error No symbol  in current context when compiling 64bit in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/debug-error-no-symbol-in-current-context-when-compiling-64bit/m-p/5186436#M679901</link>
    <description>&lt;!--!*#--&gt;&amp;gt; cc -D_ANSI_C_PROTOS_ -U__HP_CURSES &lt;BR /&gt;&amp;gt; -D_XOPEN_SOURCE_EXTENDED -Agcc +w -g&lt;BR /&gt;Since -Agcc is used cc should behave like GCC.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; buffer has not been used-therefore the error&lt;BR /&gt;But GCC's behaviiour is to emit debugging information for all types declared in a compilation unit, regardless of whether or not they are actually used in that compilation unit.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; compiler version: .... HP C/aC++ for Integrity Servers B3910B A.06.15 ....&lt;BR /&gt;This feature is available in PA cc (though not by default. It needs HPC_DEBUG_COMPAT).&lt;BR /&gt;$export HPC_DEBUG_COMPAT=1&lt;BR /&gt;$cc -g unused_char_arr_debug.c&lt;BR /&gt;$gdb a.out&lt;BR /&gt;....&lt;BR /&gt;(gdb) ptype buffer&lt;BR /&gt;type = char [10]&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/5991-4869/ch01s07.html#bgbghgib" target="_blank"&gt;http://www.docs.hp.com/en/5991-4869/ch01s07.html#bgbghgib&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HPC_DEBUG_COMPAT Environment Variable: HP C does not emit debug information for unused objects (structures, unions, and others) anymore with the -g option. For getting the older behavior (emitting debug information for all objects, irrespective of whether they are used in the program or not), the environment variable HPC_DEBUG_COMPAT can be set in the environment along with the -g option in the compilation command line. It suffices to define this environment variable to have an empty string; it does not need to be set to any particular value.</description>
    <pubDate>Fri, 10 Jul 2009 02:48:08 GMT</pubDate>
    <dc:creator>Kannan M Jeganathan</dc:creator>
    <dc:date>2009-07-10T02:48:08Z</dc:date>
    <item>
      <title>debug error No symbol  in current context when compiling 64bit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/debug-error-no-symbol-in-current-context-when-compiling-64bit/m-p/5186433#M679898</link>
      <description>I have following program (excerpt):&lt;BR /&gt;main(int argc, char *argv[])&lt;BR /&gt;{   char buffer [10+EN];&lt;BR /&gt;...&lt;BR /&gt;when debugging using /opt/langtools/bin/vdb -d . -d /users/progs/fors_neu/share/lib -d /users/progs/fors_neu/share/src -tty=/dev/$ttydev -xdb -tui obj/myprog&lt;BR /&gt;following error happens:&lt;BR /&gt;(wdb) p buffer&lt;BR /&gt;No symbol "buffer" in current context.&lt;BR /&gt;------------&lt;BR /&gt;compile command: (excerpt)&lt;BR /&gt;cc -D_ANSI_C_PROTOS_ -U__HP_CURSES -D_XOPEN_SOURCE_EXTENDED &lt;BR /&gt;-Agcc +w &lt;BR /&gt;-g &lt;BR /&gt;-L/usr/local/lib/hpux64 +DD64 -Wl,-z -Wl,+b &lt;BR /&gt;-I/usr/local/include -lpgport -lxnet -lz -lreadline -lm &lt;BR /&gt;-o obj/myprog myprog.c  -lcurses&lt;BR /&gt;&lt;BR /&gt;compiler version:&lt;BR /&gt;/opt/aCC/bin/cc: HP C/aC++ for Integrity Servers B3910B A.06.15 [May 16 2007]&lt;BR /&gt;debugger version:&lt;BR /&gt;HP VDB 2.0 is based on Vim 5.7&lt;BR /&gt;HP gdb 5.7 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x.&lt;BR /&gt;Question: What causes the problem for the missing symbol???</description>
      <pubDate>Thu, 09 Jul 2009 11:22:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/debug-error-no-symbol-in-current-context-when-compiling-64bit/m-p/5186433#M679898</guid>
      <dc:creator>kwagner</dc:creator>
      <dc:date>2009-07-09T11:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: debug error No symbol  in current context when compiling 64bit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/debug-error-no-symbol-in-current-context-when-compiling-64bit/m-p/5186434#M679899</link>
      <description>buffer has not been used-therefore the error</description>
      <pubDate>Thu, 09 Jul 2009 12:57:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/debug-error-no-symbol-in-current-context-when-compiling-64bit/m-p/5186434#M679899</guid>
      <dc:creator>kwagner</dc:creator>
      <dc:date>2009-07-09T12:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: debug error No symbol  in current context when compiling 64bit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/debug-error-no-symbol-in-current-context-when-compiling-64bit/m-p/5186435#M679900</link>
      <description>-----------------</description>
      <pubDate>Thu, 09 Jul 2009 12:58:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/debug-error-no-symbol-in-current-context-when-compiling-64bit/m-p/5186435#M679900</guid>
      <dc:creator>kwagner</dc:creator>
      <dc:date>2009-07-09T12:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: debug error No symbol  in current context when compiling 64bit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/debug-error-no-symbol-in-current-context-when-compiling-64bit/m-p/5186436#M679901</link>
      <description>&lt;!--!*#--&gt;&amp;gt; cc -D_ANSI_C_PROTOS_ -U__HP_CURSES &lt;BR /&gt;&amp;gt; -D_XOPEN_SOURCE_EXTENDED -Agcc +w -g&lt;BR /&gt;Since -Agcc is used cc should behave like GCC.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; buffer has not been used-therefore the error&lt;BR /&gt;But GCC's behaviiour is to emit debugging information for all types declared in a compilation unit, regardless of whether or not they are actually used in that compilation unit.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; compiler version: .... HP C/aC++ for Integrity Servers B3910B A.06.15 ....&lt;BR /&gt;This feature is available in PA cc (though not by default. It needs HPC_DEBUG_COMPAT).&lt;BR /&gt;$export HPC_DEBUG_COMPAT=1&lt;BR /&gt;$cc -g unused_char_arr_debug.c&lt;BR /&gt;$gdb a.out&lt;BR /&gt;....&lt;BR /&gt;(gdb) ptype buffer&lt;BR /&gt;type = char [10]&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/5991-4869/ch01s07.html#bgbghgib" target="_blank"&gt;http://www.docs.hp.com/en/5991-4869/ch01s07.html#bgbghgib&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HPC_DEBUG_COMPAT Environment Variable: HP C does not emit debug information for unused objects (structures, unions, and others) anymore with the -g option. For getting the older behavior (emitting debug information for all objects, irrespective of whether they are used in the program or not), the environment variable HPC_DEBUG_COMPAT can be set in the environment along with the -g option in the compilation command line. It suffices to define this environment variable to have an empty string; it does not need to be set to any particular value.</description>
      <pubDate>Fri, 10 Jul 2009 02:48:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/debug-error-no-symbol-in-current-context-when-compiling-64bit/m-p/5186436#M679901</guid>
      <dc:creator>Kannan M Jeganathan</dc:creator>
      <dc:date>2009-07-10T02:48:08Z</dc:date>
    </item>
  </channel>
</rss>

