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

36134 commits

Author SHA1 Message Date
Jonah Graham
154d66f815 Add unique display name for some test plug-ins 2023-08-08 15:47:35 -04:00
John Dallaway
a19a7230b6 Add NXP LinkServer definitions 2023-08-08 13:06:42 +01:00
Jonah Graham
9448058a76
Resolve cast exception - fixup for inferring generic types (#490)
Long ago in 334702ee05 generic types
were added. However in at least one place a previous assumption
that existed was broken. That assumption was the true
type of ResourceInfo.getTools() would be Tool[] as opposed to ITool[].
That commit broke it for ResourceConfiguration.getTools()

Internally in CDT ITool is in practice always Tool, and as a result
there are lots of downcast from ITool -> Tool. However ITool[] cannot
be downcast to Tool[] unless the original type was Tool[].

Instead we use Arrays.copyOf to copy the array into the correct
array type.

Steps to reproduce the problem now fixed:

1. Create a Managed Build executable project.
2. Open the properties window of the source file (as opposed to project)
3. At the Properties page, navigate to "C/C++ Build/Tool Chain Editor".
4. Click the "Apply" button.
2023-08-03 17:12:26 -04:00
John Dallaway
d3afc5403b Fix version dependency on o.e.c.managedbuilder.core 2023-08-03 21:45:50 +01:00
Gesa Hentschke
c2d0a6600b
[#484] Add extension point for custom icons of C/C++ source files (#485)
* [#484] Add extension point for custom icons of C/C++ source files

fixes #484
2023-08-03 17:42:23 +02:00
Jonah Graham
9920d7afbd
Move entirely from the old Orbit repos to the new aggregated ones (#486)
I have also removed the now unused dependencies.
2023-08-02 15:07:25 -04:00
John Dallaway
e069e974e8 Eliminate GC resource leak 2023-08-02 16:12:46 +01:00
Jonah Graham
bb8ffa7b09
Make GitHub issue template more relevant (#468)
The old template was the default for GitHub, but it was off the mark
a little for some aspects. This change hopes to make the template
more useful
2023-07-21 15:43:56 -04:00
Jonah Graham
49d3e3113d Move back to Linux Tools Docker nightly
The commit resolves the resolution error that was raised in
https://github.com/eclipse-linuxtools/org.eclipse.linuxtools/issues/232

I have raised an issue in PDE here:
https://github.com/eclipse-pde/eclipse.pde/issues/675
2023-07-21 15:00:07 -04:00
Jonah Graham
3d586dc7d7 Explicitly include ASM in our target platform
My last attempt at this in 4aa51673ab I had set
includeDependencyDepth="direct" but that pulled in a bunch
of unintended dependencies. Instead explicitly add the ASM
dependency.
2023-07-21 14:27:05 -04:00
Jonah Graham
4aa51673ab Update target platform to latest Eclipse Platform milestone
This includes updating to 3rd party dependencies coming from Maven
so that everything resolves properly. In particular spifly
required asm, and by doing `includeDependencyDepth="direct"` that
dependency is included in the target platform.
2023-07-20 23:24:51 -04:00
Jonah Graham
899a386bfb Use last released LinuxTools docker
At the moment there are some resolution issues on the nightly
versions of LinuxTools docker components, so for now use the
latest release rather than nightly.

See https://github.com/eclipse-linuxtools/org.eclipse.linuxtools/issues/232
2023-07-20 23:24:51 -04:00
Jonah Graham
5be1b7ac9e Fix Variables button for Working Directory in launch config
Fixes #463
2023-07-20 07:49:01 -04:00
Jonah Graham
d6c4e73c8f Update to latest version of deps
Using https://github.com/eclipse-orbit/orbit-simrel/blob/main/report/maven-osgi/cdt/REPORT.md

Part of #420
2023-07-11 10:21:13 -04:00
Jonah Graham
ac84c4ec86 Prepare repo for CDT 11.3.0 development
Some bundles are bumped because dev happened between 11.2 release and
this version bump. The most significant change that happened
was the bump in Tycho version which changed ECJ version and
hence some class files changed

Part of #420
2023-07-10 21:41:39 -04:00
Jonah Graham
460c0021aa Move all dependencies to maven direct where possible
Includes:

- Sign all artifacts, particularly 3rd party with CDT's PGP key
- Using maven version managed and updated by EF Webmasters
- Update to latest SnakeYAML
- Move some 3rd party dependencies to Import-Package (instead of
  Require-Bundle)
2023-07-10 20:47:10 -04:00
Jonah Graham
33c30fa819 Format target file
The target file has been formatted with the formatter
in the Target editor when in the Source tab (Context menu ->
Source -> Format).
2023-07-10 20:07:02 -04:00
Alexander Fedorov
c23b3241ae [#449] Import memory window is not working as expected
Increment version for org.eclipse.cdt.debug.ui.memory.transport

Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2023-07-08 16:13:36 +03:00
Alexander Fedorov
68ccd09ca1 [#449] Import memory window is not working as expected
Use `SWT.OPEN` style for import dialogs

Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2023-07-08 16:13:36 +03:00
John Dallaway
5be8661c9b Support DWARF v5 content form data 2023-07-07 21:07:17 +01:00
John Dallaway
54d5e1445c Support DWARF attribute form DW_FORM_implicit_const 2023-07-03 14:05:43 +01:00
ewaterlander
8a8b94bfbb
Postpone build container creation to build start. Fixes possible Eclipse freeze. (#433)
The creation of the build container for Core Build projects is
postponed to the start of the build process.

StandardBuildConfiguration getBuildContainer and setBuildContainer
have been cleaned up.

CBuildConfiguration creation is started via
CBuildConfigurationManager.getBuildConfiguration(IBuildConfiguration)
which holds a lock on the HashMap 'configs'. Creation of
StandardBuildConfiguration triggered, via applyProperties and
getBuildContainer(), a Folder.create which loops back to
CBuildConfigurationManager.getBuildConfiguration().
For detailed traces see https://github.com/eclipse-cdt/cdt/issues/424

Fixes #424
2023-06-26 13:37:23 -04:00
John Dallaway
44dc9d7cd7 Propagate exceptions in default binary file viewer 2023-06-26 18:30:53 +01:00
Jonah Graham
0dc9d340f5 Lock snakeyaml to expected 1.x version
Snakeyml recentlyish came out with 2.0 version and more recently
TM4E started using the 2.0 version. As TM4E snapshots are in our
target platform we started failing as we started wiring to the newer
version due to a missing underbound on our dependency.

A separate task of updating to recent snakeyaml will be done as part
of #387
2023-06-26 11:49:51 -04:00
John Dallaway
9edc432c49 Eliminate memory leak in Default Binary File Editor 2023-06-17 06:07:53 +01:00
15knots
09728af3db
recognize source file extensions ".ccm", ".cxxm", and ".c++m" (#422)
* recognize source file extensions ".ccm", ".cxxm", and ".c++m"

cmake 3.27 release notes: The "CXX" language now treats source file
extensions ".ccm", ".cxxm", and ".c++m" as C++.

Signed-off-by: 15knots <11367029+15knots@users.noreply.github.com>
2023-06-16 20:56:51 +02:00
Jonah Graham
04f67b14b8 Use stable URL for Platform 4.28 dependency
Part of #420
2023-06-15 13:32:59 -04:00
Jonah Graham
0dd2c4b5c2 CDT 11.3 N&N starting point
Part of #420
2023-06-13 15:26:21 -04:00
Jonah Graham
022bf02327 CDT 11.2 p2 composites on download.eclipse.org
Part of #320
2023-06-13 15:21:00 -04:00
John Dallaway
74bcb42202 Provide hex dump of binary files in Default Binary File Editor 2023-06-13 17:17:17 +01:00
John Dallaway
d4c444eaeb Accommodate archive files in Default Binary File Editor 2023-06-12 15:50:37 +01:00
John Dallaway
0a8734fb12 Use PE64 class for machine type validation 2023-06-10 05:50:02 +01:00
John Dallaway
c91d0f7d4a Process ELF files without file suffix as binary content 2023-06-09 13:01:53 +01:00
jantje
501e7db9a1
Use ${ProjName} for workspace includes when possible
Use ${ProjName} for workspace includes referencing folders from
the project to better support project renames 

Inspired by the implementation for selecting includes in build
settings located in FileListControl.java 

Fixes #402

---------

Co-authored-by: jantje <eclipse@baeyens.it>
Co-authored-by: Jonah Graham <jonah@kichwacoders.com>
2023-06-07 19:24:31 -04:00
Erwin Waterlander
9dcaf509fa Cleanup GCCToolChain
Fixed some possible null pointer uses, detected by a statical code
analysis tool.
2023-06-06 14:10:16 -04:00
Jonah Graham
9e10c79017 Update to latest dependencies
Part of #320
2023-06-05 09:52:08 -04:00
Jonah Graham
124fba03b9 Update to latest dependencies
Part of #320
2023-05-24 14:34:31 -04:00
Dominic Scharfe
75d962a691 Guard if no editor is associated with the hover. This happens when the
debug hover is used from a non cdt-editor, e.g. the cdt-lsp editor.
2023-05-16 07:42:46 +02:00
Alexander Fedorov
e00e7b0d0d
[#390] Fix API errors for Deduction Guides #390 (#391)
Update `@since` tag value from 8.1 to 8.2

Fixes https://github.com/eclipse-cdt/cdt/issues/390

Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2023-05-10 19:18:15 +03:00
Umair Sair
08693047c5 Headless importAll fails with error
importAll fails with error 'Project: .org.eclipse.egit.core.cmp already
exists in the workspace!' and no further projects are imported.

The fix is to not go into special directories .metadata and
.org.eclipse.egit.core.cmp. Moreover, importAll and removeAll do not
fail immediately if operation on a project fails,
instead it keeps on performing operation on all projects and at the end, headless
builder returns with error code if operation of any project failed
2023-05-03 11:35:38 -04:00
Alexander Fedorov
7cd76eeeca
[#385] Employ Eclipse Dash license check (#386)
Add yml configuration to check licenses

Fixes #385

Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2023-04-30 10:35:09 +03:00
ewaterlander
9710f17847
Wrong active build configuration for Core Build projects. (#380)
Wrong active build configuration for Core Build projects.

The CoreBuildLaunchBar tracker always made a non default build
configuration the active build configuration. In other words, it
always made the debug build configuration active.
This caused wrong build flags if a non core build launch configuration
was used to launch a core build project binary.

Fixed the CoreBuildLaunchBar tracker to set the build configuration
to active that matches the launchBar mode.

Fixes #378
2023-04-28 07:05:54 -04:00
Jonah Graham
3e47705d94 Enable toggling breakpoints in LSP CEditor
This is an example of where we have somewhat an inversion of dependencies.
The existing CDT code assumes it knows about all types of editors
at compile time. In this case the LSP C Editor is a new type. However,
rather than creating a new extension mechanism here we are simply
adding the LSP C Editor to the known list as the LSP C Editor
is (or will soon be) part of CDT itself anyway (see #354)

By itself this change doesn't do anything, it needs the
change in https://github.com/Bachmann-electronic-GmbH/eclipse-cdt-lsp/pull/46/

Also-by: Gesa HENTSCHKE <Gesa.HENTSCHKE@bachmann.info>
2023-04-27 14:33:07 -04:00
Jonah Graham
7146617411 Don't use tabs when indenting in yaml file 2023-04-25 14:16:37 -04:00
Igor V. Kovalenko
b9655594c5 Amend class template instantiation test for bug 207840
Enabling C++17 deduction guides unconditionally causes one of the tests for
template instantiation to fail because one of instantiations can be done via
implicit deduction guide using default template arguments.
Test case is covering issue https://bugs.eclipse.org/bugs/show_bug.cgi?id=207840
and remaining erroneous cases are not affected.

Amend the test and comment about change since C++17.
2023-04-25 14:16:07 -04:00
Igor V. Kovalenko
a1c904fbc7 Make c++17 deduction guides unconditionally enabled 2023-04-25 14:16:07 -04:00
Igor V. Kovalenko
7d1ea08ae0 Add tests for c++17 deduction guides 2023-04-25 14:16:07 -04:00
Igor V. Kovalenko
f17675be16 Add basic support for c++17 deduction guides 2023-04-25 14:16:07 -04:00
Igor V. Kovalenko
aafb1d951a Recognize C++17 deduction guides feature test macro and pass it via TU 2023-04-25 14:16:07 -04:00
John Dallaway
2eaaa1ef0b Add Cross GCC toolchain uses GNU Elf Parser to N&N
Part of #361
2023-04-24 15:25:02 +01:00