-
Notifications
You must be signed in to change notification settings - Fork 201
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
Migrate ToggleInstructionStepModeAction to ToggleInstructionStepModeCommand. #866
Migrate ToggleInstructionStepModeAction to ToggleInstructionStepModeCommand. #866
Conversation
@iloveeclipse FYI |
6e9cff5
to
b5d1368
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just had a quick glance at the changes and some minor remarks.
dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/actions/DsfSteppingModeTarget.java
Outdated
Show resolved
Hide resolved
...ebug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ToggleInstructionStepModeHandler.java
Outdated
Show resolved
Hide resolved
...ebug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ToggleInstructionStepModeHandler.java
Outdated
Show resolved
Hide resolved
...ebug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ToggleInstructionStepModeHandler.java
Outdated
Show resolved
Hide resolved
...lipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CDTDebugPropertyTester.java
Outdated
Show resolved
Hide resolved
...lipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CDTDebugPropertyTester.java
Outdated
Show resolved
Hide resolved
@Torbjorn-Svensson This command is currently contributed in 4 locations. IMHO it is too much. |
I'm not so sure that it's a good idea to remove all other locations. The one next to the run control widget in the "main" toolbar is the one I usually use/check to see what mode I'm currently in. |
b5d1368
to
44dbe2c
Compare
Fixed all the review comments. |
...ebug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ToggleInstructionStepModeHandler.java
Outdated
Show resolved
Hide resolved
...lipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CDTDebugPropertyTester.java
Outdated
Show resolved
Hide resolved
...ebug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ToggleInstructionStepModeHandler.java
Outdated
Show resolved
Hide resolved
.../org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/Messages.properties
Outdated
Show resolved
Hide resolved
...ebug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ToggleInstructionStepModeHandler.java
Outdated
Show resolved
Hide resolved
...ebug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ToggleInstructionStepModeHandler.java
Outdated
Show resolved
Hide resolved
dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/actions/DsfSteppingModeTarget.java
Outdated
Show resolved
Hide resolved
e3e02a1
to
e2473a7
Compare
@jonahgraham : could you please check? Would be nice to get it into next release. |
Perhaps you may want to avoid API removal if you want this change to be integrated faster @raghucssit @iloveeclipse |
Which one? Are the test failures known or they are result of this change? |
OK, I've overlooked that. |
.../org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/Messages.properties
Show resolved
Hide resolved
I would say that they are due to changes in this PR as other PRs are green. |
e2473a7
to
190098f
Compare
incremented version number. |
@Torbjorn-Svensson Fixed the issues mentioned. |
My bad. I checked for the client in code base. There was none jus removed it. I forgot somewhere/someone in the world may be using it. Now i have added it back. |
debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/ITargetProperties.java
Outdated
Show resolved
Hide resolved
190098f
to
d772dd5
Compare
5e80761
to
b4e61bd
Compare
@Torbjorn-Svensson
I have done lot of analysis but Not able to find why do they fail ? All the tests in this plugin passes fine in m local build. Maven as well as inside eclipse debug session. |
@Torbjorn-Svensson Thank you so much for triggering my test pr build. Now I am not sure how to proceed with this. |
dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/actions/DsfSteppingModeTarget.java
Outdated
Show resolved
Hide resolved
b4e61bd
to
d2646ae
Compare
@ruspl-afed As i have mentioned alreday. Please help me is there anything I am missing here ? |
d2646ae
to
edb2a34
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are the comments touching all aspects of the change. Hopefully my quotes make it obvious enough what I am replying to.
@jonahgraham / @jld01 Do you any opinion on what locations to keep and what to remove?
Please keep them.
@jonahgraham : could you please check? Would be nice to get it into next release.
I am all for this in CDT 12 - current main branch is working towards CDT 12.
@Torbjorn-Svensson Thank you so much for triggering my test pr build.
BTW @raghucssit if you enable GitHub actions on your fork you will be able to run all the builds without needing to ping anyone.
How will you be able to identify if this is needed or not?
We are targetting CDT 12. Go ahead with the removal of the interface as it seems to have low value and while possibly used the fact it continues to pull in deprecated Platform API is a problem anyway. I am ok to simplify. Please add a an entry in https://github.com/eclipse-cdt/cdt/blob/main/NewAndNoteworthy/CHANGELOG-API.md for removed public API.
As i have mentioned alreday. org.eclipse.cdt.tests.dsf.gdb tests are not executed on main branch itself.
These tests are known to fail - sorry you lost time to these, see #816
A minor error is that supportsInstructionStepping
is no longer called. This means that instruction stepping button is visible and enabled in post mortem (core) debug sessions. This is a minor issue, but we should make it work, or remove the dead code.
In summary this change looks good. I hope that my fellow reviewers have had a chance to run it in their specific environments if they are concerned.
PS You have taken on some legacy code. The old code was written as it was (including seemingly underused interfaces) because it existed to handle the transition from now deleted CDI debugger to the DSF one. This action, along with all the infrastructure for instruction stepping, was written so it would work with both backends. Because of that this code also works with the DAP (Debug Adapter Protocol) back end.
edb2a34
to
eb4a003
Compare
Fixed this in the
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM
I will take call based on the feedback.
I am fine with current solution, and your info makes it sound like it is better this way.
I will merge this in the coming days assuming no changes are requested by fellow reviewers.
The 8 errors, 60 failed tests of latest commit are #816 and do not hold up acceptance of this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jonahgraham I asked to reduce API changes to a minimum in order to simplify the potential integration of this PR for the 11.x stream.
Why did I care about 11.x here? Because @iloveeclipse mentioned the next release and our default next release 12.0 is currently discussed to be in November 13, 2024 , that is after SimRel 2024-09 and this may be later than expected by default.
LGTM
Thanks everyone, I just wanted to have the change available in some next release, not necessarily in 11.x. 12.x is fine too. |
I will plan to work on Deprecated Preferences later in a separate PR. For now this PR has no changes pending that were requested by reviewers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only important remark I've got is that we are registering more listeners than we remove. This could lead to the GC would not remove object that could otherwise be discarded.
...ebug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ToggleInstructionStepModeHandler.java
Show resolved
Hide resolved
...ebug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/ToggleInstructionStepModeHandler.java
Outdated
Show resolved
Hide resolved
...lipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CDTDebugPropertyTester.java
Outdated
Show resolved
Hide resolved
9e62158
to
04b95f0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are the last minor remarks I have.
If my fellow committers are happy with this change as-is, I will not block it.
Sorry that I missed these before :S
...lipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CDTDebugPropertyTester.java
Outdated
Show resolved
Hide resolved
...lipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/CDTDebugPropertyTester.java
Outdated
Show resolved
Hide resolved
04b95f0
to
0391f86
Compare
@Torbjorn-Svensson can you please merge once you have re-reviewed. |
ToggleInstructionStepModeCommand. All the contributions of the the action has been replaced ToggleInstructionStepModeCommand. Enabled when introduced. Which enabled the command only when C/CPP application is under debug in Debug View. see eclipse-cdt#865
0391f86
to
1c298c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I just renamed the members of ToggleInstructionStepHandler to be prefix with f
so that it aligns with other code in the same plugin. Will merge this as soon as the build is complete.
Thank you @raghucssit for your contribution! |
All the contributions of the the action ToggleInstructionStepModeAction has been replaced ToggleInstructionStepModeCommand.
Enabled when introduced. Which enabled the command only when C/CPP application is under debug in Debug View.
see #865