<?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: find compilation flags from a shared library in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/find-compilation-flags-from-a-shared-library/m-p/4725935#M655360</link>
    <description>&amp;gt;.debug_line .debug_actual .debug_procs_abbrev .debug_procs_info &lt;BR /&gt;&lt;BR /&gt;These are also present in the Minimal Line Table.&lt;BR /&gt;The objdebug_* sections indicate the debug info is left in the object files, +objdebug, the default.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;-g [1 1] &lt;BR /&gt;&lt;BR /&gt;One file with -g.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;For frame #2, which is present in the library I am interested in, I am not getting much info&lt;BR /&gt;&lt;BR /&gt;Did you get a message saying it couldn't find the object file?</description>
    <pubDate>Tue, 14 Dec 2010 06:19:50 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2010-12-14T06:19:50Z</dc:date>
    <item>
      <title>find compilation flags from a shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-compilation-flags-from-a-shared-library/m-p/4725932#M655357</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;There are many situations where we are required to find out the compilation flags used while creating a library. I tried using elfdump, but it does not show information regarding this.&lt;BR /&gt;&lt;BR /&gt;Anyone has any idea how to find this out?&lt;BR /&gt;&lt;BR /&gt;Also, how to find out if a shared library contains debugging information or not. Any specific command or trick? One trick I used is to open it in gdb and use the list command and if this shows the file name, the library contains debugging information. Any other trick?</description>
      <pubDate>Tue, 14 Dec 2010 04:37:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-compilation-flags-from-a-shared-library/m-p/4725932#M655357</guid>
      <dc:creator>Manas Ranjan Sahu</dc:creator>
      <dc:date>2010-12-14T04:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: find compilation flags from a shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-compilation-flags-from-a-shared-library/m-p/4725933#M655358</link>
      <description>&amp;gt;I tried using elfdump, but it does not show information regarding this.&lt;BR /&gt;&lt;BR /&gt;Did you use "elfdump -dc"?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;how to find out if a shared library contains debugging information or not.&lt;BR /&gt;&lt;BR /&gt;elfdump -dc or footprints(1) will show it.&lt;BR /&gt;&lt;BR /&gt;Or you can use "elfdump -S -h" and look for the real debug sections:&lt;BR /&gt;.debug_info .debug_macinfo .objdebug_*</description>
      <pubDate>Tue, 14 Dec 2010 05:46:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-compilation-flags-from-a-shared-library/m-p/4725933#M655358</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-12-14T05:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: find compilation flags from a shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-compilation-flags-from-a-shared-library/m-p/4725934#M655359</link>
      <description>Thank you Dennis.&lt;BR /&gt;&lt;BR /&gt;elfdump output is:&lt;BR /&gt;&lt;BR /&gt;elfdump -S -h libmpr_events.so | grep "debug"&lt;BR /&gt;39     PBIT 0000000000000000 000000000095aa68 0005a0a1 .objdebug_type&lt;BR /&gt;40     PBIT 0000000000000000 00000000009b4b09 0010024b .objdebug_file&lt;BR /&gt;41     PBIT 0000000000000000 0000000000ab4d54 00007f71 .objdebug_const&lt;BR /&gt;43     PBIT 0000000000000000 0000000000af5cd0 004fe49f .debug_line&lt;BR /&gt;44     PBIT 0000000000000000 0000000000ff416f 00130dd5 .debug_actual&lt;BR /&gt;45     PBIT 0000000000000000 0000000001124f44 00033630 .debug_procs_abbrev&lt;BR /&gt;46     PBIT 0000000000000000 0000000001158574 001a000b .debug_procs_info&lt;BR /&gt;&lt;BR /&gt;and footprints gives:&lt;BR /&gt;&lt;BR /&gt;footprints libmpr_dd.so | less&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;version                    [A.06.25.01/ANSI C++    1]&lt;BR /&gt;architecture               [ipf64       1]&lt;BR /&gt;-O                         [01          1]&lt;BR /&gt;PBO                        [off         1]&lt;BR /&gt;-g                         [1           1]&lt;BR /&gt;debugopt                   [+O1         1]&lt;BR /&gt;&lt;BR /&gt;+Ointeger_overflow         [moderate    1]&lt;BR /&gt;+Olit                      [all         1]&lt;BR /&gt;-ansi_for_scope            [on          1]&lt;BR /&gt;-fpeval                    [float       1]&lt;BR /&gt;-inline                    [1           1]&lt;BR /&gt;-koenig_lookup             [on          1]&lt;BR /&gt;-link_type                 [dynamic     1]&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Although it seems it is compiled with debug information (-g), still when debugging, it is unable to load any information. See one of the core stack:&lt;BR /&gt;&lt;BR /&gt;(gdb) where&lt;BR /&gt;#0  0xc00000000b890cb0:0 in adj::pe_base::EventBaseData::serialize (&lt;BR /&gt;    No.Identifier_47=0x9fffffff7b0fff40, this=0x9fffffffa9d26aa8, &lt;BR /&gt;    i_pBuffer=0x9fffffffa77000fb "410118298330", i_bufferLength=1365)&lt;BR /&gt;    at /jphome/jp/ccjp/mb_ccjp/bb/gapebase/v75_0_S2P1D/entities/src/EventBase.cpp:163&lt;BR /&gt;#1  0xc00000000b895f60:0 in adj::pe_base::EventBase::serialize (&lt;BR /&gt;    No.Identifier_51=0x9fffffff7b0fff40, this=0x9fffffffa9d26aa0, &lt;BR /&gt;    o_pBuffer=0x9fffffffa77000fb "410118298330", i_bufferLength=1365)&lt;BR /&gt;    at /jphome/jp/ccjp/mb_ccjp/bb/gapebase/v75_0_S2P1D/entities/src/EventBase.cpp:121&lt;BR /&gt;#2  0xc00000001766d500:0 in mapper::eventTypes::GPRSV1::serialize(char*,unsigned long)+0x70 ()&lt;BR /&gt;   from /prdtc5/inf/aimsys/prdtc5/abp_home/custom/spbin/lib/libmpr_events.so&lt;BR /&gt;#3  0xc00000001112d960:0 in adj::rr_utils::RRSession::addEvent (&lt;BR /&gt;    this=0x60000000cce35880, i_pEvent=0x9fffffffa9d26aa0)&lt;BR /&gt;    at /jphome/jp/ccjp/mb_ccjp/bb/gesrrutils/v75_0_S2P1D/session/src/RRSession.cpp:376&lt;BR /&gt;&lt;BR /&gt;For frame #2, which is present in the library I am interested in, I am not getting much information like I get for other frames. I tried using sharedlib and share command inside gdb to load symbols from libmpr_events.so, but to no avail.&lt;BR /&gt;&lt;BR /&gt;Any pointers?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Dec 2010 06:03:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-compilation-flags-from-a-shared-library/m-p/4725934#M655359</guid>
      <dc:creator>Manas Ranjan Sahu</dc:creator>
      <dc:date>2010-12-14T06:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: find compilation flags from a shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-compilation-flags-from-a-shared-library/m-p/4725935#M655360</link>
      <description>&amp;gt;.debug_line .debug_actual .debug_procs_abbrev .debug_procs_info &lt;BR /&gt;&lt;BR /&gt;These are also present in the Minimal Line Table.&lt;BR /&gt;The objdebug_* sections indicate the debug info is left in the object files, +objdebug, the default.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;-g [1 1] &lt;BR /&gt;&lt;BR /&gt;One file with -g.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;For frame #2, which is present in the library I am interested in, I am not getting much info&lt;BR /&gt;&lt;BR /&gt;Did you get a message saying it couldn't find the object file?</description>
      <pubDate>Tue, 14 Dec 2010 06:19:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-compilation-flags-from-a-shared-library/m-p/4725935#M655360</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-12-14T06:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: find compilation flags from a shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-compilation-flags-from-a-shared-library/m-p/4725936#M655361</link>
      <description>Thank you Dennis. It seems the debug information are indeed inside the object files. When I do up command:&lt;BR /&gt;&lt;BR /&gt;(gdb) up&lt;BR /&gt;warning: &lt;BR /&gt;ERROR: Use the "objectdir" command to specify the search&lt;BR /&gt;path for objectfile events1.o.&lt;BR /&gt;If NOT specified will behave as a non -g compiled binary.&lt;BR /&gt;&lt;BR /&gt;I am trying to get all the object files to this machine and try debugging again.&lt;BR /&gt;&lt;BR /&gt;BTW, when I looked at the elfdump as well as footprints output, it seems that we are not getting any information about -DXXX flags. Is there a way to find them as well?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Dec 2010 06:44:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-compilation-flags-from-a-shared-library/m-p/4725936#M655361</guid>
      <dc:creator>Manas Ranjan Sahu</dc:creator>
      <dc:date>2010-12-14T06:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: find compilation flags from a shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-compilation-flags-from-a-shared-library/m-p/4725937#M655362</link>
      <description>&amp;gt;it seems that we are not getting any information about -DXXX flags. Is there a way to find them as well?&lt;BR /&gt;&lt;BR /&gt;No, these are deliberately removed and as being not all that useful in triaging user problems by the Response Center and taking up too much space.</description>
      <pubDate>Tue, 14 Dec 2010 07:10:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-compilation-flags-from-a-shared-library/m-p/4725937#M655362</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-12-14T07:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: find compilation flags from a shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-compilation-flags-from-a-shared-library/m-p/4725938#M655363</link>
      <description>&amp;gt;I am trying to get all the object files to this machine and try debugging again.&lt;BR /&gt;&lt;BR /&gt;If it is too inconvenient to do that, you can compile and/or link with +noobjdebug.&lt;BR /&gt;This will bloat your load modules.</description>
      <pubDate>Tue, 14 Dec 2010 07:13:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-compilation-flags-from-a-shared-library/m-p/4725938#M655363</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-12-14T07:13:53Z</dc:date>
    </item>
  </channel>
</rss>

