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

3812 commits

Author SHA1 Message Date
Jonah Graham
a9e84e4fb7 [releng] bump version numbers according to version number guidelines
See https://wiki.eclipse.org/CDT/policy#Version_Numbering

Change-Id: I54004437fa7a52b7c2b341fa9cb2d0683daf8962
2019-05-31 12:44:42 -04:00
Jeff Johnston
74e63a9013 Bug 547174 - Clean core project doesn't always show active in console
- add missing ProjectDescription.setBuildConfigs calls to
  CoreBuildLaunchBarTracker, CoreBuildLaunchConfigDelegate
  and CBuildConfiguration

Change-Id: I0d1097d04f3a210a6a7e9f8ad35adb9ba5d7c3d6
2019-05-16 16:46:02 -04:00
Jeff Johnston
86bfd4de7e Bug 547174 - Clean core project doesn't always show active in console
- order build config names so when clean for a project goes through
  the build configs, it finds the active one last and thus it will
  appear in the CDT build console
- do this in CoreBuildLaunchbarTracker.setActiveBuildConfig()
- do this in CBuildConfiguration.setActive()
- do this in CoreBuildLaunchConfigDelegate.buildForLaunch()

Change-Id: I379d6c9ba298f02cbc75d16e9941527cd2f9f45c
2019-05-15 20:41:14 -04:00
Jeff Johnston
19e4eabff2 Bug 547145 - Core build use of ProjectDescription should be synchronized
- synchronized core build project description
  manipulations using CoreModel as synchronization
  class

Change-Id: Ic1312d5819ddc08acb492f57a2d87f1998329805
2019-05-15 16:05:29 -04:00
John Dallaway
f85e3146d3 Bug 545941: Match launch configuration type
Change-Id: I552ea86b65782f1781d84f2e1fe9b0b8e435e3bd
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2019-04-01 01:48:49 -04:00
William Riley
47ae8d9cbf Bug 545624 - Disable Debug RCP deployment
Change-Id: I7ab18048e0a2d5282f8c063a4bb0524aa6f1f3bc
2019-03-21 11:45:50 -04:00
Marc-Andre Laperle
040372be48 Build with Eclipse 2019-03 dependencies
CDT nows defaults to targetting Eclipse 4.11 along with dependencies in the
Eclipse 2019-03 simultaenous release.

Once consequence is that 32-bit and ppc64 fragments are removed.

Change-Id: I032fedb27a4e5086f10051b3b2ca9c9c59c3b965
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2019-03-18 20:44:27 -04:00
Jonah Graham
cdc99feef2 [releng] Bump version to 9.8.0
Change-Id: I3861d4c5d0eecaf9dd370f269a655e666b60561a
2019-03-01 13:25:21 +00:00
Marc-Andre Laperle
c626ede917 Bug 543958: CDT Standalone debugger crashes on startup
org.apache.felix.scr now needs a start-level.

See also
https://bugs.eclipse.org/bugs/show_bug.cgi?id=538729

Change-Id: Ia6f83a93449aeb32566be8893237e4bd2842b462
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2019-02-24 16:19:56 -05:00
Mat Booth
99938437f4 Bug 543299 - Standalone debugger gives GTK+ 2 warning on startup
Remove the GTK version parameter from the product definition.

Change-Id: I923d757d94c791f4f0a5f40a1f16ef810896ac97
Signed-off-by: Mat Booth <mat.booth@redhat.com>
2019-01-09 10:39:52 +00:00
Alexander Kurtakov
90dd1e77f9 Fix startup warnings from launchbar descriptors.
ENTRY org.eclipse.launchbar.core 2 0 2018-12-21 21:41:37.864
!MESSAGE Enablement expression is missing for descriptor type
org.eclipse.cdt.debug.core.coreBuildDescriptorType

!ENTRY org.eclipse.launchbar.core 2 0 2018-12-21 21:41:37.866
!MESSAGE Enablement expression is missing for config provider for
org.eclipse.cdt.debug.core.coreBuildDescriptorType

!ENTRY org.eclipse.launchbar.core 2 0 2018-12-21 21:41:37.867
!MESSAGE Enablement expression is missing for config provider for
org.eclipse.cdt.debug.core.coreBuildDescriptorType


Change-Id: I2a739d8ad382a934e1a0e5b8f02f0e21cf1eeda0
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-12-22 15:20:49 -05:00
Jonah Graham
76cc07a4cd [releng] Bump version numbers for plug-ins changed since branch point
Following https://wiki.eclipse.org/Version_Numbering#When_to_change_the_service_segment

Change-Id: I019f2f6bcf11e5e4fb17960dc28a1fb2fac6ace0
2018-12-20 08:37:56 +00:00
Jonah Graham
677cc2cf63 [releng] Bump version to 9.7.0
Change-Id: Icaa0b6acf73e3a19e0d102fa8ae784e631d8743a
2018-12-10 13:50:44 +00:00
Marc-Andre Laperle
499cdbf01d Remove JVM MaxPermSize arguments (unused since Java 8)
Change-Id: Ie33b44064429f409fa721141f14f4e519014f6aa
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-11-29 23:05:14 -05:00
Jonah Graham
37ed2c406d Bug 540373: Update the compiler warnings/ignores
The previous alignment of all the warnings/ignores
led to too many warnings that weren't there before. This
commit relaxes them a bit.

The core/org.eclipse.cdt.core/.settings/org.eclipse.jdt.core.prefs
is still the "master" copy, with
releng/scripts/check_code_cleanliness.sh containing the
exceptions that apply to test plug-ins.

Change-Id: Ibd4e31ade0b42b31e7cbe5a94f06c6fc15183a56
2018-11-24 10:55:06 +00:00
Jonah Graham
d79977e17e Remove accidentally committed first prototype gdbstandalone.zip
Change-Id: Ie73dd49b031d6d4613ec7b297a07b040cbbbad41
2018-11-23 10:35:23 -05:00
Jonah Graham
3caea240a3 Bug 540373: Format some Java files that were missed
Some files which has other cleanups applied meant they needed to be
reformatted again. e.g. the removing of type parameters shortened
some lines of code that meant the wrapping changed.

Change-Id: I68ca09567b9530cc2a085c33923642b6de2ec77b
2018-11-23 13:59:46 +00:00
Jonah Graham
ff75ae80fa Bug 540373: Cleanup: Remove trailing whitespace in properties files
Command used:
# Remove space at eol in comments
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/^(#.*)[ \t]+$/\1/' {} +
# Remove space at eol in blank lines
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/^[ \t]+$//' {} +
# Replace escaped spaces at eol with unicode
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\\ $/\1\\u0020/' {} +
# Replace unescaped spaces at eol with unicode
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\]) $/\1\\u0020/' {} +
# Replace escaped tabs at eol with unicode
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\\\t$/\1\\u0009/' {} +
# Replace unescaped tabs at eol with unicode
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\t$/\1\\u0009/' {} +
# Stage all changes
git add -A .
# trim any remaining whitespace and then identify and fixup
# manually
# Only dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/MessagesForDebugVM.properties
# needed this due to missing newline at end of the file
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/[ \t]+$//' {} +

Change-Id: I858f16891fe001f4f7e62d5a4f904146e891cd39
2018-11-23 07:52:26 +00:00
Jonah Graham
b4031b5a8b Bug 540373: Safely remove trailing whitespace from MANIFEST.MF
Change-Id: Iec292561511bc696ab8a7a617e50fbc089b7bff9
2018-11-23 00:42:21 +00:00
Jonah Graham
aa1040a21a Bug 540373: Remove '(non-Javadoc)' comments
These were inserted in the past automatically by Eclipse but
newer tooling makes them redundant.

These were removed by doing a global find/replace on *.java files
using the following regular expression:
\t/\*\n\t \* \(non-Javadoc\)[^/]*/\n

Change-Id: I59d3248020f10934fde1dda5b5a31e20bb188e19
2018-11-22 22:00:29 +00:00
Jonah Graham
eeb3006e27 Bug 540373: Cleanup: Remove redundant semicolons
This was done by selecting all projects in Eclipse then
Source -> Clean Up... -> choosing:
- Remove redundant semicolons
and completing the wizard

Change-Id: I3d3175cfdfadec4f815c551d486e42c9f57b80ce
2018-11-22 21:57:01 +00:00
Jonah Graham
caf2292768 Bug 540373: Cleanup: Remove redundant type arguments
This was done by selecting all projects in Eclipse then
Source -> Clean Up... -> choosing:
- Remove redundant type arguments
and completing the wizard

Change-Id: Iaecc7010f097b4b1fabd29ccaa34ccb23a716fbf
2018-11-22 21:55:36 +00:00
Jonah Graham
8985c7b63f Bug 540373: Cleanup: Add missing annotations
This was done by selecting all projects in Eclipse then
Source -> Clean Up... -> choosing:
- Add missing Annotations - and selecting all three types:
 - @Override
 - @Override on interface methods
 - @Deprecated
and completing the wizard

Change-Id: I5d367dacb04327107f25e147edc08efc4eb1c2fe
2018-11-22 21:51:31 +00:00
Jonah Graham
a923614c73 Bug 540373: Cleanup: Organize Imports
This was done by selecting all projects in Eclipse then
Source -> Clean Up... -> choosing:
- Organize Imports
and completing the wizard

Change-Id: Ia7b305a4c967d0e6f4e8fb8c1041e7028b24006c
2018-11-22 21:47:02 +00:00
Jonah Graham
170e654b47 Bug 540373: Cleanup: Format & Remove trailing whitespace
This was done by selecting all projects in Eclipse then
Source -> Clean Up... -> choosing:
- Format source code
- Remove trailing white spaces on all lines
and completing the wizard

Change-Id: I63685372c6bcc67719bcf145123bcb72e5b00394
2018-11-22 21:47:02 +00:00
Jonah Graham
35996a5c5c Bug 540373: Standard .settings auto applied
The releng/scripts/apply_jdt_prefs_to_all_projects.sh was run to
copy standard settings to all other projects.

Change-Id: I4436c947d7f0142f56b709e661379c3eb54f666b
2018-11-22 21:47:02 +00:00
Jonah Graham
f70a8b35c1 Bug 540371: Update to EPLv2 using releng/scripts/change_to_eplv2.sh
Change-Id: Ifbb1d5af2a00bd5634dea200320e8c4303ffca6c
2018-11-22 20:31:51 +00:00
Jonah Graham
48d2271a58 Bug 540373: Normalize newlines with .gitattributes
There is also a new script to verify completeness of .gitattributes:
releng/scripts/verify_gitattributes.sh

Change-Id: I2ce270852ab54b66b6c474a6ec94203fe5bba78b
2018-11-20 21:20:39 +00:00
Marc-Andre Laperle
ef2b34f148 [releng] Fix missing dependency in stand-alone debugger
Change-Id: I347d47ea4689aa154ddb090b9cc05e7dc132959e
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-11-14 18:57:24 -05:00
Marc-Andre Laperle
7999eab841 Bug 516046 - NPE in AbstractDebugTextHover when hovering over undefined macro
Change-Id: If732a826801f025e929f711fa35a793545d0ed73
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-11-13 21:20:13 -05:00
Karsten Thoms
652602febd Bug 540610 - Add Automatic-Module-Name header
Change-Id: Ia990b24469751050dd9ec8f9b5550804816308b3
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-10-30 15:49:15 +01:00
William Riley
f3ca365140 Bug 540367 - Increment version numbers
Change-Id: I4a355170a7075f0a98ba3c1a5131c235c89b07d2
2018-10-23 11:20:31 -04:00
Marc-Andre Laperle
631ee3a6fb releng: Stop building 32-bit stand-alone debugger products
Since the Eclipse Platform 4.10 is dropping support for 32-bit,
it doesn't make sense to still build these and it will ultimately
fail once we start building against 4.10.

Change-Id: Ia83a93b99092b7a3378ed95607411da5835118a6
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-10-09 17:44:50 -04:00
Jeff Johnston
72ec4daaa5 Bug 538994 - cdtdebug: argv parameters are wrapper by double-quotes
- modify cdtdebug.sh to use arrays to gather up options and then
  to use "${options[@]}" in the final string so each option is
  properly quoted if necessary

Change-Id: Id7fec3bb0a6804f2124f837e1171f386ae5801f8
2018-09-18 16:37:15 -04:00
Marc-Andre Laperle
77045f1942 Bug 536023: NoClassDefFoundError for javax/xml/bind/DatatypeConverter
This package is marked for removal in Java 10 and in fact, is not found at
run time. Instead, use the javax.xml.bind plugin from Orbit.

javax.xml.stream is also needed by javax.xml.bind.

Change-Id: Ida10746267c814a8a11f2db7181dcb9e8ceaad44
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2018-06-26 11:05:28 -04:00
Jonah Graham
4d5204c771 [releng] Bump version to 9.6.0
Change-Id: I1618eaeab14b421155af733a73e36f6e37ea0b85
2018-06-05 22:13:24 +01:00
Jonah Graham
d5b2f61dd7 Bug 534839: Add missing dependencies to standalone product
In particular, new version of ECF requires org.eclipse.equinox.concurrent

Change-Id: I909565b868fce44dea54ac3df985708d523304b0
2018-05-20 16:58:19 +01:00
Jonah Graham
c16a31325b Bug 534839: Add missing dependencies to standalone product
In particular, new version of batik requires o.a.batik.constants,
so we need to add that in.

Change-Id: Ie221c0e48fd8e2c4692d2447bf142284e50931fb
2018-05-17 21:28:32 +01:00
Jeff Johnston
3e60faaa6c Replace refreshScannerInfo with setActive method
- remove the refreshScannerInfo method from ICBuildConfiguration2
  but add it as a protected method of CBuildConfiguration
- edit MesonBuildConfiguration and CBuildConfiguratio appropriately
- add new setActive method to CBuildConfiguration which calls
  refreshScannerInfo

Change-Id: Iebae09507f24293007a299eea3069451e566a91b
2018-03-20 15:54:15 -04:00
Jeff Johnston
60affd8b9f Bug 532420 - Make Container Core Build indexing more efficient
- add new ICBuildConfiguration2 to keep API checks happy
- remove refreshScannerInfo method from ICBuildConfiguration and
  put it in ICBuildConfiguration2
- make CBuildConfiguration implement ICBuildConfiguration2
- update ContainerPropertyVolumesModel to use new Docker plug-ins
  using docker-client 8.9.2.
- fix MesonBuildConfiguration to use a job for each compile line being
  processed, then wait until all jobs are done before causing
  an reindex to occur (this will maximize parallelism when building
  in Containers)
- fix ContainerCommandLauncherFactory to save the project so we
  can exclude project directories when copying header files using
  the new Docker Tooling interfaces
- fix CoreBuildLaunchBarTracker to use ICBuildConfiguration2
  interface to make the call to refreshScannerInfo


Change-Id: I2138f5111614e7821e46c22731397a01035eac0a
2018-03-19 21:50:31 -04:00
Jonah Graham
ec533341b6 [releng] Update CDT in preparation for Photon M6
The most significant change for CDT is the upgrade of
com.spotify.docker.client which has knock on effects
due to the API changes.

Includes:
- Updating target platform
- removing Neon and Oxygen as potential target platforms
in OOMPH setup
- Updating CDT standalone debugger
- Changes in API for docker changes

Change-Id: I68d4f93de3a0e6141c7a37a34f9e8fdb2313fbd8
2018-03-09 23:28:52 +00:00
Jeff Johnston
c9822e117e Bug 531985 - Support Container build with new Core Build
- add new ContainerTargetTypeProvider to create a new target
  for each usable Docker image from known connections
- add new ContainerGCCToolChain class which supports gcc in a
  Container for projects with Container targets
- add new ContainerGCCToolChainProvider which creates a
  ContainerGCCToolChain for each usable Docker image from
  known connections
- add new CoreBuildContainerLaunchConfigProvider class
- add new CoreBuildContainerLaunchDescriptorType class
- add new ContainerTargetLabelProvider class to support adding
  a new Container target
- add new NewContainerTargetWizard and NewContainerTargetWizardPage
  to add/edit a new Container target
- add new IContainerLaunchTarget class
- add new refreshScannerInfo method to ICBuildConfiguration interface
  to allow switching ScannerInfo when target is switched
- implement default refreshScannerInfo method in CBuildConfiguration
  which currently does nothing
- add new fetchContainerDirs method to CommandLauncherManager to
  fetch container directories for a project that is using
  Core Model and CBuildConfigurations
- add new verifyIncludePaths method to ICommandLauncherFactory2 that
  takes an ICBuildConfiguration and implement this for
  ContainerCommandLauncherFactory
- fix ContainerCommandLauncher command handling to use a list
  of Strings to preserve spaces in arguments and call new
  runCommand interface in Docker UI...as well do not link
  any args that are files if they are system directories (e.g.
  /usr /bin)
- fix getCommandLauncher in ContainerCommandLauncherFactory when
  passing an ICBuildConfiguration so that it uses the configuration's
  toolchain properties to figure out if a Container build is asked for
- fix launch method of ContainerLaunchConfigurationDelegate to check
  if working directory is null in which case use the project directory
- also add buildForLaunch method override and preLaunchCheck to
  ContainerLaunchConfigurationDelegate so it can be used for
  Core Build launching as well and ensure that the project name
  and active configuration is set properly
- in CoreBuildLaunchBarTracker, use the lastTarget to set the
  active target instead of the local field "target" as this will
  end up setting a random target as the active target.  Also
  call the new refreshScannerInfo method of the build configuration
  when the active target has changed
- add ICBuildConfiguration support to Docker LaunchShortcut such
  that properties will be set appropriately and acquired from the
  toolChain
- bump up Docker launcher version to 1.2.0

Change-Id: I074b02314f6ac6942fdf230b1dc8e154ced3088e
2018-03-06 14:48:01 -05:00
Jonah Graham
d03213fae4 Fix newlines.
Change-Id: I40c768f8df6ec6b4f5b4a90cb10c291eec9dccd3
2018-02-13 11:25:08 +00:00
Jonah Graham
3afc828ae0 [releng] Bump version to 9.5.0
Change-Id: Ie342f02f7aae633f41a7ab7d39c21e056793a04a
2018-02-13 11:25:08 +00:00
Alexander Kurtakov
3ebd99eab7 Remove unused private methods.
Change-Id: Ie3c9fa60313d7a14a1f633df2ced698e55dd75ee
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-02-08 23:22:22 +02:00
Alexander Kurtakov
12681f7807 Remove unnecessary suppress warnings.
Change-Id: I1c3de215d9c4f488309f53eaa4a90a32210994be
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-02-08 13:03:22 -05:00
Alexander Kurtakov
13f83967c4 Remove unnecessare NON-NLS.
Change-Id: I5ee2ee0c2fe784d1734dd48c653232ba9909f6bd
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-02-08 13:02:21 -05:00
Doug Schaefer
5b29b5b5d8 Bug 530673 Fix issue with CMake and changing toolchains.
Cleaned up add and remove of toolchain files, handling of when
a toolchain changes for a config, and the launch bar tracker to
be more accurate with toolchains.

Change-Id: I1a1efdf08a5f47058552c85404fe8d602d158e73
2018-02-03 20:33:56 -05:00
Jeff Johnston
e24a04895a Fix current patch concerning Container launching
- fix CApplicationLaunchShortcut find config method test for
  Container build so we don't ignore valid local launch configs

Change-Id: I4453ce2b26e15c9ec8ad53252e9e539c1268ddd8
2018-01-23 13:20:53 -05:00
Jeff Johnston
746993c9ee Bug 530053 - Launching locally after Container launch doesn't work
- add logic in CApplicationLaunchShortcut find launch configs to
  discard any launch config that has a Docker Connection URI
  attribute

Change-Id: Ieb53f4c89b24cd3fac01bec35eafc8c62748d0b3
2018-01-19 14:37:44 -05:00