Bug 201808 - "inferior is already running" exception keep the plug-in to restart the debug event listener
Summary: "inferior is already running" exception keep the plug-in to restart the debug...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: SOC (show other bugs)
Version: unspecified   Edit
Hardware: Other All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Summer Of Code 2007 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2007-08-30 18:30 EDT by Mariot Chauvin CLA
Modified: 2011-01-18 14:50 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mariot Chauvin CLA 2007-08-30 18:30:32 EDT
The resume() method from org.eclipse.cdt.debug.mi.core.cdi.model.Target [1] could return an exception if the inferior (i.e the process being debugged) is already in running state (i.e not in suspend state).

The fix seems easy (only catch this exception) but the strange behaviour is that it occurs only when a debug session is started a second time. I will leave this bug as open until I find the reason get more explanation from someone (may be a cdt guy ?)

Does it come from CDT or from gdb attach command itself (but "The first thing GDB does after arranging to debug the specified process is to stop it" [2]) ?

more infos :

[1] http://www.koders.com/java/fidBAA822FB9978040C467604730F0834F2F96E0F3C.aspx?s=Inferior_already_running#L356 

[2] http://www1.jct.ac.il/cc-res/online-doc/gdb/gdb_23.html