Skip to content

Error when creating OpenOCD debug launch config when project selected #207

Closed

Description

@TommyMurphyTM1234

See here:

https://groups.google.com/a/groups.riscv.org/d/msg/sw-dev/4sC6Fi_5pyA/MXCiPSysAAAJ

Windows 7 64 bit
Eclipse Neon.3 (4.6.3) + CDT 9 (9.2.1) 32 bit
Java 8u131
GNU MCU Eclipse plugins for ARM and RISC-V v4.6.3-20170606-0936

Select a project in the Project Explorer.
Select the menu option Run > Debug Configurations.
Select GDB OpenOCD Debugging
Create a new debug launch configuration
The following error is displayed:

gme

If no project is selected in the Project Explorer then that error does not appear and the debug launch configuration is successfully created - albeit with many fields blank and needing to be filled in manually (which seems to be correct behaviour in the circumstances).

Partial log attached:

gme.log.txt

If any further info or testing is needed then please let me know.

Regards
Tommy

Activity

  1. self-assigned this
    on Jun 7, 2017
  2. added this to the Next release milestone on Jun 7, 2017
  3. ilg-ul commented on Jun 7, 2017

    @ilg-ul
    Contributor

    thank you.

    if you allow me, one short comment: I know that selecting user ids are a personal matter, but not adding the full name can lead to lots of confusion.

  4. TommyMurphyTM1234 commented on Jun 7, 2017

    @TommyMurphyTM1234
    Author

    I did try to change my "display name" on my profile (before and again just now) but it still stays at TM1234 so I don't really know how to do anything about that. Sorry.

  5. ilg-ul commented on Jun 7, 2017

    @ilg-ul
    Contributor

    screen shot 2017-06-08 at 02 15 17

  6. TommyMurphyTM1234 commented on Jun 7, 2017

    @TommyMurphyTM1234
    Author

    Yes - I changed my Name there but it still uses TM1234.

  7. ilg-ul commented on Jun 8, 2017

    @ilg-ul
    Contributor

    Tommy, could you check version 4.1.1-201706082015 from

    http://gnu-mcu-eclipse.sourceforge.io/v4-neon-updates-experimental

  8. added a commit that references this issue on Jun 8, 2017
  9. TommyMurphyTM1234 commented on Jun 8, 2017

    @TommyMurphyTM1234
    Author

    Did you mean GNU MCU C/C++ OpenOCD Debugging 4.1.5.201706082109?

    With that version I no longer get any error when creating a debug launch configuration when there is a project selected in the Project Explorer.

    gme

    I'm a bit confused by the version numbering. You announced the v4.6.3 GME plugins here:

    https://groups.google.com/a/groups.riscv.org/d/msg/sw-dev/4sC6Fi_5pyA/vJdsedOFCQAJ

    But this version is v4.1.5. Or is the versioning of all GME plugins "bundle" separate from the versioning of individual component plugins?

    BTW - I think that it was reported before/elsewhere (can't find it mentioned in issue tracker though) but the Main > C/C++ Application field gets filled in with a relative path using a backslash rather than a forward slash which is a small barrier to portability (i.e. will not work on Linux/non Windows OSs) whereas a forward slash seems to be globally portable. Would it be possible to have forward slash used on Windows too? Will I open a separate issue for this?

    Thanks a lot.

  10. ilg-ul commented on Jun 8, 2017

    @ilg-ul
    Contributor

    yes, the Eclipse versioning system is confusing, and will probably remain so.

    for the GNU MCU Eclipse product, the version reflects the original version, like v4.6.3, followed by the date (20170606-0936).

    for the GNU MCU Eclipse plug-ins, the version reflects the version of the entire update site, which, unfortunately, does not show when you list the features, but is indeed the version used to publish the update site (https://bintray.com/gnu-mcu-eclipse/v4-neon-updates-experimental/p2)

    each Eclipse bundle has its own version.

    each Eclipse feature has its own version.

    one or more bundles are referred by one or more features. generally each feature has a main bundle, with a similar name, and the same version.

    with all this chaos, at run-time, you can find the original repository version by searching for the ilg.gnumcueclipse.core plug-in, which artificially follows the version of the repository.

    so, when you encounter a reference to GNU MCU Eclipse plug-ins version x.y.x-YYYYMMDDHHMM, the really relevant part is the date, which must be the same for all features, plug-ins, repository, etc. since it identifies the build time.

  11. ilg-ul commented on Jun 8, 2017

    @ilg-ul
    Contributor

    Did you mean GNU MCU C/C++ OpenOCD Debugging 4.1.5.201706082109?

    given the above explanation, "check version 4.1.1-201706082015" means get a version from the update site with a date later than 20170608-2015. since 20170608-2109 is later, yes, this a suitable version to test.

  12. ilg-ul commented on Jun 8, 2017

    @ilg-ul
    Contributor

    the Main > C/C++ Application field gets filled in with a relative path using a backslash

    as far as I know, that field is automatically filled in by CDT, not by the plug-in.

    Would it be possible to have forward slash used on Windows too? Will I open a separate issue for this?

    if you know how to configure CDT to do this, yes, please open a separate issue and possibly provide a pull request.

  13. TommyMurphyTM1234 commented on Jun 8, 2017

    @TommyMurphyTM1234
    Author

    Thanks for the explanations of the version numbering.
    I wasn't aware that the backslash was coming from CDT rather than the GME plugin. I'll see if I can find anything on how this might be changed and if I find anything useful I will log an issue and/or PR.

  14. ilg-ul commented on Jun 9, 2017

    @ilg-ul
    Contributor

    I checked the code and indeed the TabMain used in the debugging plug-ins simply inherit from a parent CDT class.

    Unfortunately that class is marked as deprecated, so at a certain moment it'll require attention.

    Please log an issue, and, if you can find a solution how to reimplement this tab and rewrite the path to use forward slashes, please let me know. Being common to all debuggers, the new class must be located in ilg.gnumcueclipse.debug.gdbjtag, and instantiated in each debugging plug-in.

  15. ilg-ul commented on Jul 11, 2017

    @ilg-ul
    Contributor

    fixed in 4.1.1.201707111115

  16. modified the milestones: v4.1.1, Next release on Jul 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions