This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
MI example
- From: Tom Tromey <tromey at redhat dot com>
- To: Project Archer <archer at sourceware dot org>
- Date: Wed, 11 Feb 2009 13:38:47 -0700
- Subject: MI example
- Reply-to: Tom Tromey <tromey at redhat dot com>
At the meeting Phil asked for an example of debugging an MI session.
What I usually do is put the needed MI statements into a file. I
don't think there is an easy way to extract these from a gdb test, but
you could try running with a few --verbose options and see if anything
shows up. Or you could try hacking the mi_* procs to log what they
send to gdb, assuming they don't already.
Once I have a file of MI commands, I just run gdb to test it:
gdb --interpreter=mi2 --batch < file
Or you can run that inside gdb to debug it directly.
HTH,
Tom