Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 334110

Summary: Restart not working in GDB Hardware Debugging
Product: [Tools] CDT Reporter: Marco Vedovati <marco.v83>
Component: cdt-debugAssignee: John Dallaway <john>
Status: RESOLVED FIXED QA Contact: Ken Ryall <ken.ryall>
Severity: normal    
Priority: P3 CC: cdtdoug, harm.verhagen, john, jon, pawel.1.piech, support_jlink
Version: 8.0   
Target Milestone: 9.4.0   
Hardware: PC   
OS: Windows XP   
See Also: https://git.eclipse.org/r/110445
https://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=a80f50a7259485586097ba1d987feefde1643d9c
Whiteboard:

Description Marco Vedovati CLA 2011-01-12 09:43:13 EST
Build Identifier: 20100917-0705

In debug perspective, when you restart the debugged application an error window message appears:

Target request failed: The "remote" target does not support "run". Try "help target" or "continue".

It should be possible to change the predefined "run" command to something customizable (i.e. monitor commands) so that restart is possible without relaunching the debug session.


Reproducible: Always

Steps to Reproduce:
1.Setup a GDB Hardware Debug session with remote gdbserver.
2.Launch the debug session.
3.Right-click on the debugged application that is listed in the "Debug" window and select "Restart".
Comment 1 Johannes Lask CLA 2014-05-08 13:16:16 EDT
With current version (8.3.0.201402142303),
the message does not show up in an error window, but is only visible in the 'gdb traces',
leading the user to the assumption restart worked.

GDB Hardware Debugging sessions are 'remote' targets,
but the launch configuration does not set "org.eclipse.cdt.launch.DEBUGGER_START_MODE" to "remote".
On the other hand, this would disable the complete 'restart'.

Better solution would be to have a sequence for the restart behavior.
Comment 2 John Dallaway CLA 2017-10-20 06:33:20 EDT
*** Bug 257357 has been marked as a duplicate of this bug. ***
Comment 3 John Dallaway CLA 2017-10-20 07:25:26 EDT
In the general case, restarting a "GDB Hardware Debugging" debug session without a full relaunch is not possible. The complete launch sequence may be required to restore correct target state. The "Restart" action should be disabled for "GDB Hardware Debugging" launches as it is for "C/C++ Remote Application" launches.
Comment 4 Eclipse Genie CLA 2017-10-20 08:04:59 EDT
New Gerrit change created: https://git.eclipse.org/r/110445