Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 4 years ago.
I want to make me a small GUI version of the GDB
command line program on Linux
to make debugging of small C
programs more easier. There may exists already some especially in IDEs but I want to make it for fun and get better known to GDB
.
Now I wanted to know whether GDB has a API so I can access GDB commands directly from code and I don't have to make a detour through the terminal for example with popen
.
If there does not exists such a API from GDB
, whats the simplest way to start GDB
hidden and send commands to it, retrieve outputs from it?