<?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: Problem with the Itanium debugger in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-the-itanium-debugger/m-p/4525959#M43232</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This is really strange&lt;BR /&gt;&lt;BR /&gt;I removed all the typedefs and added one more structure still there is a problem.&lt;BR /&gt;&lt;BR /&gt;$ type main.c&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;&lt;BR /&gt;struct rec1 {&lt;BR /&gt;    int rec1_field;&lt;BR /&gt;} REC1;&lt;BR /&gt;&lt;BR /&gt;struct rec2 {&lt;BR /&gt;    int rec2_field;&lt;BR /&gt;} REC2;&lt;BR /&gt;&lt;BR /&gt;struct rec3 {&lt;BR /&gt;    int rec3_field;&lt;BR /&gt;} REC3;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;struct {&lt;BR /&gt;        struct rec1 *list;&lt;BR /&gt;} REC1_LIST;&lt;BR /&gt;&lt;BR /&gt;struct {&lt;BR /&gt;        struct rec2 *list;&lt;BR /&gt;} REC2_LIST;&lt;BR /&gt;&lt;BR /&gt;struct {&lt;BR /&gt;        struct rec3 *list;&lt;BR /&gt;} REC3_LIST;&lt;BR /&gt;&lt;BR /&gt;int main(int argc, char *argv[])&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;    REC1.rec1_field = 1;&lt;BR /&gt;&lt;BR /&gt;    REC1_LIST.list = &amp;amp;REC1;&lt;BR /&gt;&lt;BR /&gt;    REC2.rec2_field = 2;&lt;BR /&gt;&lt;BR /&gt;    REC2_LIST.list = &amp;amp;REC2;&lt;BR /&gt;&lt;BR /&gt;    REC3.rec3_field = 3;&lt;BR /&gt;&lt;BR /&gt;    REC3_LIST.list = &amp;amp;REC3;&lt;BR /&gt;&lt;BR /&gt;    return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;DBG&amp;gt; ex *REC1_LIST.list&lt;BR /&gt;*MAIN\REC1_LIST.list&lt;BR /&gt;    rec3_field: 1&lt;BR /&gt;DBG&amp;gt; ex *REC2_LIST.list&lt;BR /&gt;*MAIN\REC2_LIST.list&lt;BR /&gt;    rec3_field: 2&lt;BR /&gt;DBG&amp;gt; ex *REC3_LIST.list&lt;BR /&gt;*MAIN\REC3_LIST.list&lt;BR /&gt;    rec3_field: 3&lt;BR /&gt;DBG&amp;gt;&lt;BR /&gt;&lt;BR /&gt;It shows the correct value, but looks like symbolization is wrong. &lt;BR /&gt;&lt;BR /&gt;I think it is a bug.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Pramod.&lt;/STDIO.H&gt;</description>
    <pubDate>Tue, 03 Nov 2009 04:16:19 GMT</pubDate>
    <dc:creator>Pramod Kumar M</dc:creator>
    <dc:date>2009-11-03T04:16:19Z</dc:date>
    <item>
      <title>Problem with the Itanium debugger</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-the-itanium-debugger/m-p/4525954#M43227</link>
      <description>&lt;!--!*#--&gt;I am having problems with the Itanium vms debugger.  When I examine a pointer in the code below, the debugger assumes the incorrect type.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;&lt;BR /&gt;typedef struct&lt;BR /&gt;{&lt;BR /&gt;    int&lt;BR /&gt;        rec1_field;&lt;BR /&gt;} REC1;&lt;BR /&gt;&lt;BR /&gt;typedef struct&lt;BR /&gt;{&lt;BR /&gt;    int&lt;BR /&gt;        rec2_field;&lt;BR /&gt;} REC2;&lt;BR /&gt;&lt;BR /&gt;typedef struct { REC1 *list; } REC1_LIST;&lt;BR /&gt;typedef struct { REC2 *list; } REC2_LIST;&lt;BR /&gt;&lt;BR /&gt;int main(int argc, char *argv[])&lt;BR /&gt;{&lt;BR /&gt;    REC1_LIST&lt;BR /&gt;        rec1_list;&lt;BR /&gt;    REC1&lt;BR /&gt;        rec1; &lt;BR /&gt;&lt;BR /&gt;    rec1.rec1_field = 1;&lt;BR /&gt;&lt;BR /&gt;    rec1_list.list = &amp;amp;rec1;&lt;BR /&gt;&lt;BR /&gt;    return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;On itanium I get this:&lt;BR /&gt;&lt;BR /&gt;         OpenVMS I64 Debug64 Version X8.3-015&lt;BR /&gt;&lt;BR /&gt;%DEBUG-I-INITIAL, Language: C, Module: BUG_EXAMPLE&lt;BR /&gt;&lt;BR /&gt;%DEBUG-I-NOTATMAIN, Type GO to reach MAIN program&lt;BR /&gt;&lt;BR /&gt;DBG&amp;gt; 1&amp;gt; SET BREAK %Name"BUG_EXAMPLE"\%LINE 1628&lt;BR /&gt;&lt;BR /&gt;DBG&amp;gt; 1&amp;gt; DEACTIVATE BREAK %Name"BUG_EXAMPLE"\%LINE 1624&lt;BR /&gt;&lt;BR /&gt;DBG&amp;gt; go&lt;BR /&gt;&lt;BR /&gt;break at BUG_EXAMPLE\main\%LINE 1628&lt;BR /&gt;&lt;BR /&gt;DBG&amp;gt; ex *rec1_list.list&lt;BR /&gt;&lt;BR /&gt;*BUG_EXAMPLE\main\rec1_list.list&lt;BR /&gt;&lt;BR /&gt;    rec2_field: 1&lt;BR /&gt;&lt;BR /&gt;DBG&amp;gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Notice how it says the contents of rec1_list.list is rec2_field.  It should be rec1_field.&lt;BR /&gt;&lt;BR /&gt;On alpha, it works:&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;         OpenVMS Alpha Debug64 Version V8.3-014&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;%DEBUG-I-INITIAL, Language: C, Module: BUG_EXAMPLE&lt;BR /&gt;&lt;BR /&gt;%DEBUG-I-NOTATMAIN, Type GO to reach MAIN program&lt;BR /&gt;&lt;BR /&gt;DBG&amp;gt; 1&amp;gt; SET BREAK %Name"BUG_EXAMPLE"\%LINE 1628&lt;BR /&gt;&lt;BR /&gt;DBG&amp;gt; 1&amp;gt; DEACTIVATE BREAK %Name"BUG_EXAMPLE"\%LINE 1624&lt;BR /&gt;&lt;BR /&gt;DBG&amp;gt; go&lt;BR /&gt;&lt;BR /&gt;break at BUG_EXAMPLE\main\%LINE 1628&lt;BR /&gt;&lt;BR /&gt;DBG&amp;gt; ex *rec1_list.list&lt;BR /&gt;&lt;BR /&gt;*BUG_EXAMPLE\main\rec1_list.list&lt;BR /&gt;&lt;BR /&gt;    rec1_field: 1&lt;BR /&gt;&lt;BR /&gt;DBG&amp;gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Is this a bug in the itanium debugger?&lt;/STDIO.H&gt;</description>
      <pubDate>Mon, 02 Nov 2009 17:35:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-the-itanium-debugger/m-p/4525954#M43227</guid>
      <dc:creator>Alex Vournas</dc:creator>
      <dc:date>2009-11-02T17:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the Itanium debugger</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-the-itanium-debugger/m-p/4525955#M43228</link>
      <description>I'd try altering the naming of REC1_LIST and rec1_list here to move away from case-sensitive naming.  This on no evidence and no testing on OpenVMS I64.&lt;BR /&gt;&lt;BR /&gt;Please also post your OpenVMS version and your C version and your patch level.</description>
      <pubDate>Mon, 02 Nov 2009 19:01:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-the-itanium-debugger/m-p/4525955#M43228</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-11-02T19:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the Itanium debugger</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-the-itanium-debugger/m-p/4525956#M43229</link>
      <description>I tried renaming the type and variable differently as you suggested; it didn't make a difference.  These are the versions:&lt;BR /&gt;&lt;BR /&gt;OpenVMS V8.3-1H1 &lt;BR /&gt;HP C V7.3-018 on OpenVMS IA64 V8.3-1H1</description>
      <pubDate>Mon, 02 Nov 2009 19:55:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-the-itanium-debugger/m-p/4525956#M43229</guid>
      <dc:creator>Alex Vournas</dc:creator>
      <dc:date>2009-11-02T19:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the Itanium debugger</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-the-itanium-debugger/m-p/4525957#M43230</link>
      <description>Alex,&lt;BR /&gt;  Could be a bug.&lt;BR /&gt;&lt;BR /&gt;  Log a case with HP Customer Support. Send them a minimal reproducer, with exact instructions for demonstrating your symptom (I like to send a self contained command procedure that starts from scratch automates all steps). &lt;BR /&gt;&lt;BR /&gt;Make it clear what you believe to be incorrect, and what you believe the correct result should be. Also include a complete list of versions of all products (a PRODUCT SHOW PRODUCT listing will do).&lt;BR /&gt;&lt;BR /&gt;This could be a compiler issue, a debug issue or a combination of the two. Make sure you've tried it with the latest compiler, and any DEBUG patches relevant to your OS version.&lt;BR /&gt;&lt;BR /&gt;Note that there's a new field test C++ compiler. It might be worth trying your code against it.</description>
      <pubDate>Mon, 02 Nov 2009 20:07:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-the-itanium-debugger/m-p/4525957#M43230</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2009-11-02T20:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the Itanium debugger</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-the-itanium-debugger/m-p/4525958#M43231</link>
      <description>Patch to current.&lt;BR /&gt;&lt;BR /&gt;I'd next rework the code to remove the typedef struct typedef struct declaration construction, as I suspect that's at the core of this problem.&lt;BR /&gt;&lt;BR /&gt;Time permitting, I'll power up a local Itanium "target practice" box and try this code over there.&lt;BR /&gt;&lt;BR /&gt;And if you have a support contract, escalate this to HP.</description>
      <pubDate>Mon, 02 Nov 2009 20:09:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-the-itanium-debugger/m-p/4525958#M43231</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-11-02T20:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the Itanium debugger</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-the-itanium-debugger/m-p/4525959#M43232</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This is really strange&lt;BR /&gt;&lt;BR /&gt;I removed all the typedefs and added one more structure still there is a problem.&lt;BR /&gt;&lt;BR /&gt;$ type main.c&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;&lt;BR /&gt;struct rec1 {&lt;BR /&gt;    int rec1_field;&lt;BR /&gt;} REC1;&lt;BR /&gt;&lt;BR /&gt;struct rec2 {&lt;BR /&gt;    int rec2_field;&lt;BR /&gt;} REC2;&lt;BR /&gt;&lt;BR /&gt;struct rec3 {&lt;BR /&gt;    int rec3_field;&lt;BR /&gt;} REC3;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;struct {&lt;BR /&gt;        struct rec1 *list;&lt;BR /&gt;} REC1_LIST;&lt;BR /&gt;&lt;BR /&gt;struct {&lt;BR /&gt;        struct rec2 *list;&lt;BR /&gt;} REC2_LIST;&lt;BR /&gt;&lt;BR /&gt;struct {&lt;BR /&gt;        struct rec3 *list;&lt;BR /&gt;} REC3_LIST;&lt;BR /&gt;&lt;BR /&gt;int main(int argc, char *argv[])&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;    REC1.rec1_field = 1;&lt;BR /&gt;&lt;BR /&gt;    REC1_LIST.list = &amp;amp;REC1;&lt;BR /&gt;&lt;BR /&gt;    REC2.rec2_field = 2;&lt;BR /&gt;&lt;BR /&gt;    REC2_LIST.list = &amp;amp;REC2;&lt;BR /&gt;&lt;BR /&gt;    REC3.rec3_field = 3;&lt;BR /&gt;&lt;BR /&gt;    REC3_LIST.list = &amp;amp;REC3;&lt;BR /&gt;&lt;BR /&gt;    return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;DBG&amp;gt; ex *REC1_LIST.list&lt;BR /&gt;*MAIN\REC1_LIST.list&lt;BR /&gt;    rec3_field: 1&lt;BR /&gt;DBG&amp;gt; ex *REC2_LIST.list&lt;BR /&gt;*MAIN\REC2_LIST.list&lt;BR /&gt;    rec3_field: 2&lt;BR /&gt;DBG&amp;gt; ex *REC3_LIST.list&lt;BR /&gt;*MAIN\REC3_LIST.list&lt;BR /&gt;    rec3_field: 3&lt;BR /&gt;DBG&amp;gt;&lt;BR /&gt;&lt;BR /&gt;It shows the correct value, but looks like symbolization is wrong. &lt;BR /&gt;&lt;BR /&gt;I think it is a bug.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Pramod.&lt;/STDIO.H&gt;</description>
      <pubDate>Tue, 03 Nov 2009 04:16:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-the-itanium-debugger/m-p/4525959#M43232</guid>
      <dc:creator>Pramod Kumar M</dc:creator>
      <dc:date>2009-11-03T04:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the Itanium debugger</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-the-itanium-debugger/m-p/4525960#M43233</link>
      <description>Please stop duplicating the symbol names.  That has classically confused many compilation passes.&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Nov 2009 14:41:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-the-itanium-debugger/m-p/4525960#M43233</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-11-03T14:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the Itanium debugger</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-the-itanium-debugger/m-p/4525961#M43234</link>
      <description>I agree that this is a bug.  I will contact support.  I will post a reply with the results.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 03 Nov 2009 18:33:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-the-itanium-debugger/m-p/4525961#M43234</guid>
      <dc:creator>Alex Vournas</dc:creator>
      <dc:date>2009-11-03T18:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the Itanium debugger</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-the-itanium-debugger/m-p/4525962#M43235</link>
      <description>Do you see any difference between say ...&lt;BR /&gt;&lt;BR /&gt;test1 that uses $CC /NOOPT/DEB  $LINK /DEB   &lt;BR /&gt;&lt;BR /&gt;and test2 that    $CC   /OPTIMIZE[=option] (D)&lt;BR /&gt;&lt;BR /&gt;This could be more of a code optimizer behavior then a DEBUGGER "issue".</description>
      <pubDate>Tue, 03 Nov 2009 20:37:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-the-itanium-debugger/m-p/4525962#M43235</guid>
      <dc:creator>Bennett_2</dc:creator>
      <dc:date>2009-11-03T20:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the Integrity debugger</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-the-itanium-debugger/m-p/4525963#M43236</link>
      <description>&lt;!-- !*# --&gt;&lt;P&gt;&amp;gt;Is this a bug in the Integrity debugger?&lt;BR /&gt;&lt;BR /&gt;It sure looks like it.&lt;BR /&gt;&lt;BR /&gt;You may want to use C++ coding style, not the scummy C style:&lt;BR /&gt;typedef struct foo foo&lt;BR /&gt;struct foo {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int f1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; foo *next;&lt;BR /&gt;};&lt;BR /&gt;foo foo_variable;&lt;BR /&gt;&lt;BR /&gt;Note: Every struct has a tag. Variables are declared separately from the struct. And to satisfy scummy C rules, you have a typedef for the same tag. The typedef can be after if you don't need that self-referential field.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Pramod: I removed all the typedefs and added one more structure still there is a problem.&lt;BR /&gt;&lt;BR /&gt;You still have some structs without tags.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Bennett: This could be more of a code optimizer behavior then a DEBUGGER issue.&lt;BR /&gt;&lt;BR /&gt;I doubt it. The optimizer wouldn't change the struct layouts, just cause it to print bad values that have been optimized away.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Sep 2011 22:08:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-the-itanium-debugger/m-p/4525963#M43236</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-09-18T22:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with the Itanium debugger</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/problem-with-the-itanium-debugger/m-p/4525964#M43237</link>
      <description>HP support confirmed that this was a bug.  They gave me a patch that fixed this.  Thanks for your help.</description>
      <pubDate>Mon, 30 Nov 2009 19:06:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/problem-with-the-itanium-debugger/m-p/4525964#M43237</guid>
      <dc:creator>Alex Vournas</dc:creator>
      <dc:date>2009-11-30T19:06:33Z</dc:date>
    </item>
  </channel>
</rss>

