Ambuja
Ambuja

Reputation: 196

Invoke and control GDB from c++

Is there any way to invoke GDB and control, access it from c++ program?

Upvotes: 3

Views: 341

Answers (1)

wilx
wilx

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

Related Questions