| Summary: | GDB Hardware Debugging options "Reset and Delay" and "Halt" in Startup tab have no effect on remote target | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Artem Pisarenko <artymen> | ||||
| Component: | cdt-debug | Assignee: | John Dallaway <john> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Ken Ryall <ken.ryall> | ||||
| Severity: | minor | ||||||
| Priority: | P3 | CC: | cdtdoug, john, jonah, lucdono, pawel.1.piech | ||||
| Version: | 8.0 | ||||||
| Target Milestone: | 9.4.0 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| See Also: |
https://git.eclipse.org/r/110885 https://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=ebbe75d37f5b39a2815f82d07a08ea0602582451 |
||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Artem Pisarenko
At minimum, the GDB Hardware Debugging launch configuration should report when a requested launch command is not defined rather than ignoring the request. New Gerrit change created: https://git.eclipse.org/r/110885 Gerrit change https://git.eclipse.org/r/110885 was merged to [master]. Commit: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=ebbe75d37f5b39a2815f82d07a08ea0602582451 Gerrit change https://git.eclipse.org/r/110885 was merged to [master]. Commit: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=ebbe75d37f5b39a2815f82d07a08ea0602582451 Hi All, as far as I see from the code, the implementation of the GenericDevice always sets an error if the command list is empty. IMHO a warning should be enough, without stopping the debug session to work at all. If you use a Generic TCP/IP device (i.e. connecting to an external server), you will not be able to debug at all. (please see the attached screenshot). Please let me know your comments. Regards, L Created attachment 272505 [details]
Reset command not defined for Generic TCP/IP device
Luca, the behaviour (described by the originator of this ticket) where a user enables "Reset and Delay" or "Halt" within the user interface but these selections are ignored on launch can be highly confusing. Ideally, these user interface elements would be disabled where not supported by the selected JTAG device, but usability issues arise when it is not obvious why a user interface element is disabled and how it may be enabled. At present, JTAG device selection is on a different page of the launch configuration dialog. Also, the existing software architecture does not readily allow support for the "Reset and Delay" or "Halt" commands to be determined prior to launch. The current implementation does make it clear that the user will not get what has been requested. It is still possible to debug using the "Generic TCP/IP" JTAG device simply by ensuring that both "Reset and Delay" and "Halt" boxes are unchecked. These are the default settings. Hi John, thanks for your reply. Understood. Regards, Luca If you have seen over the "Reset Command not defined for device 'Generic TCP/IP'" then See Bug 529171 Comment 9 as there is a plan to change the defaults so that this error does not occur. |