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

1349 commits

Author SHA1 Message Date
raddepal
4a54e2269f Bug 488660 - Refresh reverse toggle on console changes with GDB 7.10
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>
2016-03-04 07:26:20 -05:00
Marc Dumais
76dee8f4d1 Bug 487128 - Attaching to process errors not propagated to user
Change-Id: Idfa8808e2d50384d491ac9dbc6492570182880f2
2016-03-03 10:56:47 -05:00
Marc Dumais
a21b4f2331 Bug 488874 - attach dialog sometimes does not appear, because no active
shell is found

Change-Id: I039c90677152efe1611049d11cd9b6102c99f86b
2016-03-03 10:54:36 -05:00
Teodor Madan
f29de7cedd Bug 487682 - refuse process selection for already connected process
- 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>
2016-03-03 09:51:24 -05:00
Marc Khouzam
4f5cccde8a Cosmetics
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2016-02-28 21:25:07 -05:00
Marc Khouzam
21e303d976 Bug 487128: Errors when starting a new process is not propagated to user
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
2016-02-27 21:16:22 -05:00
Marc Khouzam
c1c656bda8 Cosmetics
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2016-02-27 10:43:34 -05:00
Marc Khouzam
e6e50c16fb Cosmetics
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2016-02-27 07:46:50 -05:00
Marc Khouzam
231dae5323 Cosmetics
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2016-02-25 16:27:16 -05:00
Marc Khouzam
39f31d42a3 Remove unnecessary setting of GDB version for non-stop tests.
Non-stop tests inherit from their all-stop counterpart which already
sets the GDB version.

Change-Id: I7444372971a9a74536745279fddac32842c46c03
2016-02-25 11:18:23 -05:00
raddepal
3be258d79b Bug 478740: Add Switch off tracing option
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>
2016-02-25 09:21:01 -05:00
Marc Khouzam
79e0972413 Add Inferior exit code test
Simple test to verify that the exit code of a process is properly set
for the console to read.

Change-Id: Ib7dca7a86732ad119dd57bb2681120d4a6222e5c
2016-02-25 09:09:25 -05:00
Marc Khouzam
c28c12b353 Create DSF-GDB tests for GDB 7.11
Change-Id: Ib46fc78a9f9167c21898b925b7fe9f614adea289
2016-02-25 09:06:43 -05:00
Marc Khouzam
8c0ea6af0b Update script for GDB 7.11
Change-Id: Ia127aadc5fdf0989b7ac4f213c3596da141a2e79
2016-02-24 16:14:51 -05:00
Jonah Graham
84d92dce1f Bug 472765: Fix occasional exception during test
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>
2016-02-24 13:19:42 -05:00
Marc Khouzam
9e5888fb37 Bug 478740: Remove Reverse Debug dialog preference
Change-Id: I2a7f668ebc50bac6047395e0ca0e4eb7668cc863
2016-02-23 10:01:04 -05:00
Marc Khouzam
3d65c3474a Missing @since tags
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2016-02-22 20:39:59 -05:00
Marc Khouzam
ffffd11890 Bug 456116 - Cannot use class fields in GdbLaunchDelegate
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
2016-02-22 13:16:07 -05:00
Marc Khouzam
c170288dc4 Bug 478740: Cleanup debugger tab
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
2016-02-22 09:48:11 -05:00
Marc Khouzam
fa5bc53607 Bug 478740: Re-order constants
Change-Id: I49a584f3f58794718a9eb97c6f8a98fc0b3ca35d
2016-02-19 14:22:51 -05:00
raddepal
5aa4380050 Bug 478740: Changes for supporting Hardware Reverse Debugging
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>
2016-02-19 10:17:35 -05:00
Marc Khouzam
a3eb9edc59 Remove deprecated medthods.
GDBBackend.getGDBCommandLine() and GDBBackend.launchGDBProcess(String)
have been removed.

GDBBackend.getGDBCommandLineArray() and
GDBBackend.launchGDBProcess(String[]) should be used instead.

Change-Id: I50b118a0dfeef5c427c61ba5a9b38662cbe9748f
2016-02-17 06:19:00 -05:00
Marc Dumais
8ab12fa4e2 Bug 487762 - [tests] MIRegistersTests # frameSpecificValues() - fix
platform-dependent failure

Change-Id: I7bfe1b952ac97615f93ee63770f33b66a5cb9d3e
2016-02-15 10:01:41 -05:00
Teodor Madan
11eefb48b1 Bug 487144 - do not attach process if it is already targetted.
Change-Id: I76f1ad04cb9e7ce2e3dd16cb9f2a694af15e40ce
Signed-off-by: Teodor Madan <teodor.madan@nxp.com>
2016-02-11 16:53:47 -05:00
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