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

36399 commits

Author SHA1 Message Date
ewaterlander
9e04dc537b
Fixed CBS Makefile template for profiling. (#1043)
Fixed BUILD_MODE="linuxtools". Changed to "profile".

Added -O0 to BUILD_MODE=debug.
2025-01-20 11:45:27 -05:00
Jonah Graham
1abb9900db
Restore the empty activity IDs (#1045)
In #974 I removed activities we were not using anymore, but it turns
out if LaunchUtils.enableActivity is called on a removed id, strange
things happen, such as other activities incorrectly being enabled.
This may be a bug in platform, or just undefined behavior. But because
extenders do have calls to LaunchUtils.enableActivity in their code,
leave the empty activity ids behind.

Fixes #1044
2025-01-17 12:09:21 -05:00
Jonah Graham
5667224c61
Run DSF-GDB tests when releng may have changed (#1042)
On a recent update to the target platform, the DSF-GDB tests
did not run because none of the changes matched the dsf
filter. Going forward, include running DSF tests when any
releng changes happen.

This replaces commit 8d0642568c. That commit ran the tests
all the time, which was too slow.

Part of #1037
2025-01-17 12:08:39 -05:00
astrograph
3439e0e7e0
use UTF-8 as default encoding in the Terminal (#1020)
the rest of Eclipse now uses UTF-8 as default encoding.

The tm.terminal code reverts to null when the encoding
begins with "Default" and this leads to UTF-8 being
selected from Charset.defaultEncoding instead of ISO-8859
when the displayed default value is selected.

Co-authored-by: Philipp SALZGEBER <philipp.salzgeber@bachmann.info>
2025-01-17 09:25:06 -05:00
Jonah Graham
8d0642568c Run DSF-GDB tests all the time
Part of #1037
2025-01-16 14:57:42 -05:00
Jonah Graham
45de3f3d77 Save all log files
When some types of failures happen, such as that in #1037, a log
file is created, so save all .log files as artifacts.

Part of #1037
2025-01-16 14:57:42 -05:00
Jonah Graham
64ad743617 Update maven dependencies to latest versions, especially Hamcrest
Fixes #1037
2025-01-16 14:57:42 -05:00
Jonah Graham
89b8685886 Reorder file in the order that the category editor saves it 2025-01-16 14:57:42 -05:00
Jonah Graham
957bb48267
Update to latest versions of build tools (#1036)
This is a follow-up to #986 where I missed this version update.
2025-01-16 18:56:24 +00:00
ewaterlander
c4f22cd1e7
Search debugger first in selected CBS toolchain. (#1033)
For Core Build System local debug target. If there is no absolute path
set in the Debugger tab of the launch configuration, try to find the
debugger first in the selected toolchain. If the debugger is not found
in the toolchain, let GdbLaunch search in PATH.
If an absolute path is set, GdbLaunch will use that.

Fixes #1008
2025-01-16 12:03:11 -05:00
Jonah Graham
2efeaae713
Shorten the name of the licensing check (#1032)
This helps it fit in the UI space GitHub gives it

Part of #1002
2025-01-16 11:08:47 -05:00
Jonah Graham
751b031f09
Revert "workaround test results appearing in incorrect spot" (#1031)
This reverts commit ae3aebcf7f.

Part of #1002
2025-01-15 21:47:14 -05:00
Jonah Graham
ae3aebcf7f workaround test results appearing in incorrect spot
Part of #1002
2025-01-15 17:33:40 -05:00
Jonah Graham
6a60995312
Update path to dash-licenses (#1023)
When Eclipse Dash got moved to its own org, the path the shared
workflow needed to be updated. This commit does that

Part of #1002
2025-01-15 16:16:56 -05:00
Jonah Graham
9ec6c531e5 Correct location of event.json for reporting results
Part of #1002
2025-01-15 16:10:59 -05:00
Jonah Graham
47ecc78979
Use event file to line up PR build and reporting (#1026)
Part of #1002
2025-01-15 15:35:33 -05:00
Jonah Graham
1b0fcf3e4b Revert "Experiment to include full debug info"
Part of #1002
2025-01-15 14:39:41 -05:00
Jonah Graham
069209d474 Experiment to include full debug info
Part of #1002
2025-01-15 14:23:28 -05:00
Jonah Graham
1c8edca92f Fix broken https link in setup
Fixes break introduced yesterday in 75ef178ffd
2025-01-15 11:40:22 -05:00
betamax
3c4287f03d
Make CMakeBuildConfiguration API (#1010)
For ISV integration/extension to CDT CMake, it is necessary to extend
several non-API classes (eg: CMakeBuildConfiguration,
CMakeBuildConfigurationProvider). This would cause "Discouraged access:
The type XXX is not API" warnings.

The classes have now been made API so can be extended without warnings.

Addresses Issue: CDT CMake Improvements #1000, IDE-82683-REQ-017
Extending CMakeBuildConfiguration
2025-01-15 11:18:36 -05:00
Fred G
e93588a8b9
Reduce disk usage (#1009)
This change should be applied to all branches and controllable forks.
2025-01-15 10:13:22 -05:00
Jonah Graham
4d2ed9dacf
Remove generation of adoc files in code cleanliness (#1005)
This was supposed to be a check to ensure adoc generation was
working, but it interferes with the overall check code cleanliness
as it leads to jgit dirty errors.

The generation of the docs is done as part of the build too, so
it is redundant to do them here.
2025-01-14 21:19:22 -05:00
Jonah Graham
75ef178ffd
Move target platform from 2024-09 -> 2024-12 (#1007)
When we decided to delay CDT 12.0 by 3 months it also meant that
the desired target was 2024-12, this commit makes this change
across the target platform
2025-01-14 21:12:41 -05:00
John Dallaway
85a0e1c0c0 Fix "Creating a CMake Project" cross-reference 2025-01-14 21:14:59 +00:00
Jonah Graham
7a259a90ae
Store git and CI info in output folder (#1003)
Fixes #1001
2025-01-14 14:47:24 -05:00
ewaterlander
8e157798fe
Description of the Core Build System. (#960)
A brief explanation of what the Core Build System is for end users.
2025-01-14 14:15:18 -05:00
Jonah Graham
9aa3144840 Generate more of the documentation with asciidoc and automate more
- Migrate all getting_started from html to adoc
- Document (in README.md) notes on migrating html to adoc
- Reorganize generation of adoc slightly so that
  - all directories can be generates at once
  - output suffix changed to htm so that migrated files
    exist at the same URL on help.eclipse.org
- Add generation to the cleanliness checks to ensure that the
  html matches adoc
- Manage the adoc headers with a script as that is a large section
  of copy-pasted code on each adoc file (see README + adoc-headers.txt)
- Move maven version info to pluginManagement (consistency with other
  maven plug-ins)
- New profile "asciidoc-auto-refresh" which will auto build the
  files as edited.

Prerequisite of #992
2025-01-14 13:05:53 -05:00
Jonah Graham
f019b916a6 Font Awesome 4.7
As downloaded from https://fontawesome.com/v4/assets/font-awesome-4.7.0.zip
Will be used in next commit to remove remote use of font awesome
in asciidoctor:
https://docs.asciidoctor.org/asciidoctor/latest/html-backend/local-font-awesome/
2025-01-14 13:05:53 -05:00
Tobias Hahnen
1a8b186576
Add SonarQube for Eclipse to the list of addons for CDT (#997)
This is based on the discussion #988 as a first baby step.
2025-01-09 10:30:36 -05:00
Jonah Graham
2f55372836
Remove New C and New C++ Project Wizard top-level entry points (#993)
Fixes #965
2025-01-07 10:02:19 -05:00
Jonah Graham
39ee2eded4
Update to latest versions of build tools (#986)
Beta versions of maven plugins are omitted from this
upgrade.

A new version of Tycho brings in an update ECJ which means some
of the class files are different, hence the need to bump versions
of bundles too.

A new calendar year brings an update to Copyrights
2025-01-06 20:37:10 -05:00
Jonah Graham
ae9f145856
Always show CDT Debug Preference Pages (#974)
The CDT Debug Activites was originally added when we had two
distinct debuggers in CDT, the DSF one and the CDI one. To
eliminate confusion the preferences for the respective
debug infrastructures were only displayed if users actually
ran such a debug session.

Now with just one debug infrastructure, we should always display
the preference pages. It also removes some confusion that some
preference pages weren't visible until after you started the
debug session. So for example, users couldn't turn on or off
a bunch of default settings until after creating and launching
a debug session.

I have left the enableActivity call in GdbLaunchDelegate in
case any extenders were hiding some of their UI behind that key.

The only exception in the above is the View Performance preference
page which was misplaced in the top level Run/Debug preference
tree, even though it is CDT specific. That preference page has
been re-parented to C/C++ -> Debug

Fixes https://github.com/eclipse-cdt/cdt/issues/972
2025-01-06 12:46:55 -05:00
John Dallaway
95a8c1999c Extend GNU toolchain language standard options for MBS 2024-12-29 16:55:18 +00:00
Jonah Graham
87660ae05c Update CDT setup for new branch name of cdt-lsp
See https://github.com/eclipse-cdt/cdt-lsp/issues/384
2024-12-28 10:51:16 -05:00
Jonah Graham
c52f02bd1c Update images to Dockerfiles from commit dfdc174b6d 2024-12-28 10:48:45 -05:00
Jonah Graham
dfdc174b6d Update and refactor Dockerfiles to newer Ubuntu
The docker images all have new, simpler names and use Ubuntu 20.04
(instead of 18.04) as their base.

A few new tools have been added, specifically what is needed for:

- Linux on RISC-V - see #980
- Winodows on ARM - see #969

Fixes #976
2024-12-28 10:48:30 -05:00
Jonah Graham
344d715b83 Allow PTY to not load WinPTY on Windows
Refactors the initialization code of PTY to allow code to avoid
loading WinPTY if it isn't needed. The previous code would
load WinPTY even if ConPTY was in use.

To achieve this the code was refactored to have cleaner state
with a new field ptyType that replaces isConPTY, isWinPTY and
hasPTY.

This is needed so that WoA can run without needing to port the
unneeded WinPTY library. In particular, the winpty.dll and
pty.dll are no longer used on WoA.

Part of #969
2024-12-28 10:48:30 -05:00
Tue Ton
83e52ef18c Add native support for Windows on Arm64 (#971)
- add a new fragment 'org.eclipse.cdt.core.win32.aarch64' containing
re-compiled Arm64 natives suitable for the Windows on Arm64 platform.

- add the 'serial.dll' binary re-compiled for Windows on Arm64.

- add the win32/win32/aarch64 environment triplet to various Maven
build scripts to support building CDT software for that environment.

The updated dlls/exes are not included in this commit and will be provided
in subsequent commits with the corresponding update to build infrastructure

Part of #969
2024-12-28 10:48:30 -05:00
ewaterlander
8b5f3d1a90
Add improved CBS launch configuration for local applications to N&N (#979) 2024-12-18 15:08:17 -05:00
John Dallaway
139907d9c6 Add help content support for C/C++ editor preference pages 2024-12-17 21:24:13 +00:00
张博
3269718d58
Fixed the loading failure issue of Control Flow Graph view (#951)
(Window ->Show View ->Other... ->C/C++->Control Flow Graph).
2024-12-17 12:15:10 -05:00
Jonah Graham
a24f93daa9
Publish bleeding edge builds to download.eclipse.org (#975)
Fixes https://github.com/eclipse-cdt/cdt/issues/966
2024-12-16 20:21:27 -05:00
ewaterlander
139fe3da96
Common tab for Core Build local launch configuration. (#970)
Added the Common tab. For instance handy for redirecting program
output to a file.
2024-12-15 16:26:10 -05:00
John Dallaway
ac25404bc9 Add help content anchor for C/C++ editor contributions 2024-12-13 15:32:21 +00:00
ewaterlander
de78b0f4a2
Core Build project without binaries. (#959)
Do not check for binaries in the project directory if the user defined
a binary in the Main tab. This supports the case where the user
disables auto build and selects a binary outside the project directory.
Otherwise the binaries check would stop the launch with the message
that no binaries are found in the project.
2024-12-12 20:15:01 -05:00
ewaterlander
f259d60aa3
Debugger and Source tabs for the Core Build launch configuration. (#950)
The launch configuration for local Core Build projects got the
Debugger and Source tabs in debug mode. Now the user can set the stop
at startup, a specific debugger, and all other Debug options as we
know from Managed Build projects.

The GdbLaunch class automatically picks up all the debug settings from
these new tabs. No additional code was needed for that.

The composition of Core Build tab groups is now fully done via the
launchConfigurationTabGroups extension-point.

This change relates to #758. It affects all Core Build projects,
including CMake projects.
2024-12-10 12:08:08 -05:00
Erwin Waterlander
9e9be4a5e2 Restore CoreBuildMainTab
Some checks failed
Build and Test / build (push) Has been cancelled
Code Cleanliness Checks / build (push) Has been cancelled
License vetting status check / call-license-check (push) Has been cancelled
* Restored class CoreBuildMainTab, because it is used by others.
  Created a new class CoreBuildMainTab2.
* Initialize CMainTab2.fDontCheckProgram.
2024-11-27 10:29:55 -05:00
Erwin Waterlander
5639ba9ff9 Updated Main Tab for Core Build local launch configurations.
A new Main Tab was created for Core Build local projects based on the Main
Tab used for the classic Managed Build projects. It adds these
features:

* Option to select a different binary.
* Option to control launch pre-builds.

The default value for the binary is empty string. With empty string
the behaviour for binary selection stays the same as it was.

The project name is fixed and cannot be changed. A Core Build launch
configuration is created with the project and tied to it.

There is no option to select a build configuration, because for Core
Build projects this is selected via the LaunchBar's Launch Mode.

This change relates to #758. It affects all Core Build projects,
including CMake projects.
2024-11-27 10:29:55 -05:00
John Dallaway
9b6bb0711f Add "Creating a CMake Project" help page
Some checks failed
License vetting status check / call-license-check (push) Failing after 0s
Build and Test / build (push) Has been cancelled
Code Cleanliness Checks / build (push) Has been cancelled
2024-11-12 08:39:30 +00:00
John Dallaway
fb20d6cc9a Use relative path to documentation images folder for GitHub
Some checks failed
License vetting status check / call-license-check (push) Failing after 0s
Build and Test / build (push) Failing after 5s
Code Cleanliness Checks / build (push) Failing after 3s
2024-11-07 21:16:23 +00:00