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

65 commits

Author SHA1 Message Date
Doug Schaefer
d8cc0751ae Update feature versions to CDT 9.4.
Also remove remaining pom.xmls for feature projects.

Change-Id: I78d6335f92d70ad2699b8a25801ff72d2935aefe
2017-09-11 11:18:42 -04:00
Marc-Andre Laperle
c1d086cba3 lldb: Update version check to newly released, non-beta Xcode
Change-Id: I1a0c79b9c69a9d7eea25283de003f055a1293f30
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-04-11 10:44:40 -04:00
Marc-Andre Laperle
a844ef3f9c lldb: Add a few missing rm.done()
A few rm.done() calls were missing in overridden methods.
Those queries were slowing down debugging significantly.

Change-Id: I966d79af38721e551e9ebf2a74ca4d8d895241d0
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-03-24 22:27:07 -04:00
Marc-Andre Laperle
2b302b9688 lldb: Remove -break-insert hack for absolute path for lldb 4.0
Change-Id: I098e088874d95d9f9cd08e315d059dc00b2c809c
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-03-20 01:56:50 -04:00
Marc-Andre Laperle
064ce187b6 lldb: Add some comments
Change-Id: I82a825e8a3d95e895131857d3217c71be2072208
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-02-28 09:06:48 -05:00
Marc-Andre Laperle
fd8765e352 Bug 510832 - [lldb] AssertionError terminating session
LLDB-MI sends an extra event when -gdb-exit is used, which
triggers this assertion:
629,511 [MI]  35-gdb-exit
629,514 [MI]  35^exit
629,514 [MI]  =thread-group-exited,id="i1"

For now, work around LLDB-MI bug, see
http://bugs.llvm.org/show_bug.cgi?id=32053

Change-Id: I1c8e7fee118b5bc31e08272c79aa806fe05b7c95
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-02-25 22:59:25 -05:00
Marc-Andre Laperle
00b30bb03a Bug 512096 - Fix NPE selecting an LLVM toolchain in toolchain editor
When a toolchain is selected along with its builder, the builder gets
matched to a “real builder” (ManagedBuildManager.getRealBuilder). If the
builder is abstract, the builder is not in the possible list of matches,
as implemented in Builder.getMatchKey. This causes
getCurrentBuilderCompatibilityInfo to return null which is not handled.

This patch changes the base LLVM builder to a non-abstract one, which
solves this specific NPE.
Also, in order to be more helpful to the user in case it happens to
another toolchain, a null check was added with an error message that the
builder is incompatible. Then at least, it is more clear that something
is wrong and the user can pick a different builder. 

Change-Id: I4d26c568dfe6307b496719c10908a36933fd3ab8
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-02-19 21:51:36 -05:00
Marc-Andre Laperle
5fc81ecaf5 llvm: Cosmetics (trailing whitespace)
Also set some project specific preferences for save actions.

Change-Id: I8d9c68fd8f7e4a6e9e874e60c12796e2b9b783bf
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-02-15 10:04:28 -04:00
Marc-Andre Laperle
f187157456 llvm: Run code cleanup
Mostly organize imports and remove redundant type arguments.

Change-Id: I11e8e76f96a17fa521f3e7f8c8f9e3d645d445b3
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-02-14 10:36:35 -04:00
Marc-Andre Laperle
0046099052 releng: Make use of Tycho POM-less functionality
This removes a lot of pom.xml from the source tree. This is using the
"POM-less" Tycho functionality.
See
https://wiki.eclipse.org/Tycho/Release_Notes/0.24#POM-less_Tycho_builds

One advantage of this is that you do not need to update the version in
the pom.xml when you change it in the MANIFEST.MF because the pom.xml is
automatically generated. This also reduces a lot of the duplicated
information and pom.xml repetition.

- Maven 3.3 and up is required.
- Only eclipse-plugins and eclipse-features can be pom-less.
Repositories, target and others still have pom.xml.
- New parent poms are added because a parent is necessary directly one
level above the plug-in/feature that will have its pom generated
- Some test plug-ins had to be renamed .test -> .tests because it's
required so that it detects that it's a test plug-in
- Some suites were renamed so that they all use the same consistent name
"AutomatedIntegrationSuite"
- Profiles were added for the more common test configurations. They are
activated by the presence of simple .properties files that only serve to
activate the correct profile. The profiles:
  - One for UI tests (UI present and start in UI thread)
  - One for SWTBot tests (UI present and do not start in UI thread)
Other test plug-ins that are too different are kept intact and still
have
a pom.xml
- Fragments are kept intact since they all have different target
platform configurations

Change-Id: I9d73380eb766f547830c552daf08053a30b1845c
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-02-13 23:19:56 -04:00
Marc Dumais
7f6e7f8c9b Bug 510615 - Launch dialog, handle spaces in gdb path
The path to GDB is set in the launch dialog, under the Debugger tab. If
the path to GDB contains one or more spaces, and is not within double
quotes, GDB will not be found and the launch will fail. 

This patch improves the use cases around the "Browse" button, to select
GDB's path. 

1) if the user clicks on the "Browse" button, the browse dialog will
open in the correct place, no matter the presence of space(s).
2) When GDB's path is selected with the "Browse" button, it's then set
in the "GDB debugger" field. This patch looks at the selected path and
adds surrounding double quotes if there is any space within, and strips
any double quotes if there are no spaces. 


Change-Id: I202f574772965af3a491d449b9e9a97e8c61e2b0
2017-02-07 09:48:23 -05:00
Marc Khouzam
8d0a0717e2 Auto-generate source features using tycho.
This commit removes explicit source features and has tycho create them
automatically, along with all other source features that were not
previously defined.  The logic to auto-generate is in the root pom.xml

For all pre-existing source feature, the name presented to the user has
been changed to use the default name used by Tycho, which is "Developer
Resources".  This will provide a more standard user-experience with
respect to other source features built by Tycho.

Existing SDK features are kept for backwards compatibility.

All the names of the auto-generated source features that replace an
existing source feature have stayed the same except for the
'testsrunner' feature; for that one name change, a p2.inf file is added
to allow upgrading from the old named feature to the new named feature.

Change-Id: Ie632e798c93898fd828f88df4983fc43e2749d22
2017-01-25 16:14:03 -04:00
Marc Khouzam
8cf5ed53f2 Update version to 9.3.0
Change-Id: Ic953ccc5d38ff3661ca44de21ed8c4b7dad5b246
2016-11-15 20:32:51 -05:00
Marc Khouzam
334777eb6e Update version to 9.2.0
Change-Id: I36ad4218b20b8ea70584c89f5be45c757bf4c714
2016-11-14 23:50:05 -05:00
Marc-Andre Laperle
3427065e65 lldb: Fix parsing of some version formats
Change-Id: Ifd8130f4ef97698cbdd0321a1b6644726165f131
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-09-03 21:05:00 -04:00
Marc-Andre Laperle
e5d8f677b2 LLDB: Print an error when lldb is below minimum version
Prevent users from using a version of lldb that is too old.
Before version 3.8 there was a hang and other issues. If the
version cannot be determined, the launch stil proceeds. This
is because there is no good way to get the version from the
lldb-mi executable but rather, we can only do a best-effort
to get the version from the normal lldb executable. If the
lldb executable is not present but the lldb-mi is, this is a
valid way to use the debugger but the version cannot be determined.

In the future, it would be better if the lldb-mi executable could
report the lldb version directly. But this would be an improvement
in lldb, not CDT.

Change-Id: Ief8a4ebd3ea1e3d549a5cef41ac3030ec48734c4
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-08-28 02:17:42 -04:00
Marc-Andre Laperle
9f7fd16f22 Fix outdated pom versions in lldb folders
Change-Id: Ia8cd0bbafd51c60215a0d838557eab8a3c009f7e
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-08-19 12:27:23 -04:00
Marc-Andre Laperle
84a7eefeb2 LLDB: Add LLDB feature and add it to update site
Bug: 405670
Change-Id: Iee51790de4450c823e3ce773360dc92bd0189c6b
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-08-19 10:29:03 -04:00
Marc-Andre Laperle
4548f0a7bc LLDB: Add preference UI
This commit adds a preference page for LLDB. For now, only LLDB path
and the "stop at main" preferences are exposed.

Bug: 405670
Change-Id: I4ba30fdb48ecd0cdfc6e3aac35fe0de38563c354
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-08-18 15:49:41 -04:00
Marc-Andre Laperle
b7e23cab72 LLDB: Add support for attaching to local process
Bug: 405670
Change-Id: I3fb967ec7536a92f67e87954814ebaf499352d7f
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-08-18 15:49:30 -04:00
Marc-Andre Laperle
5e32334aa0 LLDB: Add support for local debugging of new processes
This commit adds support for debugging new processes launched locally
using the LLDB debugger (lldb-mi). The minimum version supported is
LLDB 3.8.

Preliminary documentation on how to set it up is available here:
https://github.com/MarkZ3/Eclipse-CDT-WIP/issues/9#issuecomment-236483223

Bug: 405670
Change-Id: If46543e974e2f19c45ab3bba088eab35fe737077
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-08-18 10:47:33 -04:00
Marc Khouzam
cd559dafaf Update version to 9.1.0
This commit used the script releng/scripts/ChangeFeaturesVersion.sh

Change-Id: I8274a6e8dd5c0f1e450f07952e138b265a441a62
2016-08-17 10:11:57 -04:00
Marc Khouzam
9e1e981b4d Move the rest of the CDT plugins to java 8
This change was generated using the script:
releng/scripts/ChangeJavaVersion.sh

Change-Id: I2ad96dc682a5acb8529c3edec40de279c331b5a4
2016-06-22 14:51:43 -04:00
Mat Booth
08074f77aa Bug 459567 - Help missing for LLVM Managed Build
Include 'help' directory in build.properties

Change-Id: I6c86a5325a323c67a50166b70372c8a918aa8553
Signed-off-by: Mat Booth <mat.booth@redhat.com>
2016-05-24 10:48:45 -04:00
Doug Schaefer
0d7ee343e0 Add MSYS2 support for managed build. A few Qt cleanups on Windows.
Change-Id: I07ed0cb4a83996de194559570fedf9fb1b21b42d
2016-05-12 15:32:51 -04:00
Alex Blewitt
2356a29c70 Bug 492200 - Replace StringBuffer with StringBuilder
There are many opportunities for replacing `StringBuffer` with
`StringBuilder` provided that the type isn't visible from the
public API and is used only in internal methods. Replace these
where appropriate.

Change-Id: Ic2f50c5b6f3c3a4eae301bb3b40fb6faed235f79
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-21 22:17:03 -05:00
Alex Blewitt
2114f6b108 Bug 491984 - Replace .equals("") with .isEmpty()
In many cases a String's empty status is tested with `.equals("")`.
However, Java 1.6 added `.isEmpty()` which can be more efficient since
it compares the internal length parameter only for testing. Replace
code using the `.isEmpty()` variant instead.

Some tests for `"".equals(expr)` can be replaced with `expr.isEmpty()`
where it is already known that the `expr` is not null; however,
these have to be reviewed on a case-by-case basis.

Change-Id: I3c6af4d8b7638e757435914ac76cb3a67899a5fd
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-19 13:35:54 -04: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
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
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
e59d20f0ba Bug 478462 - LLVM feature description is copied from CDT p2 feature
Change-Id: I3a5351a6997633b768eea9dc52a826b3a33e2702
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-11-20 22:18:55 -05:00
Marc Khouzam
bb61124897 Incremented CDT feature version to 8.8.0
Change-Id: Ib1189a08a5f0225fd676b682dc8a10477ad3acc5
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-06-10 09:33:49 -04:00
Marc Khouzam
e820f872ad Incremented CDT feature version to 8.7.0
Change-Id: Ife0feaaa9263d2b7797e31d628250bd26caff1b5
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-05-04 21:07:13 -04:00
Jeff Johnston
61200ab252 Fix CLang Toolchain enablement
- Fix LlvmEnvironmentVariableSupplier.getDirIfLlvmFound method
  which was not bothering to look for llvm-ar in the user's path
  because it would only set its internal llvmPath variable if
  directories ended in '/' or if a subdir was provided which is
  not the case for it being called from LlvmToolChainSupported
- set the llvmPath to the candidatePath at the beginning so the
  test will be performed

Change-Id: I4b93fb3e569c32cff580c57dbedbe730dbbe057e
2015-04-13 13:01:14 -04:00
Marc Khouzam
4781f20495 Move some leftover plugins from Java 5 to Java 7.
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-03-25 13:42:20 -04:00
Sergey Prigogin
693185186e Cosmetics. 2015-01-06 21:02:42 -08:00
Sergey Prigogin
ce73d736bd Fixed an NPE. 2015-01-06 16:41:30 -08:00
Sergey Prigogin
252eaf4c0f Incremented CDT feature version to 8.6.0.
Change-Id: Ic90c8e6a68d21e5b90ec3fac997da6a95a29bedf
Signed-off-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Reviewed-on: https://git.eclipse.org/r/39066
Tested-by: Hudson CI
2015-01-06 19:40:38 -05:00
Marc Khouzam
6004528ff6 Update to new CDT Logo
Change-Id: Iac76b204027efa01c8f848050a36d05022ecdf86
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/38363
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2014-12-16 13:29:12 -05:00
Marc Khouzam
1a48e6064b Update pom.xml of features for which version was changed to 8.5
Change-Id: I6c4e258ac7d86a3df7a064614fa80430219d5561
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-07-24 13:35:24 -04:00
Marc Khouzam
4a3ec6cd65 Update remaining feature versions to 8.5
Change-Id: I2f81d61650070353ec86159cfa215d58a0dd2c40
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-07-24 10:50:09 -04:00
Alexander Kurtakov
0bf6cec447 Put LLVM preference page in CPluginPreferencePage category.
Prevents LLVM page being top level and makes LLVM threated more like
XLC.

Change-Id: I189f9fb00f256c9721d95b7a163284db4e31d370
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/30296
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-07-23 09:53:58 -04:00
Alexander Kurtakov
a03c0e1ef2 Reduce unused parameter to warning.
This allows compiling in the IDE and not fail because of exception not
used in catch block.

Change-Id: I162645b25162d80b4447d87edabc4d436d6d9d2f
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/30295
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-07-23 09:53:07 -04:00
Sergey Prigogin
d8154bd340 Inremented branding plugin version to 8.5 2014-07-21 17:39:01 -07:00
Marc Khouzam
397b269e26 Bug 435998 - Remove 'updateSiteName' string as they are not used
Change-Id: I55485c9cba17f544d50d8e27b77d6644493d8300
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27500
Tested-by: Hudson CI
2014-06-18 15:54:57 -04:00
Marc Khouzam
ce9b270a38 Bug 435998 - Get rid of all "eclipse_update_120.jpg" files in CDT
features

Change-Id: I52a71e62f8161990657e96ef52403fd7f69698a2
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27499
2014-06-17 11:33:37 -04:00
Marc Khouzam
2c22479c9e Bug 435309 - Use the shared license file scheme for CDT
This means that:
- feature.xml files now make a reference to the shared license plugin
      using version 0.0.0
- feature.properties files no longer have the text for the license
- license.html and epl-v10.html files are removed as they are part
      of the shared license plugin
- build.properties files no longer reference removed files
- the main pom.xml file references the license repository

Change-Id: Ibd880480de3a07597084d44cce7b822903509079
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27250
2014-05-26 10:03:45 -04:00
Marc Khouzam
5806deb5b8 Update to new license text
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-05-20 11:36:39 -04:00
Marc Khouzam
fa5de3be3b Update license.html files for 2014 version
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-05-02 11:17:44 -04:00
Sergey Prigogin
1d166260a8 Bumped up CDT version to 8.4.
Change-Id: I1229344feaaed4a3551ceb7b1ef1410545048b55
Reviewed-on: https://git.eclipse.org/r/20908
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-01-21 17:35:29 -05:00