1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-03-28 14:56:28 +01:00
Commit graph

36369 commits

Author SHA1 Message Date
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
John Dallaway
171afed0b0 Add GNU archiver other objects option to N&N
Some checks failed
License vetting status check / call-license-check (push) Failing after 0s
Code Cleanliness Checks / build (push) Failing after 2m4s
Build and Test / build (push) Failing after 2m7s
2024-11-03 08:40:53 +00:00
raghucssit
be92da8f3b Use org.eclipse.cdt.debug.ui.debugging context bindings for Visualizer
Some checks failed
License vetting status check / call-license-check (push) Failing after 1s
Code Cleanliness Checks / build (push) Failing after 1m16s
Build and Test / build (push) Failing after 1m19s
and Executables Views.

Similar to Memory View and Debug Console View, We can use
org.eclipse.cdt.debug.ui.debugging for Visualizer and Executables Views

see https://github.com/eclipse-cdt/cdt/issues/918
2024-10-22 05:28:44 -04:00
Torbjörn Svensson
27b8da4ecd Classify unrecognized command line options as an error
Contributed by STMicroelectronics

Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2024-10-19 16:53:52 +02:00
Jonah Graham
4d0eaacf4a
Switch from javax to jakarta (#912) 2024-10-08 13:26:10 -04:00
Jonah Graham
e50f81b95b
Bump version to CDT 12.0.0 (#911) 2024-10-08 12:52:15 -04:00
Ali Azam Rana
f680907cab
fix(908): fix for the cmake tool chain removal function. (#909)
Resolves that the calculated ID in the removal function was different than the one in the add

Fixes #908
2024-10-08 11:02:41 -04:00
Jonah Graham
84b5a4c3ea Add a version of Dockerfiles with node included for cdt-gdb-adapter
This is a convenience for our sister project, eclipse-cdt-cloud,
that are relying on CDT's infrastructure to do some testing.

See https://github.com/eclipse-cdt-cloud/cdt-gdb-adapter/blob/main/src/integration-tests/README.md#running-the-tests-using-docker
2024-09-24 10:19:00 -04:00
ewaterlander
c51cecd75a
Support environment variables in Core Build projects for Local (#901)
Added an Environment tab to the Core Build launch configurations for
the Local target. Similar as the standard C/C++ Application launch
configurations for Managed Build.
2024-09-16 21:20:28 -04:00
Jonah Graham
cfe1db70b4
Use 2024-09 dependencies for CDT 12.0 development (#900) 2024-09-12 17:18:33 -04:00
Erwin Waterlander
36abcce9a5 Substitute variables in working directory 2024-09-12 17:17:09 -04:00
Erwin Waterlander
33194960c3 Support arguments and working directory in launching Core Build projects for Local
Added the CArgumentsTab to the Core Build launch configuration for the
Local target. This enables users to set command line arguments and
specify a working directory.
2024-09-12 17:17:09 -04:00
ewaterlander
a65d3d7f28
Add user additional CMake arugments at the end. (#814)
The additional CMake arguments added by the user in the launch
configuration UI are added at the end of the CMake command, such that
the user is able to override arguments set by the system.
2024-09-12 17:16:52 -04:00
ewaterlander
19a809d3e5
Launchbar build button always starts a build. (#812)
Fixed the problem that the LaunchBar build button was not working when
auto build was disabled in the launch configuration.

Fixes #765
2024-09-12 17:16:25 -04:00
betamax
efbba15eab
Adds capability to display warnings in LaunchBar Launch Config Dialog (#879)
Add SWTBot to test that the Launch Configuration, when opened via the
Launch Bar, displays a warning in the message area.

The Launch Bar Launch Configuration is, confusingly, handled by 2
different classes depending on whether a new configuration is being
created (NewLaunchConfigEditPage) or edited
(LaunchBarLaunchConfigDialog).

When using NewLaunchConfigEditPage, the existing
LaunchConfigurationTabGroupViewer.getWarningMessage() mechanism is used.
This was added to eclipse-platform in Bug 386673 (commit 231ef13).

When using LaunchBarLaunchConfigDialog (when editing), the new
getWarningMessage() mechanism, copied from the existing, is used.

In both classes above, logic was added to update the message when a tab
change occurs.
2024-09-12 17:16:09 -04:00
betamax
3ee0e61eed
Sets the CMake CMAKE_BUILD_TYPE define Fixes #807 (#810)
The CMAKE_BUILD_TYPE is added to CMake configuration build, based on the
active launch mode; DEBUG_MODE sets a buildType of "Debug", everything
else sets a buildType of "Release".
Note, the CMake CMAKE_BUILD_TYPE definition is not directly equivalent
to the Launch Bar Launch Mode; there might be a scenario where the user
wants to launch a debug session using the CMake Release build and not
run it. However, for most cases this is probably sufficient.

For Issue CMake projects are ignoring the Launch mode Run/Debug #807.
2024-09-12 17:15:24 -04:00
Ed Merks
219f94c82f
Update to the latest direct-from-maven dependencies (#894) 2024-09-12 17:15:02 -04:00
Torbjörn Svensson
9b09dce3a0 __DATE__ should expand with the name of the month in English
Contributed by STMicroelectronics

Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2024-08-30 14:03:24 +02:00
Torbjörn Svensson
3b6f1359f0 __DATE__ should have day prefixed with space
The documentation for GCC, and other compilers, stipulates that
__DATE__ with a day of month less than 10 should be prefixed by a space,
not a zero.

Contributed by STMicroelectronics

Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2024-08-30 14:03:24 +02:00
raghucssit
78d9a35bdd Migrate ToggleInstructionStepModeAction to
ToggleInstructionStepModeCommand.

All the contributions of the the action has been replaced
ToggleInstructionStepModeCommand.
Enabled when introduced. Which enabled the command only when C/CPP
application is under debug in Debug View.

see https://github.com/eclipse-cdt/cdt/issues/865
2024-08-27 08:28:14 +02:00
John Dallaway
e8605fdc14 Add AsciiDoc build infrastructure 2024-08-23 16:26:56 +01:00
John Dallaway
c4c11ad964 Detect MSYS2 UCRT64 toolchains for CDT Core Build 2024-08-17 22:42:31 +01:00
Torbjörn Svensson
54ebddc01c Added missing bracers in native code
Contributed by STMicroelectronics

Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2024-08-13 13:32:33 +02:00
John Dallaway
6ffa02911a Allow multiple parserPage XML elements
Eliminates warning on org.eclipse.cdt.ui/plugin.xml
2024-08-07 16:17:02 +01:00
alicetrifu
7420b12bb7
Compiler path in compile_commands.json must be absolute (#824)
Added code to create the absolute path of the compiler on compile_commands.json file

Fixes #822
2024-07-31 15:49:34 -04:00
John Dallaway
9e1be512cb Add ELF machine IDs for AVR32, MicroBlaze and V800 2024-07-28 03:45:53 +01:00
Jonah Graham
abe036e1ea
Updates for CDT 11.6.1 (#858) 2024-07-02 21:11:07 -04:00
Jonah Graham
12ef16f642
Fix target branch choices in new backport command usage (#851)
A side effect of borrowing Tycho's configuration
2024-06-28 19:27:22 -04:00
Jonah Graham
97f3d9a48c
Add support for backport command (#849)
Fixes https://github.com/eclipse-cdt/cdt/issues/842#issuecomment-2185102917
2024-06-28 23:18:00 +00:00
G. Hentschke
597eda2d60
Add enabled to JSON Compilation Database Generator prop page (#847) (#848)
Show the JSON Compilation Database Generator properties page only for
managed build projects.

fixes #847
2024-06-28 18:59:39 -04:00
Andreas Dangel
3875408070 Speed up closing all file descriptors in the child process (Fixes #835)
_This commit adds to #840 7bd8d52c6c to apply the same fix to
another place that does the same operation on all fds._

When _SC_OPEN_MAX (max nr of open files limit per process) is a very
big number, then closing all possible file handles can take a while.
This change first tries to use the syscall close_range() if available,
falling back to use /proc/self/fd to close only open file handles,
and lastly falling back to the old way of closing all possible handles
one after another.
In general, the first or second approach should be available
which speeds up the pty spawning.

Refs JetBrains/pty4j#147
Copied from 04685d870f
(which is EPL 1.0)

Co-authored-by: Sergey Simonchik <sergey.simonchik@jetbrains.com>
2024-06-27 20:08:16 -04:00