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 ?

Hi Marc,

 

I’ve seen this page, but I want to have the control of the debug launches in a kind of “all package way” like the single debug now.

But I keep in mind this page and I’ll test it.

 

Thank you

Christelle

 

 

From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Marc Dumais
Sent: Tuesday, September 08, 2015 3:04 PM
To: cdt-dev@xxxxxxxxxxx
Subject: Re: [cdt-dev] Multi-core How configure GDB session programmatically ?

 

Hi Christelle,

Have you tried this:

https://wiki.eclipse.org/CDT/User/FAQ#How_do_I_use_multi-process_debugging.3F

Regards,

Marc

On 09/08/2015 08:03 AM, Christelle BURGUERA wrote:

Hi Doug,

 

Yes it‘s totally what I want to do.

 

What I think to do :

We have now our own project type (based on ansi c project), when the user select a multi-core board under the wizard, I’ll generated (programmatically.. always ;) ) 2 debug configurations which generate 2 binaries :

 

I’ll add widgets (text area and browse button) under launch configuration to add another binary file on Main tab.

 

So, the question that remains unresolved, it’s how launch the debug session ?

Should I launch 2 different debug sessions ?

 

Thank you !

Christelle

 

From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Doug Schaefer
Sent: Monday, September 07, 2015 8:13 PM
To: CDT General developers list.
Subject: 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.

Doug.

 

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 !

Christelle

 

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.

marc


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 !

Chris




_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev

 


Back to the top