Yes, I’ve noticed that
too. Likely has something to do with the fact that our debugger is
based on DSF.
I have no idea where ‘org.eclipse.cdt.dsf.gdb.ui.debuggerActive’
property is set and cleared. May be (just a guess), this property doesn’t
get cleared when we launch our custom debug session?!
I’m really curious whether it’s
necessary to register these actions twice.
Other non-GDB-based-debuggers should be
able to make use of these contributions so I’m not sure if it makes sense
to move them to the common gdb plugins. It sort of makes sense for them
to be in cdt.debug.ui.
- Navid
From: cdt-dev-bounces@xxxxxxxxxxx
[mailto:cdt-dev-bounces@xxxxxxxxxxx] On
Behalf Of John Cortell
Sent: Tuesday, April 27, 2010
11:13 AM
To: CDT
General developers list.; CDT
General developers list.
Subject: 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"
Im 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 editors 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 doesnt 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: