Commit graph

36348 commits

Author SHA1 Message Date
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
Jonah Graham
c9fa638d3d Update images to Dockerfiles from commit 46e37c6d22 2024-06-23 17:45:59 -04:00
Jonah Graham
46e37c6d22 Use CDT's container to run all code cleanliness checks
We need a new docker container for GitHub that runs as the
same uid that GitHub actions uses so permissions all work
correctly.
2024-06-23 17:41:16 -04:00
Jonah Graham
24d9bd1834
Correct formatting of C code (#843)
Apply the coding standards to the C code from #840
2024-06-23 14:35:34 -04:00
Jonah Graham
f39fa5596a Bump version of o.e.cdt.core.native 2024-06-23 12:07:26 -04:00
Andreas Dangel
7bd8d52c6c Speed up closing all file descriptors in the child process (Fixes #835)
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-23 12:07:26 -04:00
Jonah Graham
0f08a76a9d
Add link to new entry point for CDT calls (#838) 2024-06-21 14:26:20 -04:00
John Dallaway
6c2eb27ff7 Add GNU archiver other objects option to MBS 2024-06-21 17:48:49 +01:00
Jonah Graham
0583a0568d Bump version number for org.eclipse.tm.terminal.control 2024-06-19 21:45:03 -04:00
Jonah Graham
229c55c9e2 Add support for String Terminator to be ESC \
This fixes support to properly identify the end of
OSC control sequences which can be terminated
with a BEL or ESC \.

Fixes https://github.com/eclipse-cdt/cdt/issues/831
2024-06-19 21:45:03 -04:00
John Dallaway
ba16b7008d XML self-closing element consistency clean up only 2024-06-19 08:23:11 +01:00
John Dallaway
736862e805 Extend GNU toolchain optimization options for MBS
Add -Og and -Oz to the option enumerations for both C and C++ compilers.
2024-06-18 20:04:55 +01:00
Jonah Graham
2fbb42119e
p2 composites for CDT 11.6 and CDT-LSP 2.0 (#823) 2024-06-12 13:47:10 -04:00
betamax
0f36d5dba1
On createBuildConfiguration, reset project's ScannerInfoProvider (#817)
When the project's active IBuildConfiguration has the default name and
the chosen ICBuildConfigurationProvider.getCBuildConfiguration does not
support the IBuildConfiguration.DEFAULT_CONFIG_NAME and returns null,
this can cause the project's ScannerInfoProvider to become "stuck"
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=413357) on the wrong
setting (eg LanguageSettingsScannerInfoProvider instead of
ICBuildConfiguration) until Eclipse is restarted or the project is
closed and reopened. When this happens, the indexer does not function.

This problem may arise if an ISV contributes a
ICBuildConfigurationProvider which has very specific naming conventions
for it's build configurations.

The solution uses the API (resetCachedScannerInfoProvider(project)),
introduced by 413357, to reset the project's ScannerInfoProvider when a
new ICBuildConfiguration is created.
2024-06-12 08:56:47 -04:00
Jonah Graham
4e1a7bc297
Start building against Eclipse Platform 4.33 I-builds (#820) 2024-06-11 13:16:28 -04:00
Jonah Graham
7fcfbb0f96
Prepare repo for 11.7.0 development (#813) 2024-06-05 13:19:53 -04:00
G. Hentschke
9f85daf44b
[#808] Support overriden default-editor-association in EditorUtility (#809) 2024-05-31 13:16:03 -04:00
ewaterlander
d8328fb061
Remove 'Experimental' label from Core Build Makefile projects. (#805)
Removed the 'Experimental' label in project creation wizard for Core
Build Makefile projects. Seven years after the inception it's time to
remove it. Core Build Makefile is now in a usable state. The
'Experimental' label scares users away from it, making them fall back
to the old Managed Build Makefile projects.
2024-05-30 09:25:37 -04:00
Jonah Graham
4eb08c8554
Explicitly set application id for standalone debugger (#804) 2024-05-29 14:31:45 -04:00
ewaterlander
cd0292a4fc
LLVM optimization remarks. (#803)
Added support for LLVM optimization remarks to the GCC c/c++ error
parser. They were falsly treated as errors (OtherError). Now they are
treated as generic infos. GCC has no diagnostic messages of 'remark'
type. Since GCC and LLVM messages are very similar, no separate LLVM
error parser was created.

Fixes #752
2024-05-29 08:53:59 -04:00
John Dallaway
4db7bb9971 Restore correct filterPattern expressions 2024-05-28 20:25:15 +01:00
John Dallaway
563a2ad7b5 XML whitespace clean up only 2024-05-28 14:36:43 +01:00