Skip to content

The Command History feature in the Debugger Console is not working as expected. #633

Open

Description

@laomaolaile

According to the official Eclipse documentation, the Debugger Console supports a Command History feature.

https://wiki.eclipse.org/CDT/Archive/FullGDBConsole

Image

However, when debugging a RISC-V project in Embedded CDT (embed-cdt), I found that the Command History does not function properly.

Interestingly, when I created a regular C project in the same environment and used the Debugger Console, the Command History worked normally. I'm wondering which component or configuration might be causing this issue in the RISC-V project context.Any insights or suggestions would be greatly appreciated.

Image

Image

Thank you for your attention to this matter!

Activity

  1. ilg-ul commented on May 15, 2025

    @ilg-ul
    Contributor

    It might be possible that the features related to Debug console were added to CDT after the EmbedCDT was implemented (very long time ago!), and require some additional setting to be enabled.

    @jonahgraham, do you know how to enable this in EmbedCDT?

  2. jonahgraham commented on May 15, 2025

    @jonahgraham
    Contributor

    I think org.eclipse.embedcdt.debug.gdbjtag.core.dsf.GnuMcuGdbBackend and its subclass GdbBackend are copied from an old version of the org.eclipse.cdt.dsf.gdb.service.GDBBackend class hierarchy. The newer org.eclipse.cdt.dsf.gdb.service.GDBBackend_7_12 has the needed functionality. If it is possible to make GnuMcuGdbBackend extend GDBBackend_7_12 then it should just work™

    PS This won't work on Windows - I can't remember the state on mac, but I would guess it should work there as mac has a real PTY implementation.

  3. ilg-ul commented on May 16, 2025

    @ilg-ul
    Contributor

    If I remember right, the reason for copying that class locally was that I could not extend it to add the needed functionality.

    If the new class is more configurable and I can extend it, we can consider extending it.

    However, this will probably also require raising the Eclipse/CDT base version, which will take some efforts.

  4. fanghuaqi commented on Sep 10, 2025

    @fanghuaqi

    Dear @ilg-ul, I would like to inquire if there have been any developments regarding this issue. Specifically, will this feature be incorporated in the future?

  5. ilg-ul commented on Sep 10, 2025

    @ilg-ul
    Contributor

    Unfortunately new developments in the debug plugins require more efforts than my limited resources can provide.

  6. fanghuaqi commented on Sep 10, 2025

    @fanghuaqi

    Unfortunately new developments in the debug plugins require more efforts than my limited resources can provide.

    Thank you for your response. If we were to develop this feature, could you please specify the steps involved?

  7. jonahgraham commented on Sep 10, 2025

    @jonahgraham
    Contributor

    @fanghuaqi please see my previous comment #633 (comment) that explains what is needed to be done here. Please try that, test it out and create a PR or let us know what you find.

  8. fanghuaqi commented on Sep 12, 2025

    @fanghuaqi

    @fanghuaqi please see my previous comment #633 (comment) that explains what is needed to be done here. Please try that, test it out and create a PR or let us know what you find.

    Okay, thanks @jonahgraham

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions