<?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>Classic/Legacy CodeWarriorのトピックRe: Switch/Case Statement debugging / tracing</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Switch-Case-Statement-debugging-tracing/m-p/445482#M6952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using CodeWarrior CW_MCU_V6_3_SE with Freescale MC9S08QE64 (HCS08).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2015 11:40:59 GMT</pubDate>
    <dc:creator>zdjohnson</dc:creator>
    <dc:date>2015-07-27T11:40:59Z</dc:date>
    <item>
      <title>Switch/Case Statement debugging / tracing</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Switch-Case-Statement-debugging-tracing/m-p/445480#M6950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Case statements are apparently optimized down to a jump table which prevents me from setting a breakpoint onto a particular case in the switch statement.&lt;/P&gt;&lt;P&gt;1) How can I set a breakpoint to a particular case in a switch statement?&lt;/P&gt;&lt;P&gt;2) How does one change the level of optimization applied in the compile step or set options like bounds checking etc?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 15:46:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Switch-Case-Statement-debugging-tracing/m-p/445480#M6950</guid>
      <dc:creator>zdjohnson</dc:creator>
      <dc:date>2015-07-24T15:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Switch/Case Statement debugging / tracing</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Switch-Case-Statement-debugging-tracing/m-p/445481#M6951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what chip and CW version do you work with?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 08:09:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Switch-Case-Statement-debugging-tracing/m-p/445481#M6951</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-07-27T08:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Switch/Case Statement debugging / tracing</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Switch-Case-Statement-debugging-tracing/m-p/445482#M6952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using CodeWarrior CW_MCU_V6_3_SE with Freescale MC9S08QE64 (HCS08).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 11:40:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Switch-Case-Statement-debugging-tracing/m-p/445482#M6952</guid>
      <dc:creator>zdjohnson</dc:creator>
      <dc:date>2015-07-27T11:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Switch/Case Statement debugging / tracing</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Switch-Case-Statement-debugging-tracing/m-p/445483#M6953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. we can't set a breakpoint as specific code&amp;nbsp; such as case 0:.&amp;nbsp; &lt;/P&gt;&lt;P&gt;here is a piece of disassemble code i extracted for switch...case&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54875i7E3A1F6E44B90F10/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we can see there is no "real" disassembly code allocated in memory for "case 0". so it's not possiable to set a breakpoint at this line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. CW for HCS08 doesn't define a optimization level. but we can disable optimization in compiler option settings&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54923iD334D099A1C85A65/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can this help you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 06:23:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Switch-Case-Statement-debugging-tracing/m-p/445483#M6953</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-07-29T06:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Switch/Case Statement debugging / tracing</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Switch-Case-Statement-debugging-tracing/m-p/445484#M6954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply.&amp;nbsp; I see what you mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 11:16:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Switch-Case-Statement-debugging-tracing/m-p/445484#M6954</guid>
      <dc:creator>zdjohnson</dc:creator>
      <dc:date>2015-07-29T11:16:00Z</dc:date>
    </item>
  </channel>
</rss>

