|  | 
|  | 
| 
| Re: Sending GDB command through CDT. What command do I need from CommandFactory? [message #110044 is a reply to message #109908] | Fri, 09 July 2004 11:00  |  | 
| Eclipse User  |  |  |  |  | Hi Mikhail, I get the following message in the console window:
 "need to have malloc statement in project".
 Perhaps I'm not using the right way to get a MISession. Here's what I do
 in the plugin's "run" function:
 
 public void run(IAction action) {
 IDebugTarget
 targets[]=DebugPlugin.getDefault().getLaunchManager().getDeb ugTargets();
 ICDebugTarget target=(ICDebugTarget) targets[0].getDebugTarget();
 ICDITarget cdiTarget=(ICDITarget)target.getAdapter( ICDITarget.class );
 
 Session session=(Session) cdiTarget.getSession();
 MISession mi=session.getMISession();
 CommandFactory factory = mi.getCommandFactory();
 MIGDBSet gdbSet=factory.createMIGDBSet(new String[] {"hw-cycles 1"});
 mi.postCommand(gdbSet);
 }
 Thanks,
 Bruno
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.05050 seconds