Add Cross GCC toolchain uses GNU Elf Parser to N&N

Part of #361
This commit is contained in:
John Dallaway 2023-04-24 14:43:48 +01:00
parent 07b03aca10
commit 2eaaa1ef0b

View file

@ -14,10 +14,18 @@ This is the New & Noteworthy page for CDT 11.2 which is part of Eclipse 2023-06
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 of the C/C++ Build > Settings project properties page:
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.
@ -30,7 +38,7 @@ The remote connection for attach launch will be moved in the implementation of `
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 `objcopy`.
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