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

34680 commits

Author SHA1 Message Date
Torbjörn Svensson
36ec703c2f Bug 521515 - List running tasks using JNA on win32
As Eclipse only support 64-bit JRE on Windows, some legacy support has
been dropped.
* Dropped support for listing 16-bit applications using NTVDM.EXE
  process (was only supported on 32-bit WinNT based systems).
* Dropped support for listing processes on non-WinNT based systems
  (Windows 9x/ME is 32-bit only).

Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
Change-Id: Ib827de6510a342c0de5c6eaca68a944b2f1d641e
2020-07-17 18:21:43 -04:00
Torbjörn Svensson
803d6cd8ad Fixed NLS warnings and removed excess semicolon
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
Change-Id: Ife6550a77af5e410fd7b252a239dfa1ae6ae36f5
2020-07-15 22:31:35 -04:00
Marc-Andre Laperle
742dc05cb8 [releng] Remove explicit mentions of com.sun.jna.* in target platform
They come along with org.eclipse.sdk feature anyway.
org.eclipse.sdk -> org.eclipse.platform
 -> org.eclipse.rcp -> org.eclipse.e4.rcp -> com.sun.jna

Change-Id: Icc64906305b1ee96ff8a3a8850d681bf854ea784
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-07-13 23:06:46 -04:00
Jonah Graham
12ce6020e7 [releng] Add wildwebdeveloper to target platform
The Linuxtools, as of I32779335ee3f5c94d733c3fa68d1b593f9206667,
requires WWD node fragments

Change-Id: I7c8f9553c159f74941d422d136f929bb322aac27
2020-07-13 22:33:21 -04:00
Torbjörn Svensson
1073159011 Only validate features committed to git
Change-Id: Icd2427c515bb0cc79e9179ba00216c173264ca17
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-07-12 18:04:20 -04:00
Torbjörn Svensson
6e19332c33 Mark exe and dll files as executable
When git is configured to honor executable bit for files
(core.fileMode=true), the .exe and .dll files in the
repository needs to have execute bit set to be able to run
Eclipse in runtime mode on Windows.
For more details:
https://git-scm.com/docs/git-config#Documentation/git-config.txt-corefileMode
"Git for Windows" does not appear to have this problem,
but at least Cygwin does.

Change-Id: I4c164f6d99219d461c301189f101ccbf63debb50
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-07-12 16:53:47 -04:00
Marc-Andre Laperle
d017917f35 Bug 563006 - CDB settings provider/parser doesn't support "arguments"
One flaw with this implementation is that the "arguments" coming from
the CDB do not have shell quoting and shell escaping of quotes whereas
the current implementations of Build Output parsers assume some form of
shell quoting. This means that simply joining strings of arguments with
spaces will be missing the expected shell quoting and possibly misparsed
by the build output parsers.
It is not clear to be at this point if this should be fixed or not as it
might involve revamping the existing build output parsers to add the
concept of shell/environment and this could also affect potential
extenders.

In this current form, simple cases with no spacing and quote escaping
involved work correctly and is still a nice improvement.

Change-Id: Ia81796e63c748318b34696998ac4a467712e5f96
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-07-11 17:28:56 -04:00
Alexander Fedorov
063301deca Bug 565144 - CDT.setup and .target should be configured for 2020-09
Changes for .setup and .target
* add "com.sun.jna" bundle from Orbit
* add "com.sun.jna.platform" bundle from Orbit

Changes for "org.eclipse.cdt.debug.application.product":
* remove "org.eclipse.update.configurator" bundle
* add "org.eclipse.jface.notifications" bundle
* add "com.sun.jna" bundle
* add "com.sun.jna.platform" bundle

Change-Id: Ic1a0b2d6d5189c9f3652def987d3c6a0daa4c7ee
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-07-11 19:10:58 +03:00
Alexander Fedorov
c48d1403a7 Bug 565144 - CDT.setup should be configured for 2020-09 development
Switch Eclipse Platform to 4.17 M1 for .setup and
.target
Switch baseline comparator to the latest released CDT
And I need this root project manifest to simplify my work, please

Change-Id: I8c3af45144d3859d171a87d5d37dfa7e5c7ea97b
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-07-11 13:48:39 +03:00
Alexander Fedorov
de31fb2528 Bug 565144 - CDT.setup should be configured for 2020-09 development
Updated cdt.target to 2020-09 (still use Eclipse Platform 4.16)
Updated cdt-baseline.target to 2020-06
Added repositories for 2020-09 to CDT.setup (still use Eclipse Platform
4.16)
Updated baseline to 2020-06 for CDT.setup

Change-Id: Iba1c98e5e9f89ca953727c857788298d57aa40fc
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-07-11 12:42:57 +03:00
Alexander Fedorov
81eb1b1db3 Bug 564369 - CDT : use 4.16 GA version for .setup and .target
Change order of repositories: start the list from the most recent
platform release

Change-Id: I565f640c72f1ab67b63c8cffc0858f8303282609
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-07-11 11:10:22 +03:00
Alexander Fedorov
b59b75eb43 Bug 564369 - CDT : use 4.16 GA version for .setup and .target
Prefer release specific update URLs for p2 repositories

Change-Id: I61923c4b3c0b3e3ed151916ca35c9ec5d674e1dd
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-07-11 11:08:23 +03:00
Alexander Fedorov
3b7469ed61 Bug 564369 - CDT : use 4.16 GA version for .setup and .target
Fix .setup for 2020-06

Change-Id: I95322e2a43f305ae8b3a6199dd9f4d5ed232ca02
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-07-11 10:52:43 +03:00
Alexander Fedorov
30c67ac9bf Bug 564369 - CDT : use 4.16 GA version for .setup and .target
Move target platform resolution ahead of clone to simplify testing

Change-Id: Ic6a0b2770762a3bd42633bd7011073731c9d4f4e
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-07-11 10:10:59 +03:00
Torbjörn Svensson
46316a1b62 Throw an exception rather than return null on error
Switch to try-with-resources pattern

Change-Id: I7bbb1a6faf0ba86e456f8a66776c3eda9b9144ed
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-07-08 05:07:57 -04:00
Torbjörn Svensson
39d3bfcc4f Fixed NLS warnings, potential NPE and removed excess semicolon
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
Change-Id: I266a72dadae318ae301ca11d2ea2d74082219a24
2020-07-08 05:06:02 -04:00
Marc-Andre Laperle
97c1151f01 Bug 564949 - Remove support for CDT 3.X style projects (partial)
Remove some Wizard classes that are not referenced anywhere anymore.
This commit is just a first of probably several commits but is already
a start. I already had very large commits in progress in the past but
it became big and hard to push so I'd rather do it step by step this
time and at least have some of it done for the next release.

Also moved some messages to its own message bundle in managedbuilder.ui
because it's the only place they are used now.

Change-Id: Ib4258684c91f205dc4af3b17169609b5ebcff253
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-07-07 22:26:01 -04:00
Martin Weber
97e72c23cf Bug 559674: Replace mailing list reference
Change-Id: I2da8201a9c85722aff6dfd9a56950ba12891ec95
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-07-05 13:39:49 +02:00
Martin Weber
ebeef92ea0 Bug 559674: Eliminate warning
Change-Id: I3bcaa4b95708cb185e66dcffc6e0be68cf56b56e
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-07-05 13:39:48 +02:00
Torbjörn Svensson
3d218e99c7 Fixed NLS warnings
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
Change-Id: I04565040918e5019415a7e4edd79f7337ab7da5d
2020-07-04 04:28:41 -04:00
Torbjörn Svensson
0391d6ccf1 Fixed NLS and null warnings
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
Change-Id: I6e40038e99c37a4efc25f64d8d186b00c6f55f8c
2020-07-04 04:20:49 -04:00
Torbjörn Svensson
718156aa6b Fixed NLS warnings
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
Change-Id: If8b41e8f60acfde26e65285a9dad221159f2f4ef
2020-07-03 07:09:01 -04:00
Marc-Andre Laperle
6aa232bd23 lldb: Replace a concatenated string with NLS.bind
To make it more translation-friendly.

Change-Id: Icc1a94b2db2f90b060f90e16d56aadf57573b2c6
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-07-02 20:22:33 -04:00
Torbjörn Svensson
0798984bc8 Bug 564553 - Restore mimicking label for LLDB
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
Change-Id: I2c0db2de82478f3ed3434c9f722700ce0efe321c
2020-07-02 20:21:44 -04:00
Torbjörn Svensson
9043b4b511 Corrected plugin id to org.eclipse.cdt.msw.build
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
Change-Id: I85f94d31163caa07a522c17fc73bbd7504230b0a
2020-06-29 22:48:53 +02:00
Mat Booth
032ddb2734 Bug 563491 - Debugger RCP Product fails to build
Be more explicit about the version of javax.activation that is
needed by CDT and javax.xml.bind

Change-Id: I7951b193353ccabc253d77d24b4e1e10beca5eba
Signed-off-by: Mat Booth <mat.booth@redhat.com>
2020-06-25 12:39:33 -04:00
Marco Stornelli
530818839f Bug 564586 - Fix auto complete for final and override keywords
Change-Id: I69ee87f57a45b7b622a06534ce8b8ff2de9f80ff
2020-06-25 01:09:48 -04:00
Torbjörn Svensson
1a4736c725 Bug 564553: Fetch the path to GDB from GdbLaunch
In order to present the same path to the binary as actually launched,
fetch the path from the GdbLaunch instance rather than reading the
attribute from the launch configuration.

Change-Id: I9f973a590136167d1c8d19b6af52378c95645e35
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-06-24 14:39:36 -04:00
Alexander Fedorov
c1a5fc6093 Bug 564373 - CDT : update range for org.eclipse.linuxtools.docker
Use [5.0.0,6.0.0)

Change-Id: I96030272058f166145b448119a2a9122e9a9d02d
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-06-17 10:00:16 -04:00
Alexander Fedorov
dac0b96019 Bug 564369 - CDT : use 4.16 GA version for .setup and .target
Updated to
https://download.eclipse.org/eclipse/updates/4.16/R-4.16-202006040540/

Change-Id: I05811ffdc1cba42d76cbc168f430aed2cd889f80
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-06-17 13:08:19 +03:00
Sergei Kovalchuk
379004b618 Bug 562003 - Remove dependency to com.ibm.icu from CDT Make UI
The dependency was removed.The Copyright head was updated.

Change-Id: I82e4289fc8cb14e8488b847e8efa415dd1d77b6c
Signed-off-by: Sergei Kovalchuk <serjiokov@gmail.com>
2020-06-17 03:33:25 -04:00
Jonah Graham
92dcc3f6ab Bug 559674: Declare cmake.is problem marker type
Markers were getting created in the code (with calls to
CompileCommandsJsonParser.createMarker) but were not rendered
in the UI because there was no declaration.

Change-Id: I571b6ad7bb6f2b78a7b920cdf74ff89d6790d717
2020-06-16 09:47:31 -04:00
Aijun Shi
30845347d0 Bug 564232 - Add cpu risc for RISC-V need to support.
Change-Id: Ib62ed14f3c0dbe4375da41dba7209b27e034c53e
Signed-off-by: Aijun Shi <Aijun.Shi@windriver.com>
2020-06-16 09:39:43 -04:00
Alexander Fedorov
8b039257b7 Bug 564276 - Extract CDT Core templateengine to a separate bundle
Hide the value of extension point identifier
"org.eclipse.cdt.core.templateProcessTypes" with dedicated type. After
moving to another bundle we will preserve the identifier value for
compatibility.

Change-Id: I8dbca52f1223e8751ebb5ac7844845c30a1f0266
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-06-15 14:21:21 -04:00
Alexander Fedorov
a5dce82d54 Bug 564274 - Switch CDT cmake to use new Equinox preferences API
Replace "org.eclipse.cdt.core.options" with
"org.eclipse.core.runtime.preferences"

Change-Id: I6ac4813b680ebf34336c85bfd3bc1721d6656dc4
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-06-15 14:10:12 -04:00
Jonah Graham
fe2daff197 Bug 563051: Use new Rename API in platform for resource renaming
This removes use of internal API RenameResourceProcessor and removes
copying of code from platform's RenameResourceWizard to take advantage
of new UI API too.

Change-Id: I0e596027751dacf6982d4a63def617ae19f69827
2020-06-15 06:59:25 -04:00
Jonah Graham
f14853b3d4 [releng] Update target to platform 4.16 RC2
Change-Id: Ibb26d875adb1208bc7edba8e6d6ba03fe6b19e7f
2020-06-15 06:59:20 -04:00
Marco Stornelli
f4bed34dd0 Bug 564273 - Fix format lambda expressions without parenthesis
Change-Id: I918ca05d75ca4e8cba7501e232d4e6b05e434f06
2020-06-15 00:58:12 -04:00
Alexander Fedorov
72bf8216d8 Bug 564276 - Extract CDT Core templateengine to a separate bundle
Remove dependency to org.eclipse.cdt.core.CCorePlugin during template
schema URL resolution. The TemplateDescriptorSchema.xsd URI should be in
one bundle with TemplateEngine.

Change-Id: Ice2fbc4f33da6616184728d3a41cc803328526a6
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-06-14 20:17:03 +03:00
Alexander Fedorov
db577a85ca Bug 564276 - Extract CDT Core templateengine to a separate bundle
Remove dependency to org.eclipse.cdt.core.CCorePlugin during IStatus
creation.

Change-Id: Ic9cf5e55866ab6f0727ea91378b7366c6090b7f1
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-06-14 12:47:51 -04:00
Michael Woski
c7895abec0 Bug 564026: CPPSemantics.selectByArumentCount does not trim after
removing elements from the result array

the list of candidate functions is filtered for redundant elements. The
returned array must be shrunk to avoid NullpointerExceptions further
down the road.

Change-Id: I5f3c5a19433266dd20492241fd74edc43fbfc0ef
Signed-off-by: Michael Woski <woskimi@yahoo.de>
2020-06-14 09:28:18 -04:00
jantje
65473abf07 Bug 564123 refactor terminal Env to use same code as EnvironmentReader
Env had a very old way of reading environment variables from
before Java supported environemnt variables from System. This
commit makes the code the same as core CDT's EnvironmentReader.

Env holds a copy of the EnvironmentReader code to avoid dependency of
terminal to other CDT.

Change-Id: I8929bf427af99d3d62cca28ee8090aa423c9aded
Signed-off-by: jantje <eclipse@baeyens.it>
2020-06-13 22:07:23 -04:00
jantje
3516a46a92 Bug 564123: use EnvironmentReader in core build
CBuildConfiguration.findCommand read environments like
EnvironmentReader

Change-Id: Iedd474c647a0c22fecdd525bf50927159d138031
Signed-off-by: jantje <eclipse@baeyens.it>
2020-06-13 19:40:08 -04:00
jantje
9867126d6f Bug 564123 Uppercase only special environment variables on Windows
Only uppercase the env variable names that are special (only Path for now).
This is part of handling the change to keeping cdt variables case
sensitive.

Change-Id: Ibf22823328c8f8d57c98aa9b62763ea884164fae
Signed-off-by: jantje <eclipse@baeyens.it>
2020-06-13 18:58:14 -04:00
jantje
d99d06ceca Bug 564123: Remove deprecated method from EnvironmentReader
EnvironmentReader.getRawEnvVars has a better replacement,
EnvironmentReader.getEnvVars

Change-Id: I91b209f3f601b748dd5d635ff44a36765d519e49
Signed-off-by: jantje <eclipse@baeyens.it>
2020-06-13 18:01:08 -04:00
Jonah Graham
12cf801870 Bug 564272: Increment major version of org.eclipse.cdt.core to 7.0.0
Change-Id: I9124dd406c5981435a72ff4aaa7033f1c3d1979b
2020-06-13 16:21:05 -04:00
jantje
f5e029d19c Bug 564123 delete org.eclipse.cdt.utils.Platform
The class overrode org.eclipse.core.runtime.Platform to
workaround bugs in the platform that have since been fixed.
As 32-bit x86 and PPC support has been removed this
class is no longer needed as all the code is now
unreachable anyway.

Change-Id: I01bb00b9203aa02663ff25ce36c4c14f22dadee5
Signed-off-by: jantje <eclipse@baeyens.it>
2020-06-13 13:05:41 -04:00
Marco Stornelli
51398ca2ae Bug 564026 - Fix null pointer exception
The ICPPFunction array can contain null values. A check is needed.

Change-Id: Icde40880f7913d0de7ae2c0a293de8d5be899327
2020-06-13 10:56:29 -04:00
Torbjörn Svensson
ef2ee6df71 Bug 564257: Respect commandGenerator and applicabilityCalculator
The method Configuration.getUserObjects() and Configuration.getLibs()
should respect the commandGenerator and applicabilityCalculator defined
for the option in the toolchain definition.
The method Tool.getToolCommandFlags() should call the commandGenerator
only if the value type would generate a default command.

Change-Id: I4d6224627888e602682076ac929adbf808cff8d7
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-06-12 20:02:31 +02:00
Sergei Kovalchuk
4bd9fed83b Bug 562004 - Remove dependency to com.ibm.icu from CDT Managed Build
Core

Dependency removed for Managed Build Core

Change-Id: I15e29453a1452a5060c470f3b3658cb5763615b0
Signed-off-by: Sergei Kovalchuk <serjiokov@gmail.com>
2020-06-08 06:12:46 -04:00