This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

MI example


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]