Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] What is MI version for MIPlugin createCSession(...) call ?

The valid options are "mi1", "mi2" or "mi". The first two set the mi level of gdb to 1 and 2 respectively.
The last options allows gdb to use the highest mi level.
If your gdb supports level 2 it is recomenended to use "mi2". Otherwise, use "mi1". Unfortunately, the only way to check if the level two is supported is to try the commands with new options. For instance, the "environment-directory" command has new "-r" option in mi2. To find out which mi level is supported by your gdb do the following:
1. start gdb with -i mi option
2. enter "-environment-directory -r ."
The warning "No such file or directory" means that your gdb doesn't support mi2. Use "mi1" in this case.

----- Original Message ----- From: "Bob Sheehan" <bsheehan@xxxxxxxxxx>
To: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
Sent: Thursday, February 02, 2006 3:30 PM
Subject: [cdt-dev] What is MI version for MIPlugin createCSession(...) call ?


Hello,

I am extending the CDT GDBCDIDebugger with the latest CDT 3.0.1.
Actually I am porting an older CDT version and the new creatCSession API
has changed requiring a MI Version argument.

I am making the call:

Session session = MIPlugin.getDefault().createCSession(gdb,
"MI_VERSION_?", exe.getPath().toFile(), cwd, gdbinit, monitor);

BUT I do not know the Machine Interface (MI) Version to use in this
call.

As a result when I launch my configuration and run Debug from the
configuration dialog I get on the console:

Listening on port 56414 for connection from GDB:
59s58s57s56s55s54s53s52s51s50s49s48s47s46s45s44s43s42s41s40s39s38s37s3
6s35s34s33s32s31s30s29s28s27s26s25s24s23s22s21s20s19s18s17s16s15s14s13
s12s11s10s 9s 8s 7s 6s 5s 4s 3s 2s 1stimed out
Leaving target processor paused

And a dialog with text:

:error creating session: Interpreter MI_VERSION_? Unrecognized.

I've tried a bunch of strings for the place holder MI_VERSION_? But I
cannot figure out which MI version I am using. Running "gdb --version"
doesn't seem to give the required info. Perhaps there is a different
version of createCSession I should use ?


Thanks,

Bob Sheehan
Altera Corp.

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top