1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 14:12:10 +02:00
Commit graph

3656 commits

Author SHA1 Message Date
Jonah Graham
93155eceba Bug 472765: User documentation for Path Mapping
Change-Id: Ida009cc85c0b35845bd2c6db19a7e23a0a37f700
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-04-13 10:41:46 -05:00
Jonah Graham
64da973dcf Bug 472765: Delete dead classes
MappingSourceContainerBrowser has long since replaced
with NewMappingSourceContainerBrowser.

PathMappingDialog has long since replaced
with MappingSourceContainerDialog.

Change-Id: I67bd6640d5e75608c9b3d616285914987ff38f98
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-04-13 16:07:31 +01:00
Marc-Andre Laperle
7afdc50165 Fix Stand-alone debugger SWTBot test
A bug was fixed in SWTBot and it doesn't throw
IndexOutOfBoundsException anymore. A test was relying on that.

Change-Id: I807aaa773b8544172cf33cbf1a04583fe171bd51
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-04-12 13:51:21 -04:00
Jonah Graham
4d53a33882 Bug 472765 and Bug 386675: Deprecate/comment on problem with createPath 2016-04-12 15:23:18 +01:00
Jonah Graham
a925a51cf4 Bug 472765: Better wording on label
Change-Id: Idd391767ac152410f9b01fbe47febcbeae3f2d00
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-04-08 14:08:43 +01:00
Mat Booth
a896eee7e9 Bug 490995 - [tests] autotools.tests and debug.app.tests bundles have missing resources
Change-Id: Icc5d446c00c1d52178440362c49d4cf7325825c2
Signed-off-by: Mat Booth <mat.booth@redhat.com>
2016-04-05 07:46:04 -05:00
Marc-Andre Laperle
75c2dcebf9 Stand-alone debugger for Mac OS X
This commits adds support for the stand-alone debugger on Mac OS X
for both the RCP (product) and the script. The script had to be
modified slightly because of the different installation layout on Mac
and also the use of non-standard arguments to the 'find' command.

Change-Id: I24e4fec98803689dbaadb1dcfa651e431d4188a7
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-04-02 22:59:15 -04:00
Marc-Andre Laperle
f4a98d1894 Add missing launchbar.core depedency to stand-alone debugger script
The depedency was added to the product before but not to the script.
This means the stand-alone debugger worked in the form of the
product but not the script bundled as part of other Eclipse products.

Change-Id: I3e9da14a7522524a6bec73d3d9e9d22263f17093
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-04-02 22:59:15 -04:00
Marc Khouzam
a08b9582d3 Add javadoc
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2016-03-29 10:34:50 -04:00
Marc Khouzam
6d5e31038c Bug 488661: Simplification of reverse debugging code
Most changes are cosmetics (name of local variables, javadoc, etc).
The note-worthy ones are:

1- Change terminology in IChangeReverseMethodHandler to be a little clearer.
This causes changes in multiple files, but it was all automated.

2- Remove ReverseDebugMethod.INVALID which was used as an error code
and not a ReverseDebugMethod value.

3- In GdbReverseToggleCommand, provide a different error message
if there is a failure to set ProcessTrace vs BranchTrace and tell user what to do.

4- Reworked GdbReverseToggleCommand#getReverseDebugMethod in attempt
to make the code easier to understand.  No actual change in functionality.

Change-Id: Ibdc14faff1220e6a20319644b49e641c2101e762
2016-03-29 08:59:41 -05:00
raddepal
7a73b0035f Bug 488661 - Moving the last trace method to GdbReverseToggleCommand
This patch solves Bug 488661 by moving last trace method to
GdbReverseToggleCommand. Since it is instantiated on a per session
basis.


Change-Id: Idafa196c7af36373ca08d5fc7de63024fe824c2b
Signed-off-by: raddepal <ravitheja.addepally@intel.com>
2016-03-23 08:56:19 -05:00
Jonah Graham
a56abb4783 Bug 472765: use Strings for backend path in Map Entries
Preserve the user supplied backend path as a string so that it matches
what GDB (backend) later reports as a file name to resolve.

Condensed history:

Traditionally in source mapping container, the backend path was stored
as an IPath and that was used to compare against the debug information
being returned by GDB. This worked well when the platform compiled for
matched the platform run on, but when there was Windows/Linux together
that did not work. So as part of Bug 393791 a workaround was done to try
and use hand crafted MapEntrySourceContainer.createPath() instead of
Path constructor to preserve some of the differences. This solution had
its limitations too as UNC paths still could not be represented, See
open Bug 386675.

Change-Id: I4c8f62114a2c6019dc9d07ce446ac424be8b230c
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-03-19 19:44:19 -04:00
Marc Khouzam
fe9da55512 Fix Standalone Debugger for Neon M6
The plugin org.eclipse.core.filesystem.java7 no longer exists.

Change-Id: Id879e1137e59076ae358cd58a8f27aac9a6cc87e
2016-03-18 15:45:25 -04:00
Jonah Graham
a29e37cffc Bug 484900: Cleanup of CSourceLookupDirector post CDI removal
CSourceLookupDirector is internal and had a number of methods only
referenced from CDI.

Change-Id: Ia3052ee5f7009f68984e7b02e7785d76c2c15b0d
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-03-16 22:42:33 -04:00
Jonah Graham
6283890715 Bug 472765: Use gdb's "set substitute-path from to"
Add support for gdb's "set substitute-path from to" by adding a new
service called GDBSourceLookup that uses GDB to perform the path
mapping.

The new GDBSourceLookup service uses the new GdbSourceLookupDirector to
get the set of paths that need mapping using GDB's "set
substitute-path" and the director resolves compilation path differently
so as to leave the GDB backend to handle the local path to compile path
resolution.

The MappingSourceContainer has been enhanced to allow a per mapping
container override of the new behaviour. This is a fallback as the
default behaviour when using GDB is to use "set substitute-path".

The MappingSourceContainerDialog exposes the new option in
MappingSourceContainer as a checkbox at the bottom of the path mapping
dialog in a backend agnostic way.

The new code is tested in methods called "sourceSubstitute*" and
mirror the same tests for the now non-backend handled version
which are "sourceMapping*". Note that
doMappingAndLaunch/doSubstituteAndLaunch have been updated to explicitly
check or uncheck the setIsMappingWithBackendEnabled setting

Change-Id: I122d7c597cd461d8e38c4f82522ccfdf9e51a5ba
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-03-16 22:30:51 -04:00
Marc Khouzam
df63a59b53 Remove o.e.cdt.core.linux.ai64 and o.e.cdt.core.qnx
Remove the entire two plugins and the two references I could find to
them.

Change-Id: I0ab7f24503b737f5cf711616a1eabd1f59d092f0
2016-03-16 13:13:33 -04:00
Alena Laskavaia
bb0ba6fd91 Bug 489455 - Add new breakpoint action to run arbitrary debugger command
This is generic support for debugger commands though mi console bridge,
should be not gdb specific (have a simple gdb implementation though)

We add new breakpoint action called "Debugger Command"
Interface allows to enter arbitrary string(s)
This is interpreted by debugger as it see fit
For gdb implementation these are cli commands


Change-Id: I20ca0b8b094c724e1cf8b0691f4f6cab84a3737d
2016-03-16 11:24:20 -04:00
Jesper Eskilson
eac2f92bb4 Fixed warnings: do not call MessageFormat#format(...) with String[].
Change-Id: I3da681e323cfeb0c1c07a669183e6d1d18ca6ff6
Signed-off-by: Jesper Eskilson <jesper.eskilson@iar.com>
2016-03-14 13:41:59 -04:00
Marc Khouzam
d11328fb9c Remove p2 plugin
Change-Id: I5a2dcb281c8d3596aca97c0df0f2cc76997a39fa
2016-03-14 10:19:21 -05:00
Jonah Graham
ff7f25b94d Bug 484900: Remove Majority of CDI classes
This is the first change to remove CDI from CDT. The CDI model
implementation is removed along with everything that directly
depends upon the implementation.

This commit does not include refactoring or moving classes. The few
insertions are the minimum necessary.

Change-Id: I80274e1a0d77bc7bb00a2afe4babc00c4f7613ae
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-03-08 19:18:05 -05:00
Marc Khouzam
4175b5a1a4 Bug 478740: Simplify user-facing terminology
I got some user feedback about some terminology they didn't quite
understand and this patch tries to address the issues by:
- Simplifying the name of the reverse debugging options.
- Simplifying the preference page.

The patch aslo removes un-used strings in plugin.properties.

Change-Id: I1e4487eeda23f81d391ef11ddbe7dd6feba401ec
2016-03-04 09:54:30 -05:00
Marc Khouzam
038783cf5f Bug 487121 - Remove "connect" button from the Debug View toolbar
Change-Id: I99e096e759eaf7d56b4d64a75bbed6d1833b714d
2016-03-03 10:02:12 -05:00
Marc Khouzam
2befa91f27 Bug 478740: Cleanup reverse toggle image handling
Change-Id: I5b7eae467179b4cd34d9633bc217a48cf729fd87
2016-02-28 23:13:55 -05:00
Marc Khouzam
4c731e0fa7 Bug 478740: Attempt to make reverse icons more informative
Change-Id: Ic855694867be3f66eeb627695ec45ba7a333e8f8
2016-02-26 08:27:51 -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
9e5888fb37 Bug 478740: Remove Reverse Debug dialog preference
Change-Id: I2a7f668ebc50bac6047395e0ca0e4eb7668cc863
2016-02-23 10:01:04 -05:00
Marc Khouzam
aff7275044 Bug 478740: Missing externalized strings
Change-Id: Ia343d2c055e167fe093586aca32a209b4a8a1c11
2016-02-23 09:52:37 -05:00
Marc Khouzam
e3f7a7dd7f Cosmetics
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2016-02-22 20:43:55 -05:00
Marc Khouzam
8f8f6748fe Cosmetics
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2016-02-22 10:46:43 -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
Sergey Prigogin
728fd554e4 Incremented version of org.eclipse.cdt.core to 6.0.
Change-Id: I059e7eba9eff7f24c84e08a1cbf658381aaaf19d
2016-02-17 10:28:26 -08:00
Marc Khouzam
2ad68f7f80 Update copyright dates
Change-Id: I94ac38c37657e270f62db9bbd2859c2c6de40e5f
2016-02-11 01:50:14 -05:00
Marc-Andre Laperle
e0d3dc82ba stand-alone debugger: Use rcp repository for creating the products
With this option, the build implicitly verifies that it would also
be possible to install the product (and its plugins) from that
repository.

This means that it provides some basic sanity check for plugin
dependencies.

For example, this would have uncovered the missing dependency to
launchbar.core fixed here: https://git.eclipse.org/r/65572

See
https://eclipse.org/tycho/sitedocs/tycho-p2/tycho-p2-director-plugin/materialize-products-mojo.html#source

Change-Id: I77382bb99b95784b18892cabe545c039d568ff01
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-02-02 13:25:18 -05:00
Marc-Andre Laperle
d1bb47e1ee stand-alone debugger: Add missing launchbar dependency
dsf-gdb now requires launchbar.core

Change-Id: Ia88aaebefb165ae76cdca355e72f2aba4e6d0a0c
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-02-01 16:43:57 -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
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-Andre Laperle
1c258538de Remore unused New New Wizard
This code is not used and hasn't been touched since 2012.
Now it can be referred as the "old new new wizard".

Change-Id: Iccc60651a8233a5ef5b138dfcc334cfcf926d109
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-12-28 13:20:43 -05:00
Alexander Kurtakov
8a834d5970 Cleanups.
Remove useless:
* casts.
* suppress warnings unchecked.
* @see comments 

Change-Id: I4713e9ddf90195cf1e465b3743f5f0bc7e41d338
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-14 11:06:00 +02:00
Sergey Prigogin
871e7abcd0 Cosmetics.
Change-Id: I3bdff42323e40f5440b20bfde2efa7658f0d680b
2015-12-10 18:53:15 -08:00
Sergey Prigogin
992e4b61eb Cosmetics. 2015-12-10 18:42:06 -08:00
Sergey Prigogin
e2f375fc86 Code cleanup.
Change-Id: I8425c6995bad38758234a2bdb43f5bab8cb244d7
2015-12-03 18:59:45 -08:00
Alena Laskavaia
9e38beb510 incorrect source lookup fallback when file is not in workspace
Change-Id: I9f7c5f3c46a26053123d28f30a7b8712eb8c9254
2015-11-25 20:46:02 -05:00
Marc Khouzam
0a04f1aba9 Remove visualizer plugins from Stand-alone RCP debugger
The RCP stand-alone debugger does not have the multicore visualizer
plugins but does have the visualizer plugins.  That means a user can
open the Visualizer view but nothing will display.

We could either add the multicore visualizer plugins or remove the
visualizer plugins.  To follow what the stand-alone script does, this
patch removes the visualizer plugins.

Change-Id: I90075c7fc5c87f21c0b697f81c45abf1d0395218
2015-10-28 14:32:29 -04:00
Marc-Andre Laperle
98dee4063b Remove some unused images in documentation plugins
I used a simple script:

    for every file name of a given extension {
      grep for the file name usage
      if no result {
         delete it!
      }
    }

I only deleted things under the documentation plugins, to be safe.
This results in about 8MB of deleted images.

Change-Id: I566b8b1ff396b67689d273fc6e827dd3a02ad991
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-10-16 18:19:52 -04:00
Marc-Andre Laperle
803bf0db80 Bug 458771 - Cannot refresh an editor in standalone debugger
-Add Refresh command to File menu.
-Enable 'Refresh on Access' by default, like Eclipse for C/C++ package
-Reorder the File menu a bit so that Exit is last

Change-Id: I3636cd20da1a2523ca1574674cf6ebc59a124860
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-10-13 16:39:36 -04:00
Marc-Andre Laperle
886cc17c35 rcp: Fix stand-alone build with Eclipse 4.6 target
Change-Id: I8dc5fdd98add54f34ee0d5b8d833c058ceae0f59
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-10-05 15:17:36 -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-Andre Laperle
3415575b19 Add Error view to Stand-alone debugger
Add Error view to both the rcp and the script.
Also update the script to include com.google.gson which is required by
cdt.core.

Change-Id: I3975420cff8c912c07949384226bfa655a1a10e3
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-09-28 22:53:20 -04:00
Martin Schreiber
2cf6b41bd2 Bug 474946 - Initialization Code must be run asynchronously
Do the initialization asynchronously. If the service was initialized
during this class gets instantiated, it was re-instantiated and so a
StackOverflowException was produced. Now the initialization is done
asynchronously.

Bug: 474946
Change-Id: I15356c5f6e450d825d4f8615e2fba177409f5894
Signed-off-by: Martin Schreiber <m.schreiber@bachmann.info>
2015-09-22 17:03:44 +02:00