This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: Library interface to GDB
- To: brendan@dgs.monash.edu.au
- Subject: Re: Library interface to GDB
- From: Stan Shebs <shebs@cygnus.com>
- Date: Mon, 7 Jun 1999 17:49:34 -0700
- CC: gdb@sourceware.cygnus.com
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