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

3954 commits

Author SHA1 Message Date
Jonah Graham
1b19ba20c2 Update to latest Eclipse Platform and Orbit
Includes logging changes/simplification brought on by
https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/issues/588
2022-11-21 19:05:08 -05:00
Jonah Graham
b8bd15844b Bug 571722: Add ALL_FLAGS for scanner discovery
This change adds the ALL_FLAGS that does not limit tool options to
those declared as IOption::isForScannerDiscovery when launching the
compiler to discover compiler built-ins.

This is needed as many other flags, either entered manually in "Other
flags" or some of the existing flags with checkboxes such as "-ansi",
"-fPIC", and "-fstack-protector-all" which all affect scanner discovery
as they can all change what macros are built-in to the compiler.

The current solution has as a drawback that some settings, like -I and -D
then appear twice. For example in the "Includes" node in the "Project
Explorer"

My only reservation about this change is if there is an option
that can be specified successfully at build time, but when used
at scanner discovery time causes the compiler to fail, or return
incorrect results. Therefore I have added a new field,
excludeFromScannerDiscovery to tool options (buildDefinitions
extension point) that allows tool integrators to always exclude
a command line option from ALL_FLAGS. I have also added
a new "Other flags (excluded from discovery)" to the
"Miscellaneous" tab to allow compiler options to be entered
by the user.
2022-11-21 10:46:49 -05:00
Jonah Graham
3f682d7b00 Update to latest Orbit which means new mockito version
Note that FileBasedErrorParserTests had to change because of some
Tycho incompatibility with JUnit's ParameterizedTest. It works
in the IDE, but not in maven.

The correct fix is to resolve the tycho settings, see Bug 569949
for a previous example. It may also be simply resolved by updating
to Tycho 3.0.0. However I want to get this change in as
at the moment CDT.setup is broken and that is impeding developers.
2022-11-14 16:04:19 -05:00
Jonah Graham
1893069eb5 Remove unmaintained LSP and DAP support from CDT
Fixes #139
2022-11-09 19:47:22 -05:00
Jonah Graham
611ea03ab0 Update wiki.eclipse links to their new locations
I have not updated links in old N&N pages from before CDT 10.
I have not updated non-CDT links.

Part of #32
2022-11-09 10:56:55 -05:00
Jonah Graham
92c9ed1622 Move https://wiki.eclipse.org/CDT/StandaloneDebugger to GitHub
Part of #32
2022-11-09 10:56:55 -05:00
Jonah Graham
a3a6682faa Lower build.properties errors to warnings for some projects
Some projects build some of their bin includes with maven
build, so remove the error in those cases.

fixup for 6eaaf714cc
2022-11-07 23:13:26 -05:00
Jonah Graham
9026f53fd5 Remove deprecated binary parsers and supporting code
These binary parsers have been slated for deleting for
a while and are replaced with 64-bit compatible
versions.

Some methods still refereneced the 32-bit variants
and have been updated to the fully functioning
64-bit variant.

The older parser IDs are preserved (forever?) so that
old projects can be opened without needing to do anything.
The IDs now point at the new implementations.

See also Bug 562495
2022-11-07 20:58:25 -05:00
Umair Sair
b10979677e Cleaning project fails once the binary is expanded in project explorer on Windows
Steps:
======
1. Create a managed project and build it
2. Expand the built binary available in binary container in project explorer view
3. Now clean the project, clean will fail irrespective of number of tries you do

Reason:
=======
For finding the sources for binary, Elf instance is created and Section.mapSectionData creates MappedByteBuffer of channel which locks the file on Windows until its garbage collected, see following
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=4715154

Solution:
=========
Made ISymbolReader AutoCloseable and user is responsible to properly close it. In case of dwarf reader, we remove all the references of ByteBuffer and call gc.
2022-11-07 17:32:17 -05:00
Jonah Graham
6eaaf714cc Upgrade build.properties warnings to errors
Warning in build.properties will be errors when they run
in the tycho build, like this:

```
Error:  Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:2.7.5:package-plugin
(default-package-plugin) on project org.eclipse.cdt.core.tests:
/home/runner/work/cdt/cdt/core/org.eclipse.cdt.core.tests/build.properties:
bin.includes value(s) [test.xml] do not match any files. -> [Help 1]
```

So make them errors in the workspace so that the issue is
detected before push.

Some build.properties issues don't affect the build, but
are still indicative of a problem.
2022-11-06 18:29:28 -05:00
Jonah Graham
dd33a517a3 Display correct icon/label for various source lookup containers
The adaptable type that was listed doesn't exist.

This is only used to get the correct icon/label for these
type of adapters, so the effect is minor.

Fixup for 9aee6c4850
2022-11-04 08:19:23 -04:00
Jonah Graham
95bb7afb47 Display proper icon for core launches
Core launches were missing their icon in the Debug View

Fixup for e9beafae10
2022-11-04 08:19:23 -04:00
Jonah Graham
1f19cff227 Make missing identifiers and classes in plugin.xml errors
Subsequent commits fix the errors
2022-11-04 08:19:23 -04:00
Jonah Graham
30166dea86 Bump org.eclipse.cdt.core major version
Due to the removal of previous API done in:

- PR #103
- commit 4de9516e97
2022-10-25 22:28:51 -04:00
Mat Booth
c1269a9990 Fix build failure in standalone debugger application
* Correct the requirements according to the latest target platform
* Move to requiring Java 17
* Enable the profile in the Jenkinsfile to verify it builds
2022-10-25 10:20:37 +01:00
Jonah Graham
5702eb8e88 Update references in help to new N&N location 2022-10-03 21:55:27 -04:00
Jonah Graham
369d120b06 Removed old versions of N&N files
These were not linked from anywhere and now are in a different
location in the repo (see commit f0c2358276)
2022-10-03 21:55:27 -04:00
Jonah Graham
e4e06008af Update to Java 17 as BREE. Fixes #80 2022-10-03 12:42:37 -04:00
Jonah Graham
110ac149c2 [releng] Bump versions for CDT 11.0.0 2022-10-03 12:42:37 -04:00
Jonah Graham
efaadf4209 [releng] Update help docs for 2022-12 M1 2022-10-03 12:42:37 -04:00
Jonah Graham
93fbce4f2c Bump cdt.ui major version for CDT 11.0 development 2022-09-09 20:18:47 -04:00
Jonah Graham
2c3f1110ca
Bug 580365: Explicitly use bash for standalone debugger shell scripts (#69)
The scripts assume that /bin/sh is bash, but it isn't on all installs,
in particular Ubuntu: https://wiki.ubuntu.com/DashAsBinSh

Change-Id: I8ea05b2ffd1fd41b3aa1e6b395e43fc15a15321f
2022-09-09 17:10:08 -04:00
Ed Merks
4e40dda89f Improve CDT's setup
Include a configuration, simplify the targlet for the target platform,
and enhance the working sets based on folder structure.

https://github.com/eclipse-cdt/cdt/issues/39
2022-08-12 12:04:56 +02:00
Jonah Graham
1c8c96c239 Move the disable intro ini out of root of repo
The root files in GitHub are a bit more prominent, so keep
that area clean and move this special ini to a subdir.

Change-Id: I12d95727e9dad29ebe4f50d47faa9e98753a52bc
2022-08-04 12:23:12 -04:00
Jonah Graham
9b05a213eb [releng] Update to 2022-06 M3 dependencies
Change-Id: I138dccb36f84975f38b2f8123e24d5ad1714e9f1
2022-05-24 13:58:13 -04:00
Jonah Graham
d224fec1da [releng] CDT 10.7.0 M2 dependencies
Note: Due to Bug 579817 we need to consume an I-build to get
a working java.xml bundle.

Change-Id: I60ff7a025855367f7c2dbc7387122d3e379c8677
2022-05-03 21:09:13 -04:00
Jonah Graham
290136af02 Bug 579759: Don't auto-open the Modules view
The Modules view does not do much and in most situations is
not particularly relevant to DSF.

Therefore CDT will stop auto-opening it. See details of that
decision from recent CDT call
(https://www.eclipse.org/lists/cdt-dev/msg35170.html)

The view can still be manually opened as any normal view can.

Change-Id: I492cd8311c566ee5749831864a93bf900160d9dc
2022-04-25 17:59:11 -04:00
Jonah Graham
a1c02e2cce [releng] Apply auto-clean of save to all files with Eclipse 4.23
This mostly is using diamond operator, but includes
adding missing @Override and organizing imports and
applying formatting improvements in the JDT formatter.

Change-Id: Id91cbff33b0a039cc5121945ffbc407ecba45866
2022-04-19 20:13:15 -04:00
Jonah Graham
148ae40d0f [releng] Make CDT Clean-up profile match Editor on save actions
The CDT Cleanup profile had a bunch of extra cleanups applied to it, this
prevents running the CDT cleanup profile manually to simulate running the
save actions on all Java files

Change-Id: Iad491e1258a4ba90d81d1457ea0f6779e3663e38
2022-04-19 20:13:15 -04:00
Jonah Graham
7400e22b1f [releng] Update all legal files with update_legal_files.sh
The about.html was changed as per
https://gitlab.eclipse.org/eclipsefdn/it/websites/eclipse.org/-/issues/90

Change-Id: Ied879279460a8fc610630fc26794ab3df9eae39f
2022-04-13 13:42:35 -04:00
Jonah Graham
1f0451c163 [releng] Prepare for 10.7.0 with version bumps
All the about.html files are updated, so every bundle that hasn't
already had a bump in 10.7 needs one now

Change-Id: I6143d2fbe77a58a3a6d2f4a226d96087117f9ac1
2022-04-13 13:15:06 -04:00
Jonah Graham
5c4d54df1a [releng] Update comparator repo to 10.6.0
Change-Id: Ie4e5bc90a41bb6e47cd34afb42126e1934fcc042
2022-04-10 20:55:36 -04:00
Jonah Graham
e8d924bb9a [releng] Bump versions for 10.7.0
Change-Id: Ibada1ef26f47f4238ae64f53fb67a73125534347
2022-04-10 20:55:36 -04:00
Jonah Graham
acfd3c5179 [releng] Bump doc generator to new version
Change-Id: I505e3a059053d6a40951f0a365aebbbe49f24032
2022-04-10 20:55:36 -04:00
Jonah Graham
16872dd142 [releng] Prepare for CDT 10.7.0 M1 / 2022-06 M1 (target platform)
Change-Id: I56f50431268a64d63fd6e6dfdb64c0e27c064f8e
2022-04-10 20:55:36 -04:00
Jonah Graham
968c6937e7 [releng] Update to 2022-03 RC2 dependencies
Change-Id: I4bd79f799a91a9817f4606a740b727c556b9699c
2022-03-08 12:16:19 -05:00
Torbjörn Svensson
21b442bd7f Bug 578400: Don't assume PC has not changed on refresh
Contributed by STMicroelectronics

Also-By: Jonah Graham <jonah@kichwacoders.com>
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
Change-Id: Ic03df0d032890aac9196b3c437148c8d82499d32
2022-02-10 10:35:23 -05:00
Jonah Graham
72efb17cda [releng] Prepare for 10.6 development
Change-Id: Id648081713b5a16ff702180efb166f230000a641
2022-02-10 10:35:23 -05:00
Jonah Graham
640dc53892 [releng] Bump version numbers for all modified projects
Change-Id: I0d78c550512d8e63374bf1bc3a53f80e5d387e31
2022-01-12 18:57:12 -05:00
Jonah Graham
431e5ffd23 [releng] Bump end year on copyright on all modified features
Change-Id: I0d35eb6514d87fb6dcba0a284f58963b80861d51
2022-01-12 18:57:12 -05:00
Jonah Graham
54c31c4126 [releng] Update Standalone debugger to new bundles for Platform 4.23
Change-Id: Idae45660d2c3822394199cd9a8ad6b964a7e3402
2022-01-12 18:57:12 -05:00
Jonah Graham
d2fd6f1087 [releng] Update comparator repo for CDT 10.6.0
Change-Id: I4e70999800cb031798a423d86637f399a1c7b257
2022-01-12 14:07:45 -05:00
Jonah Graham
dbd7558f17 [releng] Bump to CDT version 10.6.0
Change-Id: I28629cdfb0906ce7f1b33a88cbbd55521afc8f6b
2022-01-12 14:07:45 -05:00
Jonah Graham
c13962fcd7 [releng] Update to latest dependencies (2021-12 M2)
This includes requiring older version Hamcrest as the org.hamcrest
bundle was recently update in Orbit to a new major version that
isn't compatible.

Change-Id: I7cb23f0be058d1404b93b1a76cbfe8182a3ded14
2021-10-25 18:56:15 -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
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
ad4d444823 [releng] Prepare for CDT 10.5.0
Change-Id: I9b72edf4a0ff0771a147934dd7f1c92ba1ee799a
2021-09-26 20:23:17 -04:00
Jonah Graham
d907da99a4 Bug 573677: Use array based exec commands to avoid problems with spaces
While most of these commands don't actually have spaces in them, or
their arguments, avoid the deprecated methods.

Change-Id: If7b4324695699d5a6d9a2f8a979657977486d8a4
2021-06-14 22:20:28 -04:00
Jonah Graham
902ea0dfa1 [releng] Bump to CDT version 10.4.0
Change-Id: I0807f46d9ebb8bb579b687366cdb19e40935a9ec
2021-06-12 20:52:54 -04:00
Jonah Graham
4e07f56f0d [releng] Update to newer help-docs-eclipserun-repo
Change-Id: I46118a378e4edf319292a91483df27221c910839
2021-06-12 20:13:23 -04:00