Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eclipse debug fixes (build w/ DEBUG=1 and load symbols) #3532

Merged
merged 1 commit into from
Jan 12, 2017

Conversation

janjongboom
Copy link
Contributor

@janjongboom janjongboom commented Jan 5, 2017

  1. Pass the DEBUG=1 flag to make for projects exported to Eclipse. Together with Makefile does not support DEBUG=1 anymore... #3530 this enables builds with debug symbols from Eclipse again.
  2. Enable symbol loading when starting a debug session.

@theotherjimmy

@janjongboom janjongboom changed the title Eclipse should build with DEBUG=1 flag Eclipse debug fixes (build w/ DEBUG=1 and load symbols) Jan 5, 2017
@@ -18,7 +18,7 @@
<folderInfo id="0.936619452." name="/" resourcePath="">
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.957782855" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.957782855.1870418474" name=""/>
<builder arguments="-j" command="make" id="org.eclipse.cdt.build.core.settings.default.builder.1415080330" incrementalBuildTarget="" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
<builder arguments="DEBUG=1 -j" command="make" id="org.eclipse.cdt.build.core.settings.default.builder.1415080330" incrementalBuildTarget="" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, if you want to enable debugging, you can export with the debug profile. I would accept a change that made the debug profile the default for exporters.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not make it clear what change I was requesting. Please don't pass any special variables to the makefile. We want the make and eclipse default invocation to be exactly the same.

@@ -35,7 +35,7 @@
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.ipAddress" value="localhost"/>
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.jtagDevice" value="GNU ARM PyOCD"/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadImage" value="{{load_exe}}"/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadSymbols" value="false"/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadSymbols" value="{{load_exe}}"/>
Copy link
Contributor

@theotherjimmy theotherjimmy Jan 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes? But where does this load_exe thing get set in the jinja template? Nevermind, found it.

@theotherjimmy
Copy link
Contributor

Hey, @janjongboom Would you like me to write the "make the default profile debug" part? I think I know how I would like to do it.

@janjongboom
Copy link
Contributor Author

@theotherjimmy Yeah, absolutely! Just want to fix this stuff ;-)

@theotherjimmy
Copy link
Contributor

@janjongboom I just had a chat with @sarahmarshy, and she wrote that particular patch yesterday, but did not submit a PR. We will just approve that PR when it comes in (~10 min maybe)

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 6, 2017

As I understand, this can be closed?

@janjongboom
Copy link
Contributor Author

@0xc0170 @theotherjimmy As far as I can see @sarahmarshy's commit does not address the org.eclipse.cdt.debug.gdbjtag.core.loadSymbols patch... So we should either land that separately or change this patch.

@theotherjimmy
Copy link
Contributor

theotherjimmy commented Jan 6, 2017

@janjongboom We should fix the ...loadSymbols thing in this PR. You could simply remove the other commit from this series.

@janjongboom
Copy link
Contributor Author

@theotherjimmy Fixed ^

@theotherjimmy
Copy link
Contributor

👍

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 9, 2017

@theotherjimmy happy with this patch?

@sg-
Copy link
Contributor

sg- commented Jan 9, 2017

/morph export-build

@sg- sg- added the needs: CI label Jan 9, 2017
@mbed-bot
Copy link

mbed-bot commented Jan 9, 2017

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph export-build

Output

mbed Build Number: 75

All exports and builds passed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants