Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Can't have configuration-dependent binary parsers

Hi Norbert,

> The CDT 2.1 Extensibility Reference says that I can define a target platform for each configuration.

...

> The project properties dialog seems to assume that the binary parser settings are uniform for all configurations (different tab, configuration selection greyed out). Do we have a clash of concepts here?

If that is so: How can I get several binary parsers pre-set in the project type?

In the MBS work for 2.1, I intended to support binary parsers specified per configuration.  However, I discovered that the rest of CDT supports only specifying binary parsers per project.

The workaround would be to add all of the binary parsers to all of your configurations.  CDT is supposed to be able to figure out which one to use from examining the binary.

You might also want to submit a bugzilla enhancement request if you believe that binary parsers should be supported per configuration.

Regards,
Leo


-----Original Message-----
From: cdt-dev-admin@xxxxxxxxxxx [mailto:cdt-dev-admin@xxxxxxxxxxx] On Behalf Of Ploett Norbert
Sent: Thursday, March 10, 2005 2:33 AM
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] Can't have configuration-dependent binary parsers

Hello all,
 
I have a project type defined which has 3 configurations: Debug and Release for the target system, which is i386-ELF and 1 Simulation for testing on the windows host (i.e. i386-PE). The CDT 2.1 Extensibility Reference says that I can define a target platform for each configuration. But even though I did define the the target platforms only the PE parser is pre-set when I create a new project. 

Below are the relevant parts from my .plugin.xml.

The project properties dialog seems to assume that the binary parser settings are uniform for all configurations (different tab, configuration selection greyed out). Do we have a clash of concepts here?

If that is so: How can I get several binary parsers pre-set in the project type?

Thank for support,


Norbert

============================== Start .plugin.xml:
	<extension id="de.siemens.rmos.crossdevel" name="RMOS-Cygwin-Crossdevelopment Definitions" point="org.eclipse.cdt.managedbuilder.core.buildDefinitions">
		<projectType isAbstract="false" isTest="false" name="Executable (GNU on RMOS)" id="de.siemens.rmos.crossdevel.projectType">
			<configuration id="de.siemens.rmos.crossdevel.rmosemu.debug" name="Simulation" errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GASErrorParser" artifactExtension="exe" cleanCommand="rm -rf">
				<toolChain osList="win32" name="Tools Simulation" id="de.siemens.rmos.crossdevel.rmosemu.debug.tools">
					<!-- tool definitions -->
					<targetPlatform isAbstract="false" osList="win32" binaryParser="org.eclipse.cdt.core.PE" name="Simulation Target" id="de.siemens.rmos.crossdevel.simulation..tools.target"/>
				</toolChain>
			</configuration>
			<configuration id="de.siemens.rmos.crossdevel.rmos.release" name="Release" parent="cdt.managedbuild.config.gnu.cygwin.exe.release" errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.GASErrorParser" artifactExtension="exe" cleanCommand="rm -rf">
				<toolChain superClass="cdt.managedbuild.toolchain.gnu.cygwin.exe.release" id="de.siemens.rmos.crossdevel.rmos.release.tools" name="Tools RMOS Release">
					<!-- tool definitions -->
					<targetPlatform isAbstract="false" osList="other" binaryParser="org.eclipse.cdt.core.ELF" name="Release Target" id="de.siemens.rmos.crossdevel.release..tools.target"/>
				</toolChain>
			</configuration>
			<configuration id="de.siemens.rmos.crossdevel.rmos.debug" name="Debug" parent="cdt.managedbuild.config.gnu.cygwin.exe.debug" errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.GASErrorParser" artifactExtension="exe" cleanCommand="rm -rf">
				<toolChain superClass="cdt.managedbuild.toolchain.gnu.cygwin.exe.debug" id="de.siemens.rmos.crossdevel.rmos.debug.tools" name="RMOS Debug Tools">
					<!-- tool definitions -->
					<targetPlatform isAbstract="false" osList="other" binaryParser="org.eclipse.cdt.core.ELF" name="Debug Target" id="de.siemens.rmos.crossdevel.debug..tools.target"/>
				</toolChain>
			</configuration>
		</projectType>
	</extension>
============================== End .plugin.xml.
=======================
Dr.-Ing. Norbert Plött
Siemens A&D ATS 1
Gleiwitzer Str. 555
90475 Nürnberg
Tel.: +49 911 895 3484
Fax: +49 911 895 3715
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top