-
Notifications
You must be signed in to change notification settings - Fork 207
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
Allows launch config to override launch target connection type #625
Conversation
Hi @jonahgraham , I'm not sure how to test this! JUnit: I've investigated this a bit and it looks doable, but not sure whether it's worth it [2] Do you have any advice please? [1] Manual test In Preferences > Core Build Toolchains, the auto detected GCC is shown: In Preferences > CMake, I downloaded an example CMake toolchain file (MSYS2.cmake) from internet and added it to the toolchain above. CMake I created a new Generic Target launch target: I built the project. An executable was successfully generated. Click Launch Bar Run (Launch in Run mode) button [2] Junit GdbLaunchDelegate.getLaunch(ILaunchConfiguration, String) And then set the launch target using GdbLaunch.setLaunchTarget(ILaunchTarget) Then setup a launch configuration which includes IGDBLaunchConfigurationConstants.ATTR_REMOTE_TCP attr set to true. Then launch and inspect whether the FinalLaunchSequence.stepRemoteConnection(RequestMonitor) indeed attempts a isTcpConnection rather than a serial connect. [Not sure how to detect this] |
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 change lgtm - I can merge it after I branch which is in the new few days.
My feeling for a test here is that a lot of scaffolding is probably needed to automate this test. I suspect the dev effort required to do it for this change doesn't warrant it. But I think we should make sure that at least a manual test runs, even if it is just for the default case where the attribute is not in the launch already. From your description it sounds like this has exposed other problems with the cmake integration. Some of them may already be reported in this query
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.
@betamaxbandit and I had a call about this and we verified that the behavior wasn't regressing as requested. So this is good to go. I am going to rebase the change to make sure there are no conflicts/issues
When launching a GDB debug session using the Launch Bar and a Launch Target, now the launch takes into account a REMOTE_TCP value in the launch configuration before considering the type of the Launch Target. Improves the change submitted in: Bug 547881 - Allow targets to set ATTR_REMOTE_TCP Fixes issue eclipse-cdt#622
Thanks @betamaxbandit for this fix. |
When launching a GDB debug session using the Launch Bar and a Launch Target, now the launch takes into account a REMOTE_TCP value in the launch configuration before considering the type of the Launch Target.
Improves the change submitted in:
Bug 547881 - Allow targets to set ATTR_REMOTE_TCP
Fixes issue #622