1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00
Commit graph

1525 commits

Author SHA1 Message Date
Marc Khouzam
2ad68f7f80 Update copyright dates
Change-Id: I94ac38c37657e270f62db9bbd2859c2c6de40e5f
2016-02-11 01:50:14 -05:00
Marc Khouzam
285ec5f755 Move DSF and DSF-GDB plugins to Java 8
Change-Id: I732bddb83d3e4ac33d42713ab92242a63a7fac93
2016-02-11 01:49:49 -05:00
Teodor Madan
eb24d01ad9 Bug 487336 - Add copy text to clipboard action to "OS Resources" view
Change-Id: I3d109ad1194b09f83d3633491c1368255551fd9a
Signed-off-by: Teodor Madan <teodor.madan@nxp.com>
2016-02-10 13:26:57 -05:00
Marc-Andre Laperle
cc71fc2723 dsf-gdb: Disable non-stop tests for targets that do not support it
Change-Id: I4430ba20a56551e4d4de57d8849790761967995a
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-02-08 17:21:29 -05:00
Doug Schaefer
b6dc71f442 Qt - cleanup build cases. Add method to GDBLaunch.
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
2016-02-08 14:05:06 -05:00
Teodor Madan
ce5ec6c178 Bug 486521 - "OS Resources" - allow attaching to selected process
- 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>
2016-02-05 07:07:39 -05:00
Marc Khouzam
766f66c0ab Missing copyright header.
Copyright assigned to company of the committer
who did the first commit of the file.

Change-Id: Ia133694018c798f9558258810982f5276737a0b0
2016-02-01 12:47:41 -05:00
Doug Schaefer
192bfff688 Bug 486509 - Add support for debugging local Qt apps.
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
2016-01-28 11:05:34 -05:00
Marc Khouzam
9f9c54764c Bug 485485 - GDBBackend's Startup/Shutdown sequences are hard to extend
Change-Id: I6232a2d85e25abfdb63b326dafe17e51762fea09
2016-01-25 09:36:13 -05:00
Marc Khouzam
12931d59a7 Remove deprecated method.
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
2016-01-20 23:02:03 -05:00
Marc Khouzam
9d54db2c55 Remove deprecated methods.
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
2016-01-20 23:00:51 -05:00
Marc Khouzam
72352044ae Remove deprecated method.
The method
GDBRunControl_7_0_NS.eventDispatched(ITraceRecordSelectedChangedDMEvent)
was removed;
GDBRunControl_7_2_NS.eventDispatched(ITraceRecordSelectedChangedDMEvent)
should be used instead.

Change-Id: Ic30186e29b4601f1054a5988a6330ec095079253
2016-01-20 22:58:46 -05:00
Marc Khouzam
5af6c7413a Bug 486148: Remove support for Apple GDB
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
2016-01-20 19:17:44 -05:00
Jonah Graham
6d5d0be628 Bug 472765: change from easymock to mockito
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>
2016-01-19 09:56:09 -05:00
Marc Khouzam
b745736775 Incremented CDT features version to 9.0.0
This includes bumping the standalone debugger to 9.0.0

Change-Id: I55fae1cec995b5f6865a5b174c004ed1b76e9bea
2016-01-18 16:37:47 -05:00
Jonah Graham
28b1830acf Bug 484911: Clean up source directors
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>
2016-01-17 10:11:41 -05:00
Jonah Graham
cedcf7655b Bug 472765: more complete tests for source path mapping
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>
2016-01-06 12:46:20 -05:00
Jonah Graham
e9d5637eca Bug 483234: Add a command example to the example plug-in
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>
2016-01-04 09:42:13 -05:00
Marc Khouzam
f3ff649041 Fix copyright of all CDT plugins using the copyright tool from platform.
This commit does not add missing copyrights, just updates the date on
the existing ones.

Change-Id: I646f5afd533a1fcc539bdf2e0686b22f406ecf65
2016-01-03 20:38:31 -05:00
Marc Khouzam
5892f19747 Update GDB download script for 7.10.1
Also fix a bug where the script was
not ready for a two digit version.

Change-Id: Idd3322c46806705e33898a47c79d3ec3c9fc1685
2015-12-14 07:13:30 -05:00
Sergey Prigogin
6ba479a6f2 Cosmetics
Change-Id: I375dfe970de30bf660d7783c52fb809ecdfd84fe
2015-12-04 10:48:21 -08:00
Sergey Prigogin
2df93034f3 Reverted an erroneous change.
This reverts commit 93438cade8.

Change-Id: I98d351ef120960b79cf969fd63c861cc5dc83825
2015-12-04 12:46:26 -05:00
Sergey Grant
93438cade8 Minor code cleanup.
Change-Id: Id546bda87390aa7501b19ce22b3835858df09e51
Signed-off-by: Sergey Grant <sergey.grant@me.com>
2015-12-03 18:43:41 -05:00
Sergey Grant
8360f715eb Bug 474648 - Wrong arguments are passed to a program in debug mode
Change-Id: Ie9ab74e0142c10ad43891febf910e2fb49b2ec61
Signed-off-by: Sergey Grant <sergey.grant@me.com>
2015-12-03 14:43:31 -08:00
Marc Khouzam
56635a1b57 Move @since 4.9 to @since 5.0
Change-Id: I78e8a5652c10e3bf773f6cf92874b121891df4b1
2015-11-27 11:18:33 -05:00
Marc Khouzam
3eb8e4146f Remove deprecated constructor.
The constructor MIThreadGroupExitedEvent(IProcessDMContext, int, String)
has been removed.  MIThreadGroupExitedEvent(IProcessDMContext ctx, int,
MIResult[]) instead.

Change-Id: I1314f63e98b654daab81e30602c14b3e44c7a128
2015-11-25 15:15:41 -05:00
Marc Khouzam
89742720d0 Remove deprecated constructor.
The constructor MITargetAttach(ICommandControlDMContext, String) has be
removed.  MITargetAttach(IMIContainerDMContext, String) or
MITargetAttach(IMIContainerDMContext, String, boolean) should be used
instead.

Correspondingly, the method
CommandFactory.createMITargetAttach(ICommandControlDMContext, String)
was removed.  CommandFactory.createMITargetAttach(IMIContainerDMContext,
String) or CommandFactory.createMITargetAttach(IMIContainerDMContext,
String, boolean) should be used instead.
Change-Id: I2c35f0a7817d135511a851c400d3ad71781afd0c
2015-11-25 15:15:13 -05:00
Marc Khouzam
664185f14a Remove deprecated constructors.
The constructors MIFileExecAndSymbols(ICommandControlDMContext) and
MIFileExecAndSymbols(ICommandControlDMContext, String) where removed.
MIFileExecAndSymbols(IMIContainerDMContext) and
MIFileExecAndSymbols(IMIContainerDMContext, String) should be used
instead.

Change-Id: I1c54599f930430c9640833420256691d01184e76
2015-11-25 15:14:41 -05:00
Marc Khouzam
bf1083842e Remove deprecated classes.
In GDBControl_7_0, the classes InitializationShutdownStep,
CommandMonitoringStep, CommandProcessorsStep, RegisterStep have been
removed; their counterparts, defined in GDBControl, should be used
instead.

Also, the class GDBControl_7_0.ListFeaturesStep now extends
GDBControl.InitializationShutdownStep instead of the removed
GDBControl_7_0.InitializationShutdownStep.

Change-Id: I9365e746ac3cee67abcdc9507dd15e45337a1396
2015-11-25 15:12:26 -05:00
Marc Khouzam
939f543688 Remove deprecated method.
MIVariableManager.MIVariableObject.setExpressionData(String,String,int)
which has been deprecated for over 4 years has been removed.  The method
MIVariableManager.MIVariableObject.setExpressionData(ExpressionInfo,String,int,boolean)
should be used instead.

Change-Id: I3ac346eddd8dc119e725d475481836aa5fbd7d79
2015-11-25 15:11:29 -05:00
Marc Khouzam
65f9144e0f Deprecate method
The method AbstractMIControl.getControlDMContext() has been deprecated.
I has been replaced by ICommandControlService.getContext().  It should
have been deprecated at the same time as when
GDBControl.getControlDMContext() was deprecated, but was forgotten.

Change-Id: Ib568fce51b29455281a3d26b5ace914b9f4dece8
2015-11-25 15:07:20 -05:00
Marc Khouzam
c7a94541e5 Bug 336876: Simplify GDBRunControl_7_2
This will help extend the class for the grouping patch.

Change-Id: I67f392833d6391a97850b184f5c866337dff0aba
2015-11-17 15:12:21 -05:00
Marc Khouzam
7cc28b5400 Bug 480225 - Reduce trace output for "-list-thread-groups --available"
Change-Id: Ief95bb4dc47cb76b40285cd8a809b15f3d0731bf
2015-10-30 16:13:18 -04:00
Marc Khouzam
ca2070f258 Modify properties to make them easier to use.
Also standardize properties names

Change-Id: I4b25f879d8c0b3b1e74b9590905b1a4b0cfe02ca
2015-10-30 13:45:23 -04:00
Marc-Andre Laperle
8b01ed9b2c Add dsf.gdb.tests.timeout.multiplier property to pom.xml
This allows specifying the multiplier on the command line and pass
it along to the tests.

Change-Id: I35cb764a6494a0eb98e5e2205a47522935c2b206
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-10-26 15:43:10 -04:00
Marc Dumais
139e8a6d96 bug 479039 - Move VisualizerVirtualBoundsGraphicObjectTest to
org.eclipse.cdt.dsf.gdb.multicoreVisualizer.ui.tests

Change-Id: Iceed10c7458aceee2560d6066ec052f85f2d9086
2015-10-06 08:31:40 -04:00
Jonah Graham
cc2099c4a0 Bug 478803 and Bug 478805: add tests for source lookup
Change-Id: If47f62a46164e4098e663f1eef1a0a8640a84009
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2015-10-01 22:31:39 +01:00
Marc Khouzam
15935286c0 Replace hack to obtain full path
We can obtain the full path of the executable using
File#getAbsolutePath().  This is much better than the hack that was
actually doing a launch to ask GDB where the binary was.

I cannot explain why I didn't use this in the original implementation.

Change-Id: Ifa0d538919cd0c231547f1f3e9c4b72837df4257
2015-09-25 12:59:20 -04:00
Marc Khouzam
d334be2c61 Remove unnecessary API change
Let's keep the same API as what was released on CDT 8.8

Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-09-17 10:52:05 -04:00
Marc Khouzam
ea49446476 Bug 477610 - Remove any reference to platform .gif files
Change-Id: I1c9ba791154774f54fa2b56de8859dbbfc1b55a2
2015-09-17 10:26:01 -04:00
Simon Marchi
74e4b6d504 Fix MIMemoryTest.java:asynchronousReadWrite for architectures with fWordSize > 1
Commit 84a53f8d80 broke this test for an
architecture with fWordSize == 2.  The buffer for writing a word went from
length fWordSize to 1, and the expected buffer size of a read as well.
This commit fixes it.

Change-Id: Ie50766031fc7dd8d480f126abc48a6dfd487b9e5
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-09-16 09:44:01 -04:00
Marc Khouzam
be95954cdd Have Debug's automated tests use the new GDB 7.10
Change-Id: I6c2d2aa925b0d54add32ec8d8e8f167d4bdd9b6f
2015-09-03 21:01:12 -04:00
Marc Khouzam
6272b4e523 Bug 476432 - GDB version comparison fails for GDB 7.10
Change-Id: I51366e45deabda29a1a5b00166039bad14a146f8
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-09-03 21:00:54 -04:00
Simon Marchi
f505c21a48 Add version 7.10 to GDB download and build script
Change-Id: I5b58beb4fd628392461ebca55caa0724a154e147
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-08-31 10:49:13 -04:00
Jon Beniston
708d6a6318 Bug 417895. Use tab instead of space between opcode and operand.
This makes the disassembly easier to read.

Change-Id: I5f7d737f321aa05f5056a74af70794ee618f323c
Signed-off-by: Jon Beniston <jon@beniston.com>
2015-08-25 09:11:16 -04:00
Marc Khouzam
03f2299797 Simple changes for Sonar warnings
Change-Id: Idba9a9fcbdb0c606cf8a94bf23ac65aa942a6e5a
2015-08-17 18:50:42 -04:00
Marc Khouzam
d185083407 Simple changes for Sonar warnings
Change-Id: I990473a9c4d86d2aeb8e36b0ac466a15f42329df
2015-08-17 18:50:28 -04:00
Marc Khouzam
20702b3045 Simple changes for Sonar warnings
Change-Id: I6f99d9fa808a52e3b6d925e695ff74424120c4ce
2015-08-17 09:28:43 -04:00
Marc Khouzam
22fb739c9b Simple changes for Sonar warnings
Change-Id: Ic47b9cef191d1f59514327cdb2f612869da12b16
2015-08-17 09:27:51 -04:00
Marc Khouzam
f8292e1bc4 Simple changes for Sonar warnings
Change-Id: I180c828485beccd7944c61a8e58d42b909333a41
2015-08-17 09:27:31 -04:00