GDB C API -- does such a thing exist?

Ömer Sinan Ağacan <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAMQQO3=gR_6=D__Q_rn2Q8LQmE+bdokhAmbKh6fEkkNMH42fxA@mail.gmail.com>
Do we have a C API for GDB? Something that allows me to run all the
GDB commands/functions that I can run in GDB prompt, but without
messing with GDB prompt?

Python API is not great for what I want to do. I want to run GDB
inside a program, search for some specific currently-running
processes, attach to them, add some breakpoints etc. although all of
those are possible with Python API, 1) I'm not huge fan of the
language 2) I feel like most things would be a lot easier if I could
use a C API that allows me to drive GDB itself.

Thanks.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.