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

36082 commits

Author SHA1 Message Date
John Dallaway
82a235fbb9 Improve encapsulation within AbstractGnuToolPrefixMacro
Part of #361
2023-04-19 18:45:01 +01:00
John Dallaway
74d04781ba Add GNU_PE64 parser and AbstractGnuToolPrefixMacro to N&N
Part of #361
2023-04-19 05:44:05 +01:00
John Dallaway
0d9fa844bf Set tool prefix for spawning GNU tool processes
Allows the GNU tool prefix to be specified by a CDT build variable.

Modifies the Cross GCC toolchain description to provide the GNU tool
prefix.

Part of #361
2023-04-17 20:24:56 +01:00
John Dallaway
fe65ab6287 Set environment for spawning GNU tool processes
Allows GNU tools to be found on the PATH defined by the build
configuration of the containing project.

Part of #361
2023-04-16 09:09:47 +01:00
Jonah Graham
a9a7e8b027 Dispose image
Fixes cases that cause stack trace like this when opening terminal
connection dialog and selecting ssh type:

```java
!ENTRY org.eclipse.ui.ide 4 4 2023-04-13 15:57:20.632
!MESSAGE Not properly disposed SWT resource
!STACK 0
java.lang.Error: SWT Resource was not properly disposed
	at org.eclipse.swt.graphics.Resource.initNonDisposeTracking(Resource.java:172)
	at org.eclipse.swt.graphics.Resource.<init>(Resource.java:120)
	at org.eclipse.swt.graphics.Image.<init>(Image.java:605)
	at org.eclipse.jface.resource.URLImageDescriptor.createImage(URLImageDescriptor.java:300)
	at org.eclipse.jface.resource.DeferredImageDescriptor.createImage(DeferredImageDescriptor.java:85)
	at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:290)
	at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:268)
	at org.eclipse.tm.terminal.view.ui.panels.AbstractExtendedConfigurationPanel.createHostsUI(AbstractExtendedConfigurationPanel.java:400)
	at org.eclipse.tm.terminal.connector.ssh.controls.SshWizardConfigurationPanel.setupPanel(SshWizardConfigurationPanel.java:79)
	at org.eclipse.tm.terminal.view.ui.internal.dialogs.LaunchTerminalSettingsDialog$SettingsPanelControl.showConfigurationPanel(LaunchTerminalSettingsDialog.java:124)
	at org.eclipse.tm.terminal.view.ui.internal.dialogs.LaunchTerminalSettingsDialog$1.widgetSelected(LaunchTerminalSettingsDialog.java:317)
```
2023-04-13 17:01:44 -04:00
John Dallaway
45a6e7957b Add GNU PE64 binary parser for MinGW GCC toolchain
Part of #361
2023-04-13 21:54:36 +01:00
Alexander Fedorov
8fa6307edf
Merge pull request #364 from ruspl-afed/363
Employ dependabot for CDT repository #363
2023-04-13 17:59:02 +03:00
Alexander Fedorov
6d426dc26f Employ dependabot for CDT repository #363
Add dependabot config

Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2023-04-13 13:26:28 +03:00
Jonah Graham
c2b4143584 [releng] 2023-06 M1 dependencies 2023-04-10 18:34:39 -04:00
Dillon Shaffer
eb237ebcba Allow symmetrical patterns for replace keys
Update getReplaceKeys to allow for patterns with matching start and end delimiters. Previously, `%%key%%` would throw and OutOfBoundsException instead of matching the key inside the delimiters.
2023-04-10 18:33:40 -04:00
Igor V. Kovalenko
ad15e0e804 Add c++20 character types 2023-04-10 18:33:16 -04:00
Umair Sair
e8f17beeb5
Bug 528145 - Breakpoints are not working with remote attach launch (#336)
Looking at the logs, it seems that the regression is caused at 8bec791
where support for multi-process was added. We removed breakpoints
tracking support from final launch sequence and moved it to debug new
process and attach to process logic but none of these are run for remote
attach launch, hence breakpoint tracking is not started for remote
attach launch.

To fix the problem, IGDBProcesses.attachDebuggerToProcess(..) is updated
to handle remote attach launch as well instead of final launch sequence
handling it.

This commit is created after reverting 7bddb5f and 96839a0 which is the
older fix done to fix this issue and the other commit was to fix the
regression caused by the old fix.

The problem with older fix was that for non-stop mode, attach to process
was not working for remote launches when there is already a process
being debugged. Note that to use this feature, gdbserver should be
started with --multi option.

* Revert "Bug 580259: Not all remote session have a connected process"

This reverts commit 96839a029d.

* Revert "Bug 528145 - Attach debugger to a gdbserver remote session"

This reverts commit 7bddb5f4cb.
2023-04-10 18:32:11 -04:00
Jonah Graham
2777c17784 Simplify API document
Removed the manually maintained table of contents, instead use
the contents feature in GitHub to navigate. The spans have
all been removed because they were not working anyway, at least
on github.

This change was inspired by PR #336 where a contributor was updating
this document and I didn't think it was a great idea to send it back
to them to add the TOC entry.
2023-04-10 10:25:47 -04:00
Gesa HENTSCHKE
d2a5a57d01 Support IEditorAssociationOverride (#341) 2023-04-04 14:36:04 -04:00
Igor V. Kovalenko
6cf3e03c35 Allow disambiguating class constructor definition followed by semicolon
In this case member variable declaration would be longer (including
trailing semicolon) but it is not valid since a class C shall not contain
a non-static member of class C.
2023-04-04 14:34:54 -04:00
Igor V. Kovalenko
f768aed976 Add __builtin_is_constant_evaluated 2023-04-04 14:15:56 -04:00
Igor V. Kovalenko
3fdea6e31a Allow binary operator templates 2023-04-04 14:12:24 -04:00
Igor V. Kovalenko
385b915257 Do not error out failing to resolve function in dependend context
Detect if function set failed to resolve while instantiating for template-id
which still has dependend arguments. Since resolution still can succeed later
via ADL when template-id is fully instantiated, do not error out immediately
and return original evaluation to allow trying to instantiate later.
2023-04-04 14:10:40 -04:00
Jonah Graham
47275c3884 Remove reference to Navigator view that has been removed
The long deprecated for removal navigator view has been removed
from upcoming Eclipse Platform.

I don't know if there are other locations in CDT that are affected,
but this change covers the compilation failure of the removal.

xref: https://github.com/eclipse-platform/eclipse.platform.ui/issues/644
2023-04-02 17:17:37 -04:00
Jonah Graham
5cc606f29e Update JRE in oomph to require >= 17
Fixes #350
2023-04-02 16:30:30 -04:00
Jonah Graham
2c30db5fd2 Update promoted files for now archived releases 2023-03-20 13:34:11 -04:00
Jonah Graham
f3b07b07a5 Add CDT 11.1.1 to p2 composite
Part of #332
2023-03-20 13:27:35 -04:00
Jonah Graham
bc0baaeb3d Run Workflows on all branches and PRs 2023-03-20 09:49:44 -04:00
Jonah Graham
bc0bffec8a CDT 11.1.1 Release Notes updates
Part of #332
2023-03-20 09:27:32 -04:00
Jonah Graham
0dabaa15fb Handle null "DisplayName" in registry
Fixes #330
2023-03-20 09:21:57 -04:00
Erwin Waterlander
a6a4bfcf3b Binary not found in Core Build Makefile project
Fixed the problem for Core Build Makefile projects that the output
binary could not be found during launching when the user set the
Build Output Location to "Build in project directory".
The project was only looking for binaries in the "build" folder.
2023-03-19 15:18:51 -04:00
Erwin Waterlander
2b297c4355 Issue #167 - Core Build Makefile project build output folder.
* Issue Issue #167 was partly solved by PR #192 (commit 7911ac8a2b).
  This change fixes the problem that after closing and opening a
  Makefile project the wrong build output location was used for the
  default Run configuration.
  The cause was that StandardBuildConfiguration.buildContainer was
  null after opening the project.

Fixes #167
2023-03-17 11:11:24 -04:00
Jonah Graham
5db69e7f16
Correct year of 11.2 expected release
Fixes 21e923ada7 (r104842615)
2023-03-17 10:53:30 -04:00
Erwin Waterlander
50bddd886a Changed the template application to Hello World.
This provides a more useful template when making a simple Makefile
project.

Pulled out of #314
2023-03-16 11:45:57 -04:00
Igor V. Kovalenko
1f700ff100 Return IntegralValue.UNKNOWN if recursed creating CompositeValue
Currently CDT would return empty CompositeValue if recursion creating for class
type is detected. If this happens inside CompositeValue.computeForFunctionCall()
and class type has fields, this leads to an attempt to assign a value to
non-existent index into empty values array.

Fix this by returning usual IntegralValue.UNKNOWN and additionally checking
whether created value is actually a CompositeValue instance.
2023-03-16 11:44:28 -04:00
Igor V. Kovalenko
74621c1048 Restore counting iterations in computeContainsDeclaration cycle detector
A follow-up change to bug 509898 missed actually incrementing the counter,
restore it now.

Fixes: 5462bac381 ("Bug 509898 - IndexFileSet.containsDeclaration is slow and is causing UI freezes")
2023-03-16 11:14:16 -04:00
Igor V. Kovalenko
0923e66b7b Handle invalid empty c++17 fold expression early
One of Qt sample snippets contain (...) as placeholder for actual user code.
Parsing that leads to invalid class cast because buildExpression would return
fold expression token marker and not a proper ICPPASTexpression.

Fix that by handling this error early as invalid fold expression.
2023-03-16 11:14:06 -04:00
Igor V. Kovalenko
6ea3d70456 Allow const-qualified arg for __atomic builtins which accept that 2023-03-16 11:08:24 -04:00
Igor V. Kovalenko
3b72e60406 Resolve typedef before checking if type is unsigned 2023-03-16 11:07:34 -04:00
Igor V. Kovalenko
f1c15e3a3d Fix assertion evaluating binary shifts of comparison op results
Currently CDT evaluates result type of comparison ops to the converted type of
their operands. When floating point values are compared and then the result is
binary shifted this trips an assertion trying to promote floating point value.

Fix this by limiting operand types of binary shifts to integral or unscoped
enumerations. Additionally fix return type of comparison op to be boolean value.
2023-03-16 11:07:34 -04:00
Igor V. Kovalenko
c69eed48e3 Defer resolving function set if target is deferred class or constructor 2023-03-16 11:07:12 -04:00
Erwin Waterlander
a89ce59df2 Improved getting resources from the gcc commandline.
The old method assumed all resources were at the end of the line,
optionally followed by option -o.
Now the complete line is scanned for valid resource file extensions.
2023-03-16 10:55:56 -04:00
Igor V. Kovalenko
56e5da5aa5 Allow expansion with typeids in fold expression 2023-03-16 10:55:23 -04:00
Igor V. Kovalenko
a5d51f2def Fix type of value-dependent fold expression evaluation 2023-03-16 10:55:23 -04:00
Igor V. Kovalenko
4b4daec3b4 Consider variable templates while determining size of parameter pack 2023-03-16 10:55:23 -04:00
Jonah Graham
65ac74fad7 Updates to N&N for CDT 11.1 release
Part of #202
2023-03-15 10:41:10 -04:00
Jonah Graham
0318087295 CDT 11.1 p2 composites on download.eclipse.org
Part of #202
2023-03-15 10:16:26 -04:00
Jonah Graham
c18d06e84d Upgrade to Tycho 3.0.3 (latest)
Part of #320
See also #308
2023-03-14 14:02:47 -04:00
Jonah Graham
8940a9b331 Bump bundle versions changed due to new Tycho
When we update Tycho we pull in a new version of ECJ which means
we can get some differences in the class files even though
there is no difference in the source. This commit bumps
all the bundles that are affected by this.

This is kept as a separate commit from the Tycho update
because if we need to revert the Tycho update we would still
need to bump all these bundles to make jgit timestamp qualifier
happy.

Part of #320
See also #308
2023-03-14 14:02:47 -04:00
Jonah Graham
b2666eb578 Update copyright year on all features
Part of #320
2023-03-13 21:00:55 -04:00
Jonah Graham
a786552a81 Update versions of maven plugins
Part of #320
2023-03-13 14:20:50 -04:00
Jonah Graham
21e923ada7 [releng] Prepare repo for CDT 11.2 development
Part of #320
2023-03-13 13:54:48 -04:00
Jonah Graham
6776f6a1ee Fix maven at 3.8.7
Until we update Tycho to 3.0.3+ we use the older Maven

Thanks to @ghentschke for figuring this out in
f7761791be

Fixes #308
2023-03-06 20:24:55 -05:00
Jonah Graham
d4c87cef72 Run workflows on CDT 11.1 branch 2023-03-06 14:11:48 -05:00
Jonah Graham
aa6547fe50 [releng] 2023-03 RC1 dependencies 2023-02-27 18:58:00 -05:00