The patch implements the event handler which
queries the trace method and triggers the necessary
update in the command handler.
Change-Id: I9c1827deb56dce099b7f455e942d1b6735a80643
Signed-off-by: raddepal <ravitheja.addepally@intel.com>
Signed-off-by: ravitheja.addepally <ravitheja.addepally@intel.com>
- Extend query for already connected process to all sessions for local
session types
Change-Id: I36591ff96d28977b4670700a2a2eb92c34945c7a
Signed-off-by: Teodor Madan <teodor.madan@nxp.com>
This is a follow-up to the work done to show errors when attaching to
processes. We were also not showing errors when trying to start a new
process using the "Debug new executable..." context menu option of the
debug view.
Change-Id: I9f68410b6d41a28df6f76f63b091a049a38b14e9
This patch adds the "Switch Off Tracing" option to
the select reverse debugging method pull down menu.
Change-Id: Ib184c1f4c1d1db781bea4468bc8c939bd27db27d
Signed-off-by: raddepal <ravitheja.addepally@intel.com>
There was a race condition between commandTimedOutDuringSession
finishing and the next test starting that checked for unterminated
launches (in BaseTestCase removeTeminatedLaunchesBeforeTest).
While commandTimedOutDuringSession did wait for the shutdown to be
received (ICommandControlShutdownDMEvent), that can happen a few ms
before the launch is fully terminated (fLaunch.isTerminated() == true)
Change-Id: Ib4e6655938f6b0e3ab3ce89fd06528f1b72ee04d
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
The protected method GdbLaunchDelegate.cleanupLaunch() has been removed.
It has been replaced with GdbLaunchDelegate.cleanupLaunch(ILaunch).
The complexity about not using a class field in GdbLaunchDelegate is that
throughout the process of launching a session, we must be ready to cleanup
the GdbLaunch object. The problem is that the platform does not provide
that launch object in the methods preLaunchCheck() and finalLaunchCheck(),
so we needed to store the launch object in a field.
This patch delays the call to GdbLaunch.initialize() so that we don't need
to cleanup the launch object if preLaunchCheck() and finalLaunchCheck()
abort the launch. One hurdle was that we still needed to create the DsfSession
when constructing GdbLaunch, so still needed to clean it up. This patch adds
a check in GdbLaunch itself, when the launch is removed, to cleanup any
lingering DsfSession automatically.
I've tested every path that aborts the launch in GdbLaunchDelegate and
confirmed that things are properly disposed of in every case.
Change-Id: Ie2981a843917b464f1785a477871073227e027c3
This patch cleans up the debugger tab and puts the new ReverseMode
dropdown box on the same line as the reverse checkbox.
The patch also decouples the gdb and gdbinit boxes (which require three
columns) from the other options (which require one or two columns). This
will make modifying options simpler and more versatile.
Change-Id: I11909ed72237128f354dbf05ab3ba1de062aad2f
The original toggle button for reverse debugging
has been modified to a pulldown menu for selecting
between hardware and software methods along with all necessary support.
Change-Id: I2e4d97c46950253986d427cb87cda66b820744c9
Signed-off-by: raddepal <ravitheja.addepally@intel.com>
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
GDBBackend.getGDBCommandLine() and GDBBackend.launchGDBProcess(String)
have been removed.
GDBBackend.getGDBCommandLineArray() and
GDBBackend.launchGDBProcess(String[]) should be used instead.
Change-Id: I50b118a0dfeef5c427c61ba5a9b38662cbe9748f
Clean up cases when Qt installs aren't registered for a given
config. Fix bug on first scanner info request in build config.
Clean up the Qt Run launch delegate in extension.
Also added a method to GDBLaunch to allow subclasses to override
what the default gdb path is.
Change-Id: Icf158633e1c1327cc87ce59c1605bb26258f8708
- Extend OSView to provide a structured selection of
IResourcesInformation
- Add Connect process handler in view toolbar.
- Add Connect process handler in selection pop-up menu
Change-Id: I9e2ca4bafc72d035f78cbbe87ee6ff0f56f6ae22
Signed-off-by: Teodor Madan <teodor.madan@nxp.com>
We reuse GDBLaunch but need to override some settings that are
normally in the launch configuration. These things are calculated
at launch time.
Note there is also an added dependency to the launch bar core
to make GDBLaunch a targeted launch so we can set the target properly.
At some point we'll move this launch target stuff lower down, maybe
to the debug platform.
Change-Id: Ibbf6b794a9ecf25b79d46093cc624ea69dc04641
GdbLaunchDelegate.newServiceFactory(String) has been deprecated for 4
years and has now been removed. It has been replaced with
GdbLaunchDelegate.newServiceFactory(ILaunchConfiguration, String)
Change-Id: Ida8e164da48fcd9d26baf1c77efef7b207ef7565
The methods
MIDataListRegisterValues.MIDataListRegisterValues(IMIExecutionDMContext,
int) and
MIDataListRegisterValues.MIDataListRegisterValues(IMIExecutionDMContext,
int, int[]) have been deprecated for over two years and have been
removed. Callers should instead the methods of the same name but
passing in an IFrameDMContext instead of an IMIExecutionDMContext.
Following that change, the methods
CommandFactory.MIDataListRegisterValues(IMIExecutionDMContext, int) and
CommandFactory.MIDataListRegisterValues(IMIExecutionDMContext, int,
int[]) have also been removed, and their corresponding methods using
IFrameDMContext should be used instead.
Change-Id: Ifa518b9a113dadb9d3dc44d803d8c3819afe810c
The method
GDBRunControl_7_0_NS.eventDispatched(ITraceRecordSelectedChangedDMEvent)
was removed;
GDBRunControl_7_2_NS.eventDispatched(ITraceRecordSelectedChangedDMEvent)
should be used instead.
Change-Id: Ic30186e29b4601f1054a5988a6330ec095079253
The following macos packages were removed:
org.eclipse.cdt.dsf.gdb.service.macos,
org.eclipse.cdt.dsf.mi.service.command.commands.macos,
org.eclipse.cdt.dsf.mi.service.command.output.macos
org.eclipse.cdt.debug.gdbjtag.core.dsf.gdb.service.macos
The following classes, contained in the above packages are now removed:
MacOSCommandFactory.java
MacOSGDBProcesses.java
MacOSGDBRunControl.java
MacOSGdbDebugServicesFactory.java
MacOSMIEnvironmentCD.java
MacOSMIVarUpdate.java
MacOSMIVarUpdateInfo.java
MacOSGdbJtagDebugServicesFactory.java
The constant LaunchUtils.MACOS_GDB_MARKER was removed.
Change-Id: Iea54886a02015dd0b11678a0cd5d911bed129485
Due to improvements in target platform in 12843ef it is now possible to
use mockito instead of easymock. This commit does that switch.
Note because of Bug 334540 we need to explicitly require the org.hamcrest
bundle so that it resolves. From the bug, Matthias Sohn says in Comment 1:
"I would just use Require-Bundle to get around this."
Change-Id: Ib49a767c826aa04f4daf1de0bf1b25a4f8ae07ba
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
Includes:
- CSourceLookupParticipant only did one useful thing (For DSF). When the
object being looked up is a String, as is the case when disassembly
view/editor is doing a lookup, the CSourceLookupParticipant would be the
one to do the resolution. Updated
DsfSourceLookupParticipant.getSourceName to be able to handle a String
- Changed super of DsfSourceLookupParticipant to
AbstractSourceLookupParticipant, saves duplicate code, and adds comment
about what is different about findSourceElements
- a previously missing test for an unusual case (no containers)
- Some of these methods that are only part of CDI have been
marked as such for eventual removal in Bug 484900
Change-Id: I9954b4469e9db9cb46eb117f3beba9e01634689b
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
Add some more tests for source path mappings to ensure that the upcoming
change of using gdb's set substitute-path does not regress any issues.
Change-Id: I9067c8859293c3332439679cb1f663e36a4cc34e
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
A new command, ShowVersionHandler, has been added to the plug-in to
demonstrate all the pieces that need to be put in place to connect
a command to a DSF session.
Change-Id: Iefde0ba144c12ce2e580da7717b390258c0d3675
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
The constructor MIThreadGroupExitedEvent(IProcessDMContext, int, String)
has been removed. MIThreadGroupExitedEvent(IProcessDMContext ctx, int,
MIResult[]) instead.
Change-Id: I1314f63e98b654daab81e30602c14b3e44c7a128