Library interface to GDB

Stan Shebs shebs@cygnus.com
Mon Jun 7 17:49:00 GMT 1999


   Date: Tue, 08 Jun 1999 00:36:37 +0000
   From: Brendan Simon <brendan@dgs.monash.edu.au>

   How do other GUIs (DDD, VIDE, etc) currently interface with GDB ?

Usually by running GDB as a subprocess and controlling all the command
input and output.  This works better than one might imagine, since the
GDB commands were specified on the back of the stone tablets that
Moses brought down from Mt Sinai, and thus don't change often :-), and
the output has a fairly consistent form as well.

On the other hand, as someone commented, you do have to do some
parsing work, and there is no guarantee that the command interface
won't change in some way that is deemed helpful for users, but
confuses the GUI.

								Stan


More information about the Gdb mailing list