1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
Commit graph

35193 commits

Author SHA1 Message Date
Torbjörn Svensson
c831994958 Bug 505882: Fork the GnuMakefileGenerator into non-API
One more place where the GnuMakefileGenerator is instanciated that
should have been changed in previous commit.

Contributed by STMicroelectronics

Change-Id: Ib89d5e77cbdd2148723b9b1a80cafb72d35390a4
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2021-10-20 13:53:17 -04:00
Torbjörn Svensson
b3be425429 Add convenient method to raise a custom signal
Contributed by STMicroelectronics

Change-Id: Ie9c6c7d87e1efc8e13861c3551c11a1da0be2695
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2021-10-20 13:49:48 -04:00
Torbjörn Svensson
e4c46094b1 Ensure constants are constant
Contributed by STMicroelectronics

Change-Id: I3ceecdba0bcf5715ce0c4f683fd3fdb9b86ad8b3
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2021-10-20 13:49:48 -04:00
Mat Booth
69448337e5 Bug 561994 - Remove dependency to com.ibm.icu from CDT Debug Core
Switch to JRE implementations:
 * com.ibm.icu.text.MessageFormat -> java.text.MessageFormat

Signed-off-by: Mat Booth <mat.booth@gmail.com>
Change-Id: I52901be237302d3f862ea3e261e44939b4b52bab
2021-10-20 11:27:25 +01:00
GeraldMit
e8b257c645 Bug 576639 - [Accessibility][A11y] reduce JAWS table read while in table
correct previous fixes Bug 575946, Bug 575949, Bug 576090
to use only parent for accessibility add of table description.

Change-Id: Idbc39f13c06f27ed106839d922c328f3bce76d16
Signed-off-by: GeraldMit <Gerald.Mitchell@ibm.com>
2021-10-19 14:53:43 -04:00
Jonah Graham
8d173637f7 Bug 505882: Fork the GnuMakefileGenerator into non-API
The GnuMakefileGenerator is a huge file that needs lots of fixes.
However most of the time to implement the fixes are taken up trying
to not break API. Most extenders of CDT provide their own
implementation of GnuMakefileGenerator by copying the CDT one
and modifying it. Therefore CDT is going to take that same
approach internally and leave the existing GnuMakefileGenerator
in its unmodifiable state.

Change-Id: I12fafb5e347112648a02d4593267bd88a47b5c88
2021-10-18 15:30:08 -04:00
Torbjörn SVENSSON
4a7bd0d1b4 Bug 574131: Do not concurrently call Spawner#destroy()
As the Object#wait() voids the synchronization, more threads can call
destroy() before the Reaper thread has identified that the process
exited or the timeout occured.
The change ensures that only one call actually raises the signal while
the others are NOP.

Contributed by STMicroelectronics

Change-Id: I64722b17138582a76bb9cf604a6b0c14685f1720
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2021-10-18 20:49:49 +02:00
Torbjörn Svensson
cd73469b01 Bug 574131: SIGTERM should let app do a gracefully exit on win
Let the process have some time to do a graceful exit with the signal
SIGTERM. If the process is still alive after 1s, raise the SIGKILL
signal and hammer down the process.
The 1s is aligned on all platforms and handled in JAVA.

Contributed by STMicroelectronics

Change-Id: Iff2f7727c1ac37b190c60a01774f106638eeeeaa
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2021-10-18 07:06:22 -04:00
Mat Booth
46d7fb74da Bug 561995 - Remove dependency to com.ibm.icu from CDT Debug UI
Switch to JRE implementations:
 * com.ibm.icu.text.MessageFormat -> java.text.MessageFormat
 * com.ibm.icu.text.DateFormat -> java.text.DateFormat

Signed-off-by: Mat Booth <mat.booth@gmail.com>
Change-Id: Ie73d4f4152f43b155d3a5425fe4f8cec15bf45da
2021-10-15 18:09:13 +01:00
Jonah Graham
b0cb9b10d7 [releng] Update to newer Tycho
Newer Tycho has a new feature that adds an extra header (Bundle-License)
to every plug-in. This commit includes omitting this new feature
rather than bumping every single version of every bundle in CDT.

See https://www.eclipse.org/tycho/sitedocs/tycho-packaging-plugin/package-plugin-mojo.html#deriveHeaderFromProject

Bundles have version bumps due to newer Tycho including newer
JDT compiler which leads to classfile differences.

Change-Id: Id536d75a92a30582418324e27d74008869f7dd3a
2021-10-13 21:33:14 -04:00
Jonah Graham
3180471732 Bug 576447: Add missing schema entry to various plug-ins' build.properties
Change-Id: I933b1a2c4cfc32786412fd0c31bb9e2c39bc836b
2021-10-05 11:57:25 -04:00
Jonah Graham
871ee590c4 Bug 575018: Add repeatable iteration order for map used in test
The test used to fail on the -100.0 / 3.0 case if that was the first
condition tested. This change forces that to not be the first
condition tested which reduces the incidence of failures.

This does not resolve the unknown underlying issue which appears
to be on the GDB side that CDT is exposing. Upgrading GDB version
may also resolve the test failures, but for now I am going with
this fix so that we stop having UNSTABLE Jenkins CI builds.

Change-Id: Ibfa93a8350cfc08adf721723bc07566521bed812
2021-10-04 14:00:54 -04:00
Umair Sair
68c67b20a4 Bug 576291 - Add preference for suspend timeout
- Adding preference in GDB preference page

Change-Id: Ic179ddd4f15eb02f8de479ca095cc2ec19818c6b
Signed-off-by: Umair Sair <umair_sair@hotmail.com>
2021-09-28 21:20:39 +05:00
Jonah Graham
ad4d444823 [releng] Prepare for CDT 10.5.0
Change-Id: I9b72edf4a0ff0771a147934dd7f1c92ba1ee799a
2021-09-26 20:23:17 -04:00
Martin Weber
42d339e3ec remove access restriction on o.e.c.jsoncdb.core
Change-Id: Iac1dca43a01ce2a61640b93da688645729184665
2021-09-24 15:00:58 -04:00
Jonah Graham
20878b1f44 [releng] Update Maven build dependencies
Change-Id: Ibe372f8258cade06215d15bef21155f73d427ee6
2021-09-23 18:30:03 -04:00
GeraldMit
174453ba91 Bug 576090: Fix Preference description for preference
The description for Advanced Content Assist Preference can not be read
out.

The description can  not be a stand-alone label when working with JAWS,
and titles on the page should have additional accessibility listener
values for Advanced Content Assist Preference can not be read out.

Change-Id: Ic7715676848ecefb8cf111800a2847fe6e3e30aa
Reported-by: Gerald Mitchell <Gerald.Mitchell@ibm.com>
Signed-off-by: Gerald Mitchell <Gerald.Mitchell@ibm.com>
2021-09-20 00:10:01 -04:00
John Dallaway
327c3c7116 Bug 576058: Fix traditional memory rendering byte ordering
Change-Id: Ie942a36ebd9d728c4f1673a6e5122b296f428dd2
2021-09-17 12:21:28 +01:00
Gerald Mitchell
525f801293 Bug 575949: The section title cannot be read out
The section title "Elements" can not be read out from Syntax Coloring
Preferences page. "Preview" could also not be read out.

Change-Id: Ia8e8261739100808eda7bccb28b4c2fca5d59210
Reported-by: Gerald Mitchell <Gerald.Mitchell@ibm.com>
Signed-off-by: Gerald Mitchell <Gerald.Mitchell@ibm.com>
2021-09-16 00:45:14 -04:00
GeraldMit
b7cc884e3d Bug 575946: Fix accessibility on C element Filter
The description for filter text on C element Filter
dialog could not be read out.

Change-Id: I7c4884cca2c1fff3d872f4775e8529e4428c86ac
Reported-by: Gerald Mitchell <Gerald.Mitchell@ibm.com>
Signed-off-by: Gerald Mitchell <Gerald.Mitchell@ibm.com>
2021-09-15 10:41:56 -04:00
Martin Weber
80de3ba94f Add support for the clang --target option for cross compilation.
(Backport from cmake4eclipse)

Change-Id: I8239aec001a5e9c919f85177798dabeec1f18285
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2021-09-14 14:28:58 -04:00
Martin Weber
8b80033025 Bug 575623 - jsoncdb parser does not support the "arguments" element from the compilation database
Change-Id: I66f7b7261518e24d6f0fba223cd6a2d56e83e0c4
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2021-09-13 20:46:58 -04:00
Martin Weber
2d90c17c5b Bug 575624 - jsoncdb parser does not properly handle macros defined to "nothing"
Change-Id: I22fffed13d450e61dc13d5f84415c68e5cbbace0
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2021-09-13 20:46:58 -04:00
Marc-Andre Laperle
9b34e460e5 Bug 575628 - jsoncdb parser defines normal includes as local includes
When using jsoncdb and parsing either -I (POSIX) or /I (CL) arguments,
the include paths are flagged as local include paths. Local include
paths are treated by the CDT preprocessor only for #include "foo.h"
(quoted paths). So when using jsoncdb, several of my #include <foo.h>
don't work because they cannot be found on the wrongly flagged local
include path whereas others can sometimes be found because of a feature
in the indexer preferences called "heuristic resolution" which works if
the header happens to be in the workspace (but it can also silently pick
up the wrong one on name clash).

Change-Id: Ibb5317ed73f4a1700f21e8e3531db74995542d13
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2021-09-12 23:39:13 -04:00
Marc-Andre Laperle
139e82268b Bug 575622 - Problems in jsoncdb parser for compilers that do not support built-in detection
Change-Id: I04ff6ed03c135d23d9b6ef7c83411a1fffbd9f8d
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2021-09-11 13:31:44 -04:00
Jonah Graham
083b7b1964 Typo.
Change-Id: I4d9ec6da1f02cc41643539c17ba34567ec95ba7b
2021-09-10 10:08:18 -04:00
Jonah Graham
47a94fe3d9 Bug 575903: Call correct clean method
The old clean method was removed from use in Bug 571134 but this call
to it was missed.

Change-Id: I01310a3e3c1f45534e55d146f9480ac323446dd4
2021-09-10 10:08:13 -04:00
Jonah Graham
c34816028c [releng] Fix p2 repo for ptp remote
The URL we were using was a milestone location - this location is
the release location. The milestone location has since been deleted.

Change-Id: I2e29fbf36d51d17cd53754afc5175275257f0983
2021-09-01 16:08:58 -04:00
Jeff Johnston
9bbf0326a2 Bug 575730 - New Make project should handle cleaning of gcov/gprof files
- add needed changes to Makefile template to clean up .gcda, .gcno,
  and gmon.out files

Change-Id: Icaaac10238da613e5950038a86b6b16768156a2c
2021-08-31 18:08:28 -04:00
Martin Weber
2a257657c3 remove misleading TODO
Change-Id: I4b3bb8a1441ae662f34edf08daf8d272f86e08cd
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2021-08-27 13:40:33 -04:00
Simeon Andreev
c410447f12 Bug 319668 - NPE in indexer CCorePlugin.getCProjectDescription
This change ensures code in SelectionListenerWithASTManager does not
attempt to compute an AST if the workbench is shutting down. This can
result in a NPE in the CDT core plug-in.

Change-Id: I3a0f921b3327bab9eab7169591f217c4f4766a70
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2021-08-26 17:35:17 -04:00
Jonah Graham
0cd0aa1270 Bug 575159: Consider return code of wsl.exe
If the return code is non-zero wsl may have failed in someway, with
recent changes in Windows, wsl.exe is present even when wsl is not
installed. In that case wsl.exe is a dummy that can be used to install
wsl.

Change-Id: I83af60623084e1364d16c3a1739bc4f6a25ac3a9
2021-08-24 12:39:15 -04:00
Christian Walther
390a8d22b5 Bug 575508: Fix flaky test
Bug_303953Test.testBuildAfterSourcefileDelete() is occasionally seen
failing with an unexpected change to .cproject. I have not investigated
what the change is, but it's plausible that some background process like
the indexer or scanner discovery might asynchronously modify .cproject,
and .cproject is not the focus of this test, so just ignore it along
with .project.

On the hopeful assumption that this was the only flakiness, I am
removing the @Tag(BaseTestCase5.FLAKY_TEST_TAG) annotation.

Change-Id: Ie9191aaf1a66e8475f05eb422d6e4b3949f8138d
Signed-off-by: Christian Walther <walther@indel.ch>
2021-08-19 16:05:00 +02:00
Torbjörn Svensson
eb7aa70a9f Only spawn WSL detct job on Windows
There is no need to spawn the WSL detect job for other platforms than
Windows.

Contributed by STMicroelectronics

Change-Id: I85256a9f6a4f5e9e9276458ba67e2f6adf02afa7
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2021-08-15 15:44:23 +02:00
Torbjörn Svensson
432ca56fd3 Only fetch result for jobs that has started
In certain scenarios, the WSL detect job is not launched directly. As
the join() method returns early for suspended jobs, the result list is
read too early and causing NPE.
This was deteced while running the JUnit tests.

Contributed by STMicroelectronics

Change-Id: I8a013cf83be26e8f8bee38fd2e7a4557eb1a57ab
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2021-08-15 15:31:26 +02:00
Jonah Graham
b9dd8152bb [releng] git: protocol no longer available, using https instead
See Bug 574076

Change-Id: I821d2ce7fdeaa225750ddba0f317c0bfd44eaeb3
2021-08-11 12:55:43 -04:00
Jonah Graham
0bbd711553 Rename test class to proper name
This file was not being detected by Surefire because it didn't
match the expected file name pattern.

Change-Id: I357fcf7845ad4fdaa2697599d0f400bb128efd20
2021-08-11 12:55:43 -04:00
Victor Rubezhny
8fa72d559f [575317] CDT Debugger fails to start in Eclipse Flatpak
'/tcp' suffix is not supported anymore with 'gdb',
so an IP address should be in form of HOST:PORT
(and not of HOST:PORT/PROTOCOL)

See: https://github.com/flathub/org.eclipse.Java/issues/36

Change-Id: I9eedc450da0d39305fc5d4cde851eb991c3c31f0
Signed-off-by: Victor Rubezhny <vrubezhny@redhat.com>
2021-08-09 22:02:30 +02:00
Mat Booth
0092d1cb4d Bug 561997 - Remove dependency to com.ibm.icu from MultiCoreVisualizer UI
Remove unneeded import-package on com.ibm.icu.text.

Signed-off-by: Mat Booth <mat.booth@gmail.com>
Change-Id: I2c919cd33cf6c87a71bd61fcc7e675173c7c9abc
2021-08-09 11:17:16 -04:00
Marc-Andre Laperle
13914320c6 Bug 574607 - Compilation Database Parser: reload only active config on change
Change-Id: Ide1d1495a1284ed4d3e9b4cc066a62b2cb55e908
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2021-08-09 01:55:08 -04:00
Marc-Andre Laperle
383211b9c7 Bug 574317 - Per-project Doxygen options are ignored
Pass along ICProject to edit strategies so that they can retrieve
per-project settings.

Change-Id: I87699917114a10439a820f9d6ec9d53f350ea50f
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2021-08-08 21:24:43 -04:00
Mat Booth
9f1241f3ef Bug 575139 - Meson shows sanitycheckc.exe in binaries container
Exclude everything in */meson-private/* when generating meson
projects.

Signed-off-by: Mat Booth <mat.booth@gmail.com>
Change-Id: Id26c8dd695e5d09d158bb747b50e04544df706c9
2021-07-30 18:48:09 +01:00
Mat Booth
d98c376045 Bug 562000 - Remove dependency to com.ibm.icu from CDT DSF PDA example
Switch to JRE implementations:
 * com.ibm.icu.text.MessageFormat -> java.text.MessageFormat

Signed-off-by: Mat Booth <mat.booth@gmail.com>
Change-Id: I2c7eae20e197d0871694b09ec375dacb940a942a
2021-07-28 14:32:04 +01:00
Mat Booth
80fb6372c6 Bug 562001 - Remove dependency to com.ibm.icu from CDT Launch
Switch to JRE implementations:
 * com.ibm.icu.text.MessageFormat -> java.text.MessageFormat
 * com.ibm.icu.text.DateFormat -> java.text.DateFormat

Signed-off-by: Mat Booth <mat.booth@gmail.com>
Change-Id: I449fab36fdd45b1cd26eac216f6867a37462ae93
2021-07-28 10:07:56 +01:00
Martin Weber
7f96b6dc6c Bug 564349 - move plugins for non-gcc/clang support (arm, hpenonstop, intel, ms, nvidia) to an 'optional' category in the plugin installer GUI
Change-Id: I0700c5e1b01b45d9e84acd1f66deba187d89341a
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2021-07-27 15:26:07 -04:00
Martin Weber
5e1451a607 Bug 564349 - move code to parse compile_commands.json to subdir jsoncdb
Change-Id: I68f3b861b4326adf6da4f9d074a314628c7e8fef
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2021-07-27 15:25:54 -04:00
Mat Booth
f61688336b Bug 562002 - Remove dependency to com.ibm.icu from CDT Make Core
Switch to JRE implementations:
 * com.ibm.icu.text.MessageFormat -> java.text.MessageFormat
 * com.ibm.icu.text.DateFormat -> java.text.DateFormat
 * com.ibm.icu.text.SimpleDateFormat -> java.text.SimpleDateFormat

Signed-off-by: Mat Booth <mat.booth@gmail.com>
Change-Id: Idbd5141bd131d412990ea51de681ab1a2d80262e
2021-07-27 15:35:24 +01:00
Mat Booth
b681480abb Bug 574247 - Same binary file can appear multiple times
A race condition could sometimes yield duplicate entries in
the binary container due to interleaving of calls to
includesChild() and addChild()

Add a method to CElementInfo that can perform the check and
add the child atomically, by synchronising on the list of
children for the duration of the two operations.

Change-Id: I1ef1cddf3aad4934ec63cb433ebae34a77b69739
Signed-off-by: Mat Booth <mat.booth@gmail.com>
2021-07-25 11:03:01 +01:00
Jonah Graham
c33e81872d Bug 575018: Mark volatile field correctly
Change-Id: I0edebbd906b4a5cfda804ddb3a22c75a04c3e510
2021-07-24 19:05:38 -04:00
Jonah Graham
467eeb06a4 Fix trace of command line array
In the DSF tests the command line is output, but it is an array so
needed an Arrays.toString

Change-Id: I8b7dc33073dc3a34ffe7eea0343e415041335c7d
2021-07-24 18:03:23 -04:00