<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>GDB debug of SDK examples in Eclipse</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5648/gdb-debug-of-sdk-examples-in-eclipse</link><description>Hello, 
 I am using an Eclipse GCC environment with the following setup: 
 
 Ubuntu -&amp;gt; 14.04 (Trusty Tahr) 
 Eclipse IDE for C/C++ Developers -&amp;gt; Version: Luna Service Release 1a (4.4.1) 
 GNU ARM Embedded Toolchain -&amp;gt; gcc-arm-none-eabi=4.9.3.2014q4</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Oct 2015 13:48:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5648/gdb-debug-of-sdk-examples-in-eclipse" /><item><title>RE: GDB debug of SDK examples in Eclipse</title><link>https://devzone.nordicsemi.com/thread/19789?ContentTypeID=1</link><pubDate>Tue, 06 Oct 2015 13:48:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36c28e31-03a5-474f-8996-dd7aab30cef6</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;In opposite to desktop or server software, debug informations in an embedded firmware usually do not end up in the final binary. So I think it’s a viable choice to add the -g switch even for release builds.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GDB debug of SDK examples in Eclipse</title><link>https://devzone.nordicsemi.com/thread/19788?ContentTypeID=1</link><pubDate>Tue, 06 Oct 2015 08:12:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41b99f8a-a002-4585-ba04-9f04c8aafa94</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Since eclipse is using the existing makefile you would need to add the -g flag manually. You would also need to remove the -flto flag, because the LTO removes the debug symbols again.&lt;/p&gt;
&lt;p&gt;You could edit the makefile to include two targets, one release and one debug target, and only use the -g flag on the debug target. Then you can switch between these two targets in eclipse. But you will still need to edit the makefiles.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>