libmigdb (A GDB/MI interface library for C and C++) implements the GDB/MI (GNU DeBugger/Machine Interface) protocol as a library so you can create a GDB frontend without writing the "dialog" with GDB.