Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Multi-core How configure GDB session programmatically ?

This came up in a conversation I had with a field expert last week. Having multiple binaries/executables per project from what I’m told is pretty common and something we need to support better.

There is the Launch Group launch configuration type which is supposed to be able to co-ordinate multiple launches in one. This is probably what you’re looking for.

I also have on the drawing board, a multi-launch capability for the launch bar that lets you specify a list of triples (mode, config, target).

I’d like to explore the right way to do this. At the very least, we should never assume one binary per project and need to treat binaries as more of a first class citizen.

Thanks for bringing this up and hope that helps.

From: <cdt-dev-bounces@xxxxxxxxxxx> on behalf of Christelle BURGUERA <Christelle.BURGUERA@xxxxxx>
Reply-To: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
Date: Monday, September 7, 2015 at 4:44 AM
To: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
Subject: Re: [cdt-dev] Multi-core How configure GDB session programmatically ?

Hi Marc,


Thank you to answer me !


In fact I’ve two different binaries, but one project (I want to add a new wizard for a new project type who will generate two debug configuration). The source will be instrumented and the makefile will be differents.

I want to add programmatically a section under the launch configuration to add the two binaries and launch a debug session, so yes I want to trigger a Debug session programmatically.


So, I want to know, if I have to do 2 debug sessions or if exists a kind of “double” debug session ?


I hop, I’m clear !


Many thanks !

Have a good day !



From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Marc Khouzam
Sent: Friday, September 04, 2015 4:07 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Multi-core How configure GDB session programmatically ?


Hi Christelle,

I am not sure what you are asking exactly.

A binary running on a multi-core system is handled automatically by the OS, and a single Debug session should work fine.

If you are talking about debugging multiple processes, that is also supported by a single Debug session.

If you want to trigger a Debug session programatically, that can be done easily and I can point you to an example
of how Trace Compass does this to visualizer GDB traces.

I'll let you clarify your questions before getting into more details.


From:cdt-dev-bounces@xxxxxxxxxxx [cdt-dev-bounces@xxxxxxxxxxx] on behalf of Christelle BURGUERA [Christelle.BURGUERA@xxxxxx]
Sent: September 4, 2015 8:47 AM
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] Multi-core How configure GDB session programmatically ?

Hi all !


I’ll work on multi-core problematical very soon.

And I think about how can I’ll do …


How can you launch the debug ?

2 GDB sessions or one particular GDB session if exists such a think ???

Do you know where can I find a piece of code explaining to me ?


Many thanks for your attention !


Back to the top