<?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: Breakpoint in unused function is moved to another function in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Breakpoint-in-unused-function-is-moved-to-another-function/m-p/725227#M1222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/32053iAAA8BCACA9AF002A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is a simplified example.&amp;nbsp; Note that the breakpoint is set in unused_function(), but the debugger stops on used_function() despite no breakpoint marker showing up there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 May 2018 17:09:21 GMT</pubDate>
    <dc:creator>scottm</dc:creator>
    <dc:date>2018-05-28T17:09:21Z</dc:date>
    <item>
      <title>Breakpoint in unused function is moved to another function</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Breakpoint-in-unused-function-is-moved-to-another-function/m-p/725225#M1220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Running MCUX 10.2.0 - and this time it's a completely fresh, unmodified install with no PEx or non-standard toolchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm debugging my USB descriptor handling code and set a breakpoint in&amp;nbsp;USB_Desc_Valid_Configation().&amp;nbsp; (You can tell it's from a Freescale example because 'configuration' is misspelled.&amp;nbsp; Along with 'composite', 'function', 'is', 'successful', 'received', 'supported', 'increase', 'interface'...)&amp;nbsp; I forgot, however, that the function isn't actually referenced.&amp;nbsp; Nor is the next function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result is that the breakpoint invisibly moves to an entirely different function further down.&amp;nbsp; I understand that picking the next line that actually produces any code is typical, but shouldn't it be confined to a single function?&amp;nbsp; And I seem to remember that CodeWarrior would visibly move the breakpoint marker to its actual location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 May 2018 22:04:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Breakpoint-in-unused-function-is-moved-to-another-function/m-p/725225#M1220</guid>
      <dc:creator>scottm</dc:creator>
      <dc:date>2018-05-27T22:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Breakpoint in unused function is moved to another function</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Breakpoint-in-unused-function-is-moved-to-another-function/m-p/725226#M1221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;Could you please take screenshots show your problem ?&lt;/P&gt;&lt;P&gt;mainly about "The result is that the breakpoint invisibly moves to an entirely different function further down.&amp;nbsp;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;TIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2018 09:13:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Breakpoint-in-unused-function-is-moved-to-another-function/m-p/725226#M1221</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2018-05-28T09:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Breakpoint in unused function is moved to another function</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Breakpoint-in-unused-function-is-moved-to-another-function/m-p/725227#M1222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/32053iAAA8BCACA9AF002A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is a simplified example.&amp;nbsp; Note that the breakpoint is set in unused_function(), but the debugger stops on used_function() despite no breakpoint marker showing up there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2018 17:09:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Breakpoint-in-unused-function-is-moved-to-another-function/m-p/725227#M1222</guid>
      <dc:creator>scottm</dc:creator>
      <dc:date>2018-05-28T17:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Breakpoint in unused function is moved to another function</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Breakpoint-in-unused-function-is-moved-to-another-function/m-p/725228#M1223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Scott, &lt;/P&gt;&lt;P&gt;If place a breakpoint in the function that not called, the breakpoint will fall through to the nexet valid line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 05:59:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Breakpoint-in-unused-function-is-moved-to-another-function/m-p/725228#M1223</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2018-05-29T05:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Breakpoint in unused function is moved to another function</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Breakpoint-in-unused-function-is-moved-to-another-function/m-p/725229#M1224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that's exactly what I'm trying to illustrate here.&amp;nbsp; I know&amp;nbsp;&lt;EM&gt;what&lt;/EM&gt; it's doing.&amp;nbsp; But&amp;nbsp;&lt;EM&gt;why&lt;/EM&gt;?&amp;nbsp; How could that ever be the intended behavior, having execution stop in an entirely unrelated function?&amp;nbsp; It tells you nothing about the program flow and gives you no indication of which breakpoint actually caused the break.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 15:39:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Breakpoint-in-unused-function-is-moved-to-another-function/m-p/725229#M1224</guid>
      <dc:creator>scottm</dc:creator>
      <dc:date>2018-05-29T15:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Breakpoint in unused function is moved to another function</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Breakpoint-in-unused-function-is-moved-to-another-function/m-p/725230#M1225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have duplicated the behaviour you describe - and of course, this does raise an interesting question as to how a source line should ultimately be related to an address. For this question, CDT, the Compiler/Linker/Dwarf debug tables and GDB are involved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the behaviour is that breakpoints set by double clicking within the edit view will be set to an address corresponding to the closest match to actual code. You can see within the Debugger console which particular breakpoint has been hit&amp;nbsp; - if required.&amp;nbsp; There are alternative options such as setting breakpoints within the IDE on particular functions etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also drop to the Debugger Console to directly set breakpoints on an address or on a function e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;break *0x2000&lt;BR /&gt;Breakpoint 6 at 0x2000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;break *used_function&lt;BR /&gt;Breakpoint 7 at 0x8ac: file ../source/hello_world.c, line 86.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;break *unused_function&lt;BR /&gt;Breakpoint 8 at 0x0&amp;nbsp; &amp;lt;&amp;lt;-- since this function doesn't get linked into the image &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While we accept that this may not always be ideal, there is likely nothing we can do to change this behaviour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yours,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MCUXpresso IDE Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2018 13:05:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Breakpoint-in-unused-function-is-moved-to-another-function/m-p/725230#M1225</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2018-06-04T13:05:38Z</dc:date>
    </item>
  </channel>
</rss>

