Version 1 of A weekend experiment with a Tk GUI for gdb

Updated 2010-10-04 07:01:42 by arjen

Arjen Markus (4 october 2010) I thought I'd give it a try - a Tcl/Tk GUI for the GNU debugger (gdb). Just to see what it takes. Well, it turned out to be both simpler and more complex than I thought at first:

  • You need Expect to control gdb - simply a pipe won't do it.
  • gdb produces different output depending on the command you gave - you need to match all of them
  • Making the user-interface intuitive enough will require hiding some peculiarities of gdb, like that you need the run command to start the program.

The script below is far from complete and I would not even claim it to be useful, but it was a nice experiment anyway.