Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Eclipse CDT launch configuration and Launch Target setting


Hi All,


Could someone help me with managing the Eclipse CDT launch configuration and Launch target setting for our custom project?


Here is our Core plugin.xml


<?eclipse version="3.4"?>

<plugin>

   <extension

         point="org.eclipse.debug.core.launchConfigurationTypes">

      <launchConfigurationType

            delegate="com.espressif.idf.launch.serial.internal.SerialFlashLaunchConfigDelegate"

            id="com.espressif.idf.launch.serial.launchConfigurationType"

            modes="run"

            name="ESP-IDF Application"

            public="true">

      </launchConfigurationType>

   </extension>

   <extension

         point="org.eclipse.launchbar.core.launchTargetTypes">

      <launchTargetType

            id="com.espressif.idf.launch.serial.core.serialFlashTarget"

            provider="com.espressif.idf.launch.serial.SerialFlashLaunchTargetProvider">

      </launchTargetType>

   </extension>

   <extension

         point="org.eclipse.launchbar.core.launchBarContributions">

      <configProvider

            class="com.espressif.idf.launch.serial.internal.SerialFlashLaunchConfigProvider"

            descriptorType="org.eclipse.cdt.debug.core.coreBuildDescriptorType"

            priority="10">

      </configProvider>

   </extension>


</plugin>


Here is our UI plugin.xml


<plugin>

   <extension

         point="org.eclipse.launchbar.ui.launchTargetTypeUI">

      <launchTargetTypeUI

            id="com.espressif.idf.launch.serial.core.serialFlashTarget"

            labelProvider="com.espressif.idf.launch.serial.ui.internal.SerialFlashLaunchTargetLabelProvider">

      </launchTargetTypeUI>

      <wizard2

            class="com.espressif.idf.launch.serial.ui.internal.NewSerialFlashTargetWizard"

            icon="icons/esp_target.png"

            id="com.espressif.idf.launch.serial.core.serialFlashTarget"

            name="ESP Target">

      </wizard2>

   </extension>

   <extension

         point="org.eclipse.launchbar.ui.launchBarUIContributions">

      <buildTabGroup

            launchConfigType="com.espressif.idf.launch.serial.launchConfigurationType"

            launchDescriptorType="org.eclipse.cdt.debug.core.coreBuildDescriptorType"

            tabGroup="org.eclipse.cdt.launch.internal.corebuild.CoreBuildTabGroup">

      </buildTabGroup>

   </extension>

   </extension>

</plugin>


Using the above, If I create an ESP-IDF Applicationlaunch configuration how/where can I set the launch target(ESP-IDF Target, not Local Target in my case) for that? I couldn't find any extension point to link the launch configuration and target with it.


What is happening now is, If I create a new launch configuration for the ESP-IDF Application, the Launch Target combo from the launch bar is disappearing, and internally it's configuring the target to the default Local target though one of the ESP-IDF Target is selected in the UI. What I would like to do is, instead of configuration the Local Target for a new launch configuration I would like to set the ESP-IDF Target if it's already available so that I won't lose my target toolchain information while building/indexing/debugging.


Best Regards,

Kondal




Back to the top