<?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>CodeWarrior for MCUのトピックPlacing breakpoint</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-breakpoint/m-p/164976#M4763</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´m using CW 5.1 to program a GT60 micro using C. Sometimes, I can´t place a breakpoint where I want in the code, and CW moves it to a near instruction. Why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thankfully,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ernesto.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Nov 2007 04:35:07 GMT</pubDate>
    <dc:creator>etolocka</dc:creator>
    <dc:date>2007-11-17T04:35:07Z</dc:date>
    <item>
      <title>Placing breakpoint</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-breakpoint/m-p/164976#M4763</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´m using CW 5.1 to program a GT60 micro using C. Sometimes, I can´t place a breakpoint where I want in the code, and CW moves it to a near instruction. Why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thankfully,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ernesto.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Nov 2007 04:35:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-breakpoint/m-p/164976#M4763</guid>
      <dc:creator>etolocka</dc:creator>
      <dc:date>2007-11-17T04:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Placing breakpoint</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-breakpoint/m-p/164977#M4764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Many times this happens when you try to place a breakpoint at a label, comment&amp;nbsp;or on code that has been stripped out by the compiler as dead (not used) code.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Nov 2007 10:41:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-breakpoint/m-p/164977#M4764</guid>
      <dc:creator>Witztronics</dc:creator>
      <dc:date>2007-11-17T10:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Placing breakpoint</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-breakpoint/m-p/164978#M4765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;a good tip is to enable Marks in the debugger (source window context menu, or menu Source &amp;gt; Marks): then the debugger shows with marks in the source window where line debug information is available&amp;nbsp; (where you can set a breakpoint). I have this enabled by default.&lt;BR /&gt;&lt;BR /&gt;BK&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Nov 2007 16:56:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-breakpoint/m-p/164978#M4765</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2007-11-17T16:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Placing breakpoint</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-breakpoint/m-p/164979#M4766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;I´m trying to place the breakpoint at a executable instruction, not a label or dead code.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ernesto.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2007 20:28:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-breakpoint/m-p/164979#M4766</guid>
      <dc:creator>etolocka</dc:creator>
      <dc:date>2007-11-23T20:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Placing breakpoint</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-breakpoint/m-p/164980#M4767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Enabling "marks" I can see that there is no debugging info where I want to place the breakpoint. Why? Can I force the compiler to do this?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ernesto.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2007 20:31:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-breakpoint/m-p/164980#M4767</guid>
      <dc:creator>etolocka</dc:creator>
      <dc:date>2007-11-23T20:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Placing breakpoint</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-breakpoint/m-p/164981#M4768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;well, that really depends a little bit of that source code. Maybe you just did a mistake like&lt;BR /&gt;if (ui == -1) ....&lt;BR /&gt;and if the variable is unsigned, the compiler may have optimized the whole block away? In such a case, the compiler would have you warned about that (with a message). I suggest that you check the compiler messages around the code in question (maybe you simply did an error in the source code?).&lt;BR /&gt;&lt;BR /&gt;If this is not the reason, you may switch off optimizations, and here are some options you could try:&lt;BR /&gt;-Onu&lt;BR /&gt;-Onf&lt;BR /&gt;-O0&lt;BR /&gt;-Ona&lt;BR /&gt;-Onb&lt;BR /&gt;-Ont&lt;BR /&gt;&lt;BR /&gt;If the code is around a variable, you can enforce disabling optimizations making the variable volatile (but this is really only something as a last resort: typically the compiler is right optimizing code).&lt;BR /&gt;&lt;BR /&gt;BK&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2007 01:10:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Placing-breakpoint/m-p/164981#M4768</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2007-11-24T01:10:44Z</dc:date>
    </item>
  </channel>
</rss>

