Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Multi-process debugging questions

Hi,

> 1. Is the a way to automatically attach to child processes when they are spawned by the process being debugged?

I haven't tried with the current support for multi-process.  It may work already, but if it does not, my guess is it
will be simple to enable.

> 2. Is the a way to attach to multiple processes using a single GDB instance?

this is what I recently posted when I thought Doug was asking :-)
http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg21003.html
Copied below

==

The support for multi-process is being added to HEAD gradually.
This is the bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=237306

First, you must know that you will need GDB 7.2 to do this.
Although GDB 7.1 would have been sufficient, it didn't have the
proper MI commands yet, so we did the work for GDB 7.2.

What is already available is to attach to multiple processes using
a local attach session.

Breakpoints are not properly working yet, but Onur posted a patch 
recently, which I'm hoping to look at in the coming few days.

So, launch a local attach session and press the green connect
button in the debug view to keep attaching to new processes.
Those processes have to be running already.

To get a remote attach session we are just missing a prompt to ask
the user where the binary file is.  GDB can 'guess' the location for
a local attach session, but not a remote one.  This prompt brings up
again the question of how to handle the UI for such cases.  I liked 
the idea of using different launches as EDC does, but I'm not sure 
how that is going to feel.  I have an entry on my TODO list to
prototype it, but I don't know when I'll find the time.

Having your opinions on usability will greatly help get this
finalized.

Marc

________________________________________
From: cdt-dev-bounces@xxxxxxxxxxx [cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Dominique Toupin [dominique.toupin@xxxxxxxxxxxx]
Sent: January 13, 2011 8:26 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Multi-process debugging questions

The official awnser is it will be release for indigo but i will let marc k. describe how to do it from head
----- Original Message -----
From:"Sergey Prigogin" <eclipse.sprigogin@xxxxxxxxx>
To:"CDT General developers list." <cdt-dev@xxxxxxxxxxx>
Sent:2011/01/13 21:22
Subject:Re: [cdt-dev] Multi-process debugging questions





On Thu, Jan 13, 2011 at 5:17 PM, Dominique Toupin <dominique.toupin@xxxxxxxxxxxx<mailto:dominique.toupin@xxxxxxxxxxxx>> wrote:
On linux its yes to 1 and 2

This is great. Can it also be done from Eclipse with DSF-GDB?

-sergey

http://sourceware.org/gdb/current/onlinedocs/gdb/Forks.html#Forks
----- Original Message -----
From:"Sergey Prigogin" <eclipse.sprigogin@xxxxxxxxx<mailto:eclipse.sprigogin@xxxxxxxxx>>
To:"CDT General developers list." <cdt-dev@xxxxxxxxxxx<mailto:cdt-dev@xxxxxxxxxxx>>
Sent:2011/01/13 21:07
Subject:Re: [cdt-dev] Multi-process debugging questions




1. Is the a way to automatically attach to child processes when they are spawned by the process being debugged?
2. Is the a way to attach to multiple processes using a single GDB instance?

-sergey

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx<mailto:cdt-dev@xxxxxxxxxxx>
https://dev.eclipse.org/mailman/listinfo/cdt-dev

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top