I want to configure remote debugging using a host OS X and target Linux machines, both running SDK 5.5.
According to the manual I am staring cuda-gdbserver on port 2345:
export LD_LIBRARY_PATH="/usr/local/cuda-5.5/lib64":$LD_LIBRAR Y_PATH;/usr/local/cuda-5.5/bin/cuda-gdbserver --cuda-use-lockfile=0 0.0.0.0:2345 /home/asyncAPI/asyncAPI
If I can successfully connect to remote gdb session from the terminal on the host:
cuda-gdb:
target remote target_ip:2345
However I am am doing the same thing (Run-Debug Remote Application-Connect to cuda-gdb-server) in NsightEE I am facing the following error:
!ENTRY org.eclipse.cdt.dsf 4 10005 2013-12-19 18:24:35.865
!MESSAGE Request for monitor: 'RequestMonitor (org.eclipse.cdt.dsf.concurrent.RequestMonitor@1c79af0): Status ERROR: org.eclipse.cdt.dsf.gdb code=10001 Connection is shut down null' resulted in an error.
!SUBENTRY 1 org.eclipse.cdt.dsf.gdb 4 10001 2013-12-19 18:24:35.866
!MESSAGE Connection is shut down
!ENTRY org.eclipse.cdt.dsf.gdb 4 5012 2013-12-19 18:24:36.076
!MESSAGE Error in final launch sequence
!STACK 1
org.eclipse.core.runtime.CoreException: Connection is shut down
at org.eclipse.cdt.dsf.concurrent.Query.get(Query.java:115)
at org.eclipse.cdt.dsf.gdb.launching.GdbLaunchDelegate.launchDebugSession(GdbLaunchDelegate.java:231)
at com.nvidia.cuda.ide.remote.internal.launch.ConnectToDebugServerLaunchDelegate.launchDebugSession(ConnectToDebugServerLaunchDelegate.java:40)
at org.eclipse.cdt.dsf.gdb.launching.GdbLaunchDelegate.launchDebugger(GdbLaunchDelegate.java:106)
at org.eclipse.cdt.dsf.gdb.launching.GdbLaunchDelegate.launch(GdbLaunchDelegate.java:94)
at com.nvidia.cuda.ide.debug.launch.CudaGdbLaunchDelegate.launch(CudaGdbLaunchDelegate.java:84)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:855)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:704)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1047)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1251)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!SUBENTRY 1 org.eclipse.cdt.dsf.gdb 4 10001 2013-12-19 18:24:36.078
!MESSAGE Connection is shut down
According to Nsight ssh connection is working fine.
What could be the reason?