Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334110 - Restart not working in GDB Hardware Debugging
Summary: Restart not working in GDB Hardware Debugging
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 9.4.0   Edit
Assignee: John Dallaway CLA
QA Contact: Ken Ryall CLA
URL:
Whiteboard:
Keywords:
: 257357 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-01-12 09:43 EST by Marco Vedovati CLA
Modified: 2017-10-25 15:32 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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