Skip to main content

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

Hi Jonah,

Yes, it was in my spam folder. Thanks for it.

Hi John. Thanks for the pointers. I'll give a try.

Best Regards,
Kondal

On Thu, Dec 10, 2020 at 5:58 PM Jonah Graham <jonah@xxxxxxxxxxxxxxxx> wrote:
Hi Kondal, 


It may have ended up in your spam folder, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=522316#c4 for a filter you can use in Gmail. 

HTH 
Jonah 



On Thu., Dec. 10, 2020, 01:57 Kondal Kolipaka, <kondal.kolipaka@xxxxxxxxx> wrote:
Hi All,

I'm sorry If made it complex in understanding. Any pointers on this, please.

In simple terms, when we create a new custom launch configuration how can we link the Launch Target. By default, it's setting the Local target as the default configuration how do set our custom target programmatically?

Please check the below for more details.

On Fri, Dec 4, 2020 at 6:15 PM Kondal Kolipaka <kondal.kolipaka@xxxxxxxxx> wrote:


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



_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev

Back to the top