1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 06:32:10 +02:00
Commit graph

24531 commits

Author SHA1 Message Date
Sergey Prigogin
b1f7f7f7f1 Moved to JDK 1.8.
Change-Id: I630a0c442b1df2624148a9d62418b862c313897c
2016-03-28 16:50:01 -04:00
Sergey Prigogin
929d8dfb45 Consolidated similar tests.
Change-Id: If8161fdd23956f3cb61660f45d1b1407bb102835
2016-03-28 15:04:39 -05:00
Sergey Prigogin
16562814f7 Cosmetics. 2016-03-28 11:43:55 -07:00
Alvaro Sanchez-Leon
82b74d3cb6 Bug 489398 - Support memory spaces in IExpressionDMAdress
When an address is resolved from an expression, the resulting address
may carry a memory space provided by the backend to associate
this address to a particular memory space.

The current interface for the memory space service (e.g.
IMemorySpaces2) can be used to parse the memory space contained in the
expression.

This update adds:
1) A new API method to resolve the memory space of an
IExpressionDMAddress instance
2) The use of the memory space service to attempt to resolve the memory
space.

Note: if there is no memory space service, the memory space defaults to
an empty string, which does not affect the default behaviour i.e.
when memory spaces are not used.

Change-Id: Idfe5669b26f84ee4e3e78f96f229ced75e6ec5c3
2016-03-23 21:17:51 -04: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
Alvaro Sanchez-Leon
16b3fbcfd6 GDB Automatic remote launch, NP Exception check
Null pointer checks were missing in GdbLaunch e.g. to cover the case
when the instance is not fully initialized e.g. invalid gdbserver path.

Change-Id: Ie5b593417aa831cb5b35b19f31d2b0a03b1fdc86
Signed-off-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
2016-03-22 15:23:17 -05:00
Marc Khouzam
8f25e4b5b2 Cleanup check for file presence.
Change-Id: I58faa14181598829d754c169460d3721671c42af
2016-03-22 16:16:48 -04:00
Marc Khouzam
9781f7bfa8 Don't require gdbserver to be present for local tests to pass
The TraceFileTest.java file has three tests which depend on each other.
Inter-dependency between tests is not good.  This commit removes it.

Change-Id: Id910a5cea741c85959679e4b0a6981f603f19d13
2016-03-22 16:16:11 -04:00
Doug Schaefer
096d2fa9f0 Make sure buttons on New Qt wizard are present.
Change-Id: I345adb10dd654ed2823aff3671b5774cf711797a
2016-03-22 13:06:05 -04:00
Doug Schaefer
c29243b187 Revert "Bug 489563 - API change for Language Settings Providers."
This reverts the changes we've made for language settings providers
so that I can start again with a cleaner approach.

Change-Id: Icddd5a465a8f217594af5b07011a56bf1dfdf014
2016-03-22 10:32:31 -04:00
Sergey Prigogin
52432d7370 Cosmetics.
Change-Id: I4022285d11267b77861cc8e4333adbea9c780ea7
2016-03-21 20:17:05 -07:00
Sergey Prigogin
de3b172c7d Bug 489563 - API change for Language Settings Providers.
Restored binary compatibility of LanguageSettingsSerializableProvider.

Change-Id: I02c9c7b0cc98a72ef47798a74f7a6ff99e85cf46
2016-03-21 19:15:23 -07:00
Sergey Prigogin
d07b74f31a Bug 489987 - Name resolution problem with static constexpr method
Change-Id: Ib1ec66f3c4d250112a606482a8c97a593fb0bfce
2016-03-21 16:58:45 -07:00
Sergey Prigogin
7f6e86085c Cosmetics. 2016-03-21 16:30:32 -07:00
Sergey Prigogin
9ea3641953 Minor performance optimization.
Change-Id: I8d529cf8bf41faca127d12db033f295b8a23e338
2016-03-21 14:17:25 -07:00
Sergey Prigogin
e156a0fb89 Added two missing @noreference tags. 2016-03-21 14:02:12 -07:00
Doug Schaefer
5a5de4b1db Bug 489563 - API change for Language Settings Providers.
Use IBuildConfiguration instead of ICConfigurationDescription.
Add adapters to convert back and forth between these. Create
IBuildConfiguration objects when configuration descriptors are
created.

Clean up formating of the code involved.

Change-Id: Iec5ca132dddbf990f116f96b4680ef5f7318e28b
2016-03-20 23:10:46 -04:00
Marc Khouzam
c58c554e3a Bug 489777: Remove method returning thread as ints
Method MIThreadListIdsInfo#getThreadIds() has been removed.  MIThreadListIdsInfo#getStrThreadIds() should be used instead.

Change-Id: Id6fb924a96b193012eaae0c8811b386873cd411c
2016-03-20 07:28:52 -05:00
Alvaro Sanchez-Leon
ba6eb9e0f0 Bug 489777 - [API] Replace thread id type from int to String
in preparation for the introduction of thread groups syntax in GDB,
thread id needs to be handled as a String.

Change-Id: I379a92de9755ba0532265519ee70d1e199de811b
2016-03-19 21:03:51 -04: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
8d4ea57654 Bug 488950 - Remove "New..." button from 'Connect' dialogue
Change-Id: Ia60e7a9e1e6d211bbe4c137f3ff5f7368ab68e83
2016-03-19 19:38:27 -04:00
Marc Khouzam
11c94f2755 Bug 489683 - Fix typo while changing API
Change-Id: I1e5e5f92564c486e2f14da9a7f3a4e15598ba069
2016-03-19 13:05:12 -04:00
Marc Dumais
c0109d378d Bug 489683 - Change the breakpoint "number" from an int to a String
Change-Id: I33a8ca95f6894c360c95260433945cdf1b529bc3
2016-03-18 22:21:21 -05:00
Alena Laskavaia
1cb7faae95 Support -Dcdt.tests.dsf.gdb.versions=all for gdb tests
Change-Id: I7b0921f3dfc41e75f2f32b270712c0eda7fc96a4
2016-03-18 22:31:20 -04:00
Jonah Graham
25023542e8 Fix version range check in SourceLookupTest
Change-Id: Ief38312449c67073c6a6503f27807b455fa4066c
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-03-18 22:30:33 -04:00
Marc Khouzam
3fb0862d7c Bug 484900: Remove CDI JTag Main tab
In org.eclipse.cdt.debug.gdbjtag.ui, GDBJtagCDICMainTab.java was
removed. GDBJtagDSFCMainTab.java should be used instead.

Change-Id: I514ca9238c380d0bb7c73b072049b1062cd81367
2016-03-18 22:20:28 -04:00
Marc Khouzam
b34301fbb0 Bug 484900: Cleanup remote launch after CDI cleanup
API Breaking changes:
- The old RemoteCMainTab.java was removed. RemoteCDSFMainTab should be
used.

Move Remote Run launch to use RemoteCDSFMainTab

Remove plugin.xml definition of the tabs associated with the removed CDI
Remote debug launch.


Change-Id: Ie71497aa745295cc696b2679aa3047d9895d2481
2016-03-18 16:27:22 -05: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
Marc Khouzam
3b442e1f37 Bug 484900: Replace LocalCDILaunchDelegate with LocalRunLaunchDelegate
The launch delegate id "org.eclipse.cdt.cdi.launch.localCLaunch" was
being used for both the Run launch and the CDI debug launch.  To keep
supporting the CDI debug launch, we still had to keep that delegate
pointing to the class LocalCDILaunchDelegate.

Now that we have remove the CDI debug launch, we no longer need to keep
pointing to LocalCDILaunchDelegate, and can use the
"org.eclipse.cdt.cdi.launch.localCLaunch" on for Run and pointing to
LocalRunLaunchDelegate.

Some more details can be found in Bug 464636.

Change-Id: I36c2adc043d29a5a11121059470505c6526c068b
2016-03-18 14:34:11 -05:00
Marc Khouzam
58081e64ef Bug 484900: Remove the test runners CDI launch
In org.eclipse.cdt.testsrunning, the class CdiRunTestsLaunchDelegate was renamed 
RunTestsLaunchDelegate, as part of the CDI cleanup.

Change-Id: Ic7513a32f88ccc2b8139d5b4bb9f8ffd63fabe59
2016-03-18 14:56:16 -04:00
Marc Khouzam
6fc6c3c671 Bug 484900: Remove CDI launch delegate for post-mortem and attach
Change-Id: I47e28d17eb2bc8b63762f799f93e8a2705d7e815
2016-03-18 14:55:38 -04:00
Marc Dumais
16ed5ea208 Bug 489216 - [memory view] memory space sometimes wrongly set, during
the restoring of memory monitors

Change-Id: Iab8554aef0ca24d2643440f1ba845eb253e29676
2016-03-18 12:43:32 -04:00
Alvaro Sanchez-Leon
e3a5acb761 minor fix, replace == for .equals
Change-Id: I26f949b64d1d5da0f410c76379d51f7edfcf9474
2016-03-18 11:44:52 -04:00
Alena Laskavaia
528de33113 Flattening rest of gdb tests
this commit removes and merges rest of gdb tests in favor of using
parametrized tests

Change-Id: I352545c2ea3d76154c8079f8efa9aa5d4a3e0032
2016-03-18 09:39:45 -04:00
Marc Khouzam
e977bb4953 Bug 472765: Add extra sourceLookup test
Change-Id: I98c11a2f4e231d6bc0e0bb53ea1e0b3465c9a976
2016-03-18 06:30:41 -04:00
Sergey Prigogin
483bd0e7d6 Bug 489896 - Bogus syntax error with designated initializer.
Change-Id: Iedd4e392833471c37c8e6440553178122f499635
2016-03-17 19:54:01 -07:00
Sergey Prigogin
50ae3ff6a8 Cosmetics.
Change-Id: I7a5e70d05316a74be6b0abe042f8415447563a7e
2016-03-17 20:15:19 -05:00
Alena Laskavaia
26d87d7b74 removing API for custom preference listeners in codan
- this is replaced by eclipse preference listeners framework

Change-Id: Ia39041c79c643912c883d7fdf507aeb252f13ddc
2016-03-17 15:12:14 -04:00
Marc Khouzam
7856453f30 Bug 488909: Unify services factory classes to extend more easily
From org.eclipse.cdt.debug.gdbjtag.core, constructor
GdbJtagDebugServicesFactory.GdbJtagDebugServicesFactory(String)
has been replaced by
GdbJtagDebugServicesFactory.GdbJtagDebugServicesFactory(String,
ILaunchConfiguration)

From org.eclipse.cdt.dsf.gdb, constructor
GdbDebugServicesFactory.GdbDebugServicesFactory(String)
has been replaced by
GdbDebugServicesFactory.GdbDebugServicesFactory(String,
ILaunchConfiguration)

From org.eclipse.cdt.dsf.gdb, class GdbDebugServicesFactoryNS has been
removed and its logic was merged into class GdbDebugServicesFactory

Change-Id: Ifecba752cfc12da62f1447027b11c0bb1f7c0171
2016-03-17 14:31:45 -04:00
Alena Laskavaia
6aefe76491 gdb catchpoints registers tests cleanup
Change-Id: Ibea6071b9b8e07f63508e177fabf8e60da5c0a08
2016-03-17 09:24:39 -04:00
Sergey Prigogin
f838c07db6 Code streamlining.
Change-Id: I7a90e1b97d65813c80a52dfc36fc368bc20a7399
2016-03-16 22:42:37 -05:00
Sergey Prigogin
7c859a9b92 Cosmetics.
Change-Id: If2aa971a6480e079487d7856290f59ec67459993
2016-03-16 19:58:45 -07:00
Sergey Prigogin
ec7d830f4b Made couple frequently used methods final.
Change-Id: Ife83a856271a3aa6056f2fec8d02ab515611b4ab
2016-03-16 19:58:44 -07:00
Sergey Prigogin
4b31af20b1 Removed deprecated ICPPQualifiedName.getNames() method.
Change-Id: I6e84cba6c56fe5467205ef85e24035e6b2e86f50
2016-03-16 19:58:43 -07:00
Sergey Prigogin
31e3379235 Bug 489710 - Name resolution problem with inherited constructor
Change-Id: Ic2a090a79e9d4414217e5f8f15ee70a64bb77885
2016-03-16 19:58:42 -07: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
Sergey Prigogin
315fc0f5ef Cosmetics.
Change-Id: I307cff37a52a60606d150b708d53adfcb3c456e3
2016-03-16 17:38:01 -07:00
Alena Laskavaia
b3f03996de parameterized tests gdb tests
this commit to introduce a test harness that allow
to reduce SIGNIFICALLY duplication of test per gdb version.
Tests is now parameterized with version and type (gdb vs gdbserver).
This commit flattens on of the tests as example rest is still 
using an old way.

Parameters are defined externally now via Java variable like this
 -Dcdt.tests.dsf.gdb.versions=gdb.7.7,gdbserver.7.7,gdb.7.11

Change-Id: I855449afba40e265c542dc5de7a3562548c97e8b
2016-03-16 16:51:17 -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