Skip to content

Commit

Permalink
Merge branch 'eclipse-cdt:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
LizzMre authored Aug 17, 2023
2 parents d62e3fa + 2c3aaf8 commit abad4e0
Show file tree
Hide file tree
Showing 482 changed files with 5,569 additions and 1,640 deletions.
15 changes: 5 additions & 10 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,11 @@ A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Version Information (please complete the following information):**
- OS and OS Version/extra details: [e.g. Windows, Linux, macOS]
- Eclipse Version from Help -> About [e.g. 2023-09, 4.28]
- CDT Version from Help -> About -> Installation Details -> Features tab [e.g. 10.3.1, 11.2.0]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
Add any other context about the problem here. For example the error log (in workspace/.metadata/.log) or for GDB interaction issues the [GDB traces](https://github.com/eclipse-cdt/cdt/tree/main/FAQ#ive-been-asked-for-gdb-traces-where-can-i-find-them)
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: maven
directory: /
schedule:
interval: daily
commit-message:
prefix: fix
prefix-development: chore
include: scope
labels:
- dependencies
11 changes: 6 additions & 5 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Build and Test

on:
push:
branches: [ "main", "cdt_11_0" ]
pull_request:
branches: [ "main", "cdt_11_0" ]
on: [push, pull_request]

jobs:
build:
Expand All @@ -31,6 +27,10 @@ jobs:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Set up Maven
uses: stCarolas/setup-maven@07fbbe97d97ef44336b7382563d66743297e442f # v4.5
with:
maven-version: 3.9.2
- name: Install GCC & GDB & other build essentials
run: |
sudo apt-get -y install build-essential gcc g++ gdb gdbserver
Expand All @@ -41,6 +41,7 @@ jobs:
run: |
export DISPLAY=:99
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
echo 0| sudo tee /proc/sys/kernel/yama/ptrace_scope
mvn \
clean verify -B -V \
-Dmaven.test.failure.ignore=true \
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/code-cleanliness.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Code Cleanliness Checks

on:
push:
branches: [ "main", "cdt_11_0" ]
pull_request:
branches: [ "main", "cdt_11_0" ]
on: [push, pull_request]

jobs:
build:
Expand All @@ -21,6 +17,10 @@ jobs:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Set up Maven
uses: stCarolas/setup-maven@07fbbe97d97ef44336b7382563d66743297e442f # v4.5
with:
maven-version: 3.9.2
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install -y --no-install-recommends \
Expand All @@ -29,7 +29,11 @@ jobs:
run: |
curl -sL https://download.eclipse.org/eclipse/downloads/drops4/R-4.23-202203080310/eclipse-SDK-4.23-linux-gtk-x86_64.tar.gz | tar xz
- name: Run Check Code Cleanliness
run: ECLIPSE=$PWD/eclipse/eclipse ./releng/scripts/check_code_cleanliness.sh
run: ECLIPSE=$PWD/eclipse/eclipse ./releng/scripts/check_code_cleanliness_only.sh
- name: Run Bundle Versions Bumped
run: ./releng/scripts/check_bundle_versions.sh
- name: Report on Bundle Versions Bumped
run: ./releng/scripts/check_bundle_versions_report.sh
- name: Upload Logs
uses: actions/upload-artifact@v3
if: success() || failure()
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/licensecheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This workflow will check for Maven projects if the licenses of all (transitive) dependencies are vetted.

name: License vetting status check

on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
issue_comment:
types: [created]

jobs:
call-license-check:
uses: eclipse/dash-licenses/.github/workflows/mavenLicenseCheck.yml@master
with:
projectId: tools.cdt
secrets:
gitlabAPIToken: ${{ secrets.GITLAB_API_TOKEN }}
2 changes: 1 addition & 1 deletion .mvn/extensions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<extension>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-build</artifactId>
<version>2.7.1</version>
<version>4.0.1</version>
</extension>
</extensions>
19 changes: 16 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,22 @@ pipeline {
timestamps()
}
stages {
stage('initialize PGP') {
steps {
container('cdt') {
withCredentials([file(credentialsId: 'secret-subkeys.asc', variable: 'KEYRING')]) {
sh 'gpg --batch --import "${KEYRING}"'
sh 'for fpr in $(gpg --list-keys --with-colons | awk -F: \'/fpr:/ {print $10}\' | sort -u); do echo -e "5\ny\n" | gpg --batch --command-fd 0 --expert --edit-key ${fpr} trust; done'
}
}
}
}
stage('Code Formatting Checks') {
steps {
container('cdt') {
timeout(activity: true, time: 30) {
withEnv(['MAVEN_OPTS=-XX:MaxRAMPercentage=60.0']) {
sh 'MVN="/usr/share/maven/bin/mvn -Dmaven.repo.local=/home/jenkins/.m2/repository \
sh 'MVN="/jipp/tools/apache-maven/latest/bin/mvn -Dmaven.repo.local=/home/jenkins/.m2/repository \
--settings /home/jenkins/.m2/settings.xml" ./releng/scripts/check_code_cleanliness.sh'
}
}
Expand All @@ -25,8 +35,10 @@ pipeline {
container('cdt') {
timeout(activity: true, time: 20) {
withEnv(['MAVEN_OPTS=-XX:MaxRAMPercentage=60.0']) {
sh "/usr/share/maven/bin/mvn \
withCredentials([string(credentialsId: 'gpg-passphrase', variable: 'KEYRING_PASSPHRASE')]) {
sh '''/jipp/tools/apache-maven/latest/bin/mvn \
clean verify -B -V \
-Dgpg.passphrase="${KEYRING_PASSPHRASE}" \
-Dmaven.test.failure.ignore=true \
-DexcludedGroups=flakyTest,slowTest \
-P baseline-compare-and-replace \
Expand All @@ -38,7 +50,8 @@ pipeline {
-Dcdt.tests.dsf.gdb.versions=gdb.10,gdbserver.10 \
-Dmaven.repo.local=/home/jenkins/.m2/repository \
--settings /home/jenkins/.m2/settings.xml \
"
'''
}
}
}
}
Expand Down
7 changes: 5 additions & 2 deletions NewAndNoteworthy/CDT-11.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,22 @@ This is the New & Noteworthy page for CDT 11.1 which is part of Eclipse 2023-03

# Release Notes

# C++ Language support

Numerous improvements to C++ language support have [been implemented for CDT 11.1](https://github.com/eclipse-cdt/cdt/pulls?q=is%3Apr+is%3Aclosed+label%3Alanguage+milestone%3A11.1.0).

# API Changes, current and planned

Please see [CHANGELOG-API](CHANGELOG-API.md) for details on the breaking API changes in this release as well as future planned API changes.

## GCCToolchain allows custom parsing of `#define` lines

See new method `matchDefines` introduced in `GCCToolChain`.
See new method [`matchDefines` introduced in `GCCToolChain`](https://github.com/eclipse-cdt/cdt/blob/920f7d85a56bf60e9e5befeea42779bf9b4021d2/build/org.eclipse.cdt.build.gcc.core/src/org/eclipse/cdt/build/gcc/core/GCCToolChain.java#L537-L552).

# Noteworthy Issues and Pull Requests

See [Noteworthy issues and PRs](https://github.com/eclipse-cdt/cdt/issues?q=is%3Aclosed+label%3Anoteworthy+milestone%3A11.1.0) for this release in the issue/PR tracker.

# Bugs Fixed in this Release

See [GitHub milestones](https://github.com/eclipse-cdt/cdt/milestone/3?closed=1)
See GitHub milestones [11.1.0](https://github.com/eclipse-cdt/cdt/milestone/3?closed=1) [11.1.1](https://github.com/eclipse-cdt/cdt/milestone/6?closed=1)
50 changes: 50 additions & 0 deletions NewAndNoteworthy/CDT-11.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Release Notes and New & Noteworthy page

This is the New & Noteworthy page for CDT 11.2 which is part of Eclipse 2023-06 Simultaneous Release

---

# Release Notes


# Build

## GNU PE64 Windows Parser

A new binary parser allows projects using a _MinGW GCC_ toolchain to make use of core CDT GNU tool support in the same manner as projects using a _Linux GCC_ toolchain.
For example, users may now invoke GNU `objdump` by double-clicking on a Windows PE64 executable file.
New projects using a _MinGW GCC_ toolchain are now configured to use the _GNU PE64 Windows Parser_ by default.
Existing projects may be configured to use the new parser via the _Binary Parsers_ list on the C/C++ Build > Settings project properties page:

<p align="center"><img src="images/CDT-11.2-gnu-pe64-parser.png" width="50%"></p>

## Cross GCC toolchain uses GNU Elf Parser

Enhancements to core CDT GNU tool support accommodate projects using a _Cross GCC_ toolchain in the same manner as projects using a _Linux GCC_ toolchain.
For example, users may now invoke a build of GNU `objdump` provided by the configured toolchain by double-clicking on an ELF executable file.
The correct GNU tool prefix (eg `arm-none-eabi-`) is provided by a CDT _Build Variable_ named `gnu_tool_prefix` when a project is configured to use the _GNU Elf Parser_.
New projects using a _Cross GCC_ toolchain are now configured to use this binary parser by default.
Existing projects may be configured to use the _GNU Elf Parser_ via the _Binary Parsers_ list on the C/C++ Build > Settings project properties page.

# API Changes, current and planned

Please see [CHANGELOG-API](CHANGELOG-API.md) for details on the breaking API changes in this release as well as future planned API changes.

## `FinalLaunchSequence.stepRemoteConnection()` and `FinalLaunchSequence.stepAttachRemoteToDebugger()` are deprecated

The remote connection for attach launch will be moved in the implementation of `IGDBProcesses.attachDebuggerToProcess()`

## New class `AbstractGnuToolPrefixMacro`

A new abstract class assists in the integration of managed build GNU toolchain extensions with core CDT GNU tool support.
Extenders may sub-class `AbstractGnuToolPrefixMacro` to describe the GNU tool prefix (eg `arm-none-eabi-`) used by their toolchain.
The resulting build macro may be associated with a managed build GNU toolchain extension using an `IConfigurationBuildMacroSupplier` to ensure that the correct prefix is used when invoking GNU tools such as `objdump`.
Refer to `org.eclipse.cdt.internal.build.crossgcc.CrossBuildMacroSupplier` for a usage example.

# Noteworthy Issues and Pull Requests

See [Noteworthy issues and PRs](https://github.com/eclipse-cdt/cdt/issues?q=is%3Aclosed+label%3Anoteworthy+milestone%3A11.2.0) for this release in the issue/PR tracker.

# Bugs Fixed in this Release

See [GitHub milestones](https://github.com/eclipse-cdt/cdt/milestone/5?closed=1)
29 changes: 29 additions & 0 deletions NewAndNoteworthy/CDT-11.3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Release Notes and New & Noteworthy page

This is the New & Noteworthy page for CDT 11.3 which is part of Eclipse 2023-09 Simultaneous Release

---

# Release Notes

# Build

## Default Binary File Viewer

Enhancements to the _Default Binary File Viewer_ accommodate archive files in the same manner as other binary files.
Users may now invoke GNU `objdump` by double-clicking on a GNU archive file.
In cases where the configured binary parser does not support the launching of GNU tools, the viewer now presents a hex dump of the binary file rather than raw text:

<p align="center"><img src="images/CDT-11.3-hex-dump.png" width="50%"></p>

# API Changes, current and planned

Please see [CHANGELOG-API](CHANGELOG-API.md) for details on the breaking API changes in this release as well as future planned API changes.

# Noteworthy Issues and Pull Requests

See [Noteworthy issues and PRs](https://github.com/eclipse-cdt/cdt/issues?q=is%3Aclosed+label%3Anoteworthy+milestone%3A11.3.0) for this release in the issue/PR tracker.

# Bugs Fixed in this Release

See [GitHub milestones](https://github.com/eclipse-cdt/cdt/milestone/7?closed=1)
Loading

0 comments on commit abad4e0

Please sign in to comment.