Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Automatically attach GDB to a process


I develop libraries for a server and use eclipse as debugging frontend
for GDB. I need to write a plugin which is more or less a macros.
Actually I need to implement a function that:

1) generates an 'attach to' debugging profile with a fixed programm
name (this one can be probably created manually)
2) attaches GDB to a process with that process name (I can locate a PID as well)
3) changes the perspective (happends automatically after step 2)
4) presses 'continue' on the first error (we always get the first
error since the main process does not contain debugging symbols).

Well, it is more or less a macro like those one can find in Visual Studio.

Thanks in advance.

Back to the top