Skip to content

dist/tools: jlink: use GDB as default for DBG#8853

Merged
basilfx merged 1 commit intoRIOT-OS:masterfrom
basilfx:feature/jlink_dbg
Mar 30, 2018
Merged

dist/tools: jlink: use GDB as default for DBG#8853
basilfx merged 1 commit intoRIOT-OS:masterfrom
basilfx:feature/jlink_dbg

Conversation

@basilfx
Copy link
Copy Markdown
Member

@basilfx basilfx commented Mar 29, 2018

Contribution description

I'm not sure when exactly, but suddenly make debug didn't work for JLink-based targets, unless you specify DBG. I therefore created #7904.

Today, I compared jlink.sh with openocd.sh, and I noticed that OpenOCD defaults to the GDB variable if DBG is undefined. This PR will now do the same for JLink. I'm not a shell-script expert, so I have no intentions to rewrite/refactor the script, but this easy fix does it.

Issues/PRs references

This comment

@basilfx basilfx added Type: new feature The issue requests / The PR implemements a new feature for RIOT Area: tools Area: Supplementary tools labels Mar 29, 2018
@basilfx basilfx requested a review from jnohlgard March 29, 2018 18:00
@basilfx basilfx added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Mar 29, 2018
Copy link
Copy Markdown
Member

@jnohlgard jnohlgard left a comment

Choose a reason for hiding this comment

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

Looks fine as a remedy for the immediate symptom. The jlink script would benefit from the same refactoring as the openocd script, but someone will need to do the actual work.

@basilfx basilfx merged commit f3e36d5 into RIOT-OS:master Mar 30, 2018
@basilfx basilfx deleted the feature/jlink_dbg branch January 14, 2020 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: tools Area: Supplementary tools CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: new feature The issue requests / The PR implemements a new feature for RIOT

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants