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

Provide API to reference "org.eclipse.cdt.debug.gdbjtag.core.jtagDevice" launch attribute #943

Closed
ruspl-afed opened this issue Nov 20, 2024 · 3 comments

Comments

@ruspl-afed
Copy link
Member

Currently we have IGDBJtagConstants#ATTR_JTAG_DEVICE_ID for "org.eclipse.cdt.debug.gdbjtag.core.jtagDeviceId" but nothing similar for "org.eclipse.cdt.debug.gdbjtag.core.jtagDevice"

This leads to a duplicated declarations even for Eclipse CDT code base

  1. private static final String ATTR_JTAG_DEVICE = Activator.PLUGIN_ID + ".jtagDevice"; //$NON-NLS-1$
  2. private static final String ATTR_JTAG_DEVICE = "org.eclipse.cdt.debug.gdbjtag.core.jtagDevice"; //$NON-NLS-1$

It would be great to add API for this launch attribute

ruspl-afed added a commit to ruspl-afed/cdt that referenced this issue Jan 4, 2025
….jtagDevice"

* add `IGDBJtagConstants.ATTR_JTAG_DEVICE` and remove duplicated
definitions
@jonahgraham
Copy link
Member

Sorry that I didn't notice this when you submitted this issue, but this would undo 5188547 - see API notes: https://github.com/eclipse-cdt/cdt/blob/main/NewAndNoteworthy/CHANGELOG-API.md#:~:text=IGDBJtagConstants.ATTR_JTAG_DEVICE%20has%20been%20removed.%20Use%20IGDBJtagConstants.ATTR_JTAG_DEVICE_ID%20to%20persist%20device%20ID%20rather%20than%20device%20name.%20See%20Bug%20566462.

If you think this is needed going forward (i.e. you want to undo 5188547) please loop in @jld01 to review.

@ruspl-afed
Copy link
Member Author

No problem @jonahgraham and thank you for the links. I asked @jld01 to comment at #943

@ruspl-afed
Copy link
Member Author

This appeared to be an intentional code duplication

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

Successfully merging a pull request may close this issue.

2 participants