Skip to main content



      Home
Home » Newcomers » Newcomers » Plug-in for cuda-gdb(how to create a interactive console for taking input of cuda-gdb)
Plug-in for cuda-gdb [message #1067681] Wed, 10 July 2013 01:53 Go to next message
Eclipse UserFriend
Hi,

I am trying to create an eclipse plugin for cuda-gdb.
I have created a console for showing the output. But
its not an interactive one, even i am not able to
bring the starting of gdb on my console. So my question is

1. Can i use builtin console of eclipse for cuda-gdb...?
Or I have to create a interactive console for this
Or is there any other way to do it like DISPLAY view...


Wy code foe console is -


MessageConsole console=new MessageConsole("MyConsole", null);
console.activate();
ConsolePlugin.getDefault().getConsoleManager().addConsoles(new IConsole[]{console });
MessageConsoleStream stream = console.newMessageStream();

ProcessBuilder processBuilder = new ProcessBuilder("/export/trainee3/dinesh/cuda5.0/bin/cuda-gdb",Mycuda.cu);
Process proc = processBuilder.start();

java.io.InputStream stdin = proc.getInputStream();
InputStreamReader isr = new InputStreamReader(stdin);
BufferedReader br = new BufferedReader(isr);

String line = null;


while ( (line = br.readLine()) != null)
stream.println(line);



While using this plugin with eclipse my eclipse got hanged and cuda-gdb was still executing in background.

what can be possible solution of this problem..?
Re: Plug-in for cuda-gdb [message #1068068 is a reply to message #1067681] Thu, 11 July 2013 18:06 Go to previous messageGo to next message
Eclipse UserFriend
Please note that Nsight Eclipse Edition already provides full debugging environment based on cuda-gdb.
Re: Plug-in for cuda-gdb [message #1068069 is a reply to message #1068068] Thu, 11 July 2013 18:08 Go to previous message
Eclipse UserFriend
Note that your plugin seems to hang because it is doing a blocking read from UI thread.

[Updated on: Thu, 11 July 2013 18:10] by Moderator

Previous Topic:Minimize does not minimize to a TrimStack anymore
Next Topic:How do I restore an already-running Eclipse in Ubuntu 13.04?
Goto Forum:
  


Current Time: Sun Jul 13 02:18:53 EDT 2025

Powered by FUDForum. Page generated in 0.10439 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top