<?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: Argument passing is displayed wrong in hiwave debugger in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Argument-passing-is-displayed-wrong-in-hiwave-debugger/m-p/141369#M2686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello CrasyCat.&lt;BR /&gt;&lt;BR /&gt;It's clear to me, that it's only a display problem.&lt;BR /&gt;But not all functions push the register content on the stack on entry. If this is not necessary the argument is processed directly.&lt;BR /&gt;In fact my debugger shows a wrong value in the procedure window where the passed arguments stand in this case (no undefined).&lt;BR /&gt;You are right, once you know this problem it's not a problem anymore.&lt;BR /&gt;But before I discovered it, it was very confusing because i saw a wrong this-pointer, then looked at the wrong memory, saw wrong content ....&lt;BR /&gt;&lt;BR /&gt;and it wasn't at all a problem of my code!&lt;BR /&gt;&lt;BR /&gt;Flo&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jun 2006 12:44:41 GMT</pubDate>
    <dc:creator>Flo</dc:creator>
    <dc:date>2006-06-30T12:44:41Z</dc:date>
    <item>
      <title>Argument passing is displayed wrong in hiwave debugger</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Argument-passing-is-displayed-wrong-in-hiwave-debugger/m-p/141367#M2684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've discovered an anoying bug in Hiwave debugger for HC08 V6.1. (CW version 5.0 patch 1).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The "Procedure" window displays the current stack trace including the arguments&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;passed to a called function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Following the calling convention for HC08 a maximum of 2 bytes is passed in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;registers. This is allways the last variable to pass, all the other are passed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;on stack.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The debugger only displays arguments passed via stack correctly. The ones&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;passed in registers show wrong values (normally the pushed return address).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This affects C and C++ functions and also "Data" windows that display e.g. a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;passed this-pointer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Take care when dereferencing this-pointers!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do i post a bug report?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Flo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 13:58:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Argument-passing-is-displayed-wrong-in-hiwave-debugger/m-p/141367#M2684</guid>
      <dc:creator>Flo</dc:creator>
      <dc:date>2006-06-29T13:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Argument passing is displayed wrong in hiwave debugger</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Argument-passing-is-displayed-wrong-in-hiwave-debugger/m-p/141368#M2685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have made some test locally. This is a display issue only.&lt;/P&gt;&lt;P&gt;The parameter value is pushed on the stack in the called&amp;nbsp; function entry code. After entry code has been executed, appropriate value is displayed on the procedure and local data window.&lt;/P&gt;&lt;P&gt;Basically the debugger shows "undefined" for local variables or parameters, which value&amp;nbsp;is kept into register.&amp;nbsp;In the procedure window is just shows an empty parameter. This is a display problem only&amp;nbsp;within the debugger and does not affect code execution.&lt;/P&gt;&lt;P&gt;The generated code is correct.&lt;/P&gt;&lt;P&gt;We do not have any fix for this&amp;nbsp;display issue now. You can submit a defect using our on-line&amp;nbsp;support web page.&lt;/P&gt;&lt;P&gt;Go to following&amp;nbsp;URL:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/homepage.jsp?nodeId=054670&amp;amp;tid=FSH" rel="nofollow" target="_blank"&gt;http://www.freescale.com/webapp/sps/site/homepage.jsp?nodeId=054670&amp;amp;tid=FSH&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And click on "Submit a service request".&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2006 00:14:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Argument-passing-is-displayed-wrong-in-hiwave-debugger/m-p/141368#M2685</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-06-30T00:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Argument passing is displayed wrong in hiwave debugger</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Argument-passing-is-displayed-wrong-in-hiwave-debugger/m-p/141369#M2686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello CrasyCat.&lt;BR /&gt;&lt;BR /&gt;It's clear to me, that it's only a display problem.&lt;BR /&gt;But not all functions push the register content on the stack on entry. If this is not necessary the argument is processed directly.&lt;BR /&gt;In fact my debugger shows a wrong value in the procedure window where the passed arguments stand in this case (no undefined).&lt;BR /&gt;You are right, once you know this problem it's not a problem anymore.&lt;BR /&gt;But before I discovered it, it was very confusing because i saw a wrong this-pointer, then looked at the wrong memory, saw wrong content ....&lt;BR /&gt;&lt;BR /&gt;and it wasn't at all a problem of my code!&lt;BR /&gt;&lt;BR /&gt;Flo&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2006 12:44:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Argument-passing-is-displayed-wrong-in-hiwave-debugger/m-p/141369#M2686</guid>
      <dc:creator>Flo</dc:creator>
      <dc:date>2006-06-30T12:44:41Z</dc:date>
    </item>
  </channel>
</rss>

