<?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: No symbol table is loaded.  Use the &amp;quot;file&amp;quot; command.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3797/gdb-no-symbol-table-is-loaded-use-the-file-command</link><description>When I try to set a breakpoint in eclipse by clicking on a line, gdb tells me in the eclipse &amp;quot;Console&amp;quot; window below the code: &amp;quot;No symbol table is loaded. Use the &amp;quot;file&amp;quot; command.&amp;quot; The execution never stops as the breakpoint doesn&amp;#39;t seam to get set. The</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 28 Mar 2015 23:38:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3797/gdb-no-symbol-table-is-loaded-use-the-file-command" /><item><title>RE: gdb: No symbol table is loaded.  Use the "file" command.</title><link>https://devzone.nordicsemi.com/thread/13721?ContentTypeID=1</link><pubDate>Sat, 28 Mar 2015 23:38:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d60a81a-3a2e-4c2e-bc7e-e7ff067d040a</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Sorry, only worked on this again now.
The solution is to use the -g option to include debug symbols when compiling. When using pure-gcc add it to either the project makefile (ex. CFLAGS = -Os -g) or to the template.
You don&amp;#39;t need to use the file command as Håkan proposed, eclipse does that for you if you have set it up according to nAN-29 (load symbols check box in the startup tab of the debug settings).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gdb: No symbol table is loaded.  Use the "file" command.</title><link>https://devzone.nordicsemi.com/thread/13720?ContentTypeID=1</link><pubDate>Fri, 19 Sep 2014 12:07:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f33292e-db2d-49b5-87fb-065bfdb35f8a</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;You&amp;#39;ll have to load the .out (or .elf) file using the file command in gdb:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;file &amp;lt;myfile.out&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Check out this thread:
&lt;a href="https://devzone.nordicsemi.com/question/2899/eclipse-cdt-gdb-debugging-with-nrf51822-breaks-on-every-line/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Cheers,
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>