Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Debug actions are registered twice

I wonder if the new common gdb plugins I added a few weeks could save the day here.

One thing I question, though....launching a DSF-GDB session and then a CDI-GDB session doesn't result in these actions appearing twice. Why is it happening when your debugger is in the mix?

John

At 10:00 AM 4/27/2010, Mehregani, Navid wrote:
Content-Language: en-US
Content-Type: multipart/related;
         boundary="_004_496565EC904933469F292DDA3F1663E602CB2C5F5Fdlee06enttico_";
         type="multipart/alternative"

I’m just wondering, is there a need to register debug actions ‘Run to Line’, ‘Move to Line’, ‘Resume at Line’, and ‘Add Watch _expression_’ twice in the editor’s context menu?
These actions are registered once in org.eclipse.cdt.debug.ui and again under org.eclipse.cdt.dsf.gdb.ui.  The former plug-in looks for ‘org.eclipse.cdt.debug.ui.debuggerActive’ system property and latter plug-in looks for ‘org.eclipse.cdt.dsf.gdb.ui.debuggerActive’ property in order to display the actions.
 
We have a proprietary debug engine based on DSF.  It doesn’t use GDB at all.  The problem occurs when I start a DSF-GDB debug session, terminate it, and start our custom DSF-based debug session.  This will result in the debug actions getting registered twice:

Back to the top