You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The Command History feature in the Debugger Console is not working as expected. #633
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.
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?
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.
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?
@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.
@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.
Activity
ilg-ul commentedon May 15, 2025
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?
jonahgraham commentedon May 15, 2025
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.
ilg-ul commentedon May 16, 2025
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.
fanghuaqi commentedon Sep 10, 2025
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?
ilg-ul commentedon Sep 10, 2025
Unfortunately new developments in the debug plugins require more efforts than my limited resources can provide.
fanghuaqi commentedon Sep 10, 2025
Thank you for your response. If we were to develop this feature, could you please specify the steps involved?
jonahgraham commentedon Sep 10, 2025
@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.
fanghuaqi commentedon Sep 12, 2025
Okay, thanks @jonahgraham