Reputation: 196
Is there any way to invoke GDB and control, access it from c++ program?
Upvotes: 3
Views: 341
Reputation: 18228
Yes. Execute it with redirected input/output and simply control it through the pipes.
EDIT:
It depends on where you want to do it. On Windows you can use the following: http://msdn.microsoft.com/en-us/library/ms682499%28v=vs.85%29.aspx
On *nix, the steps described in Linux Pipes as Input and Output SO answer should do it.
Upvotes: 6