Using gdb debugger for remote session with gdbserver [message #955103] |
Tue, 23 October 2012 10:09  |
Eclipse User |
|
|
|
I have Eclipse Juno installed on RedHat Enterprise Linux (6.3). We are using the CDT (C/C++) and have the DSF/GDB framework installed for debugging.
The ide is running on a separate machine where the application is. Therefore we have installed gdbserver on the remote host and have it setup as follows:
# gdbserver CAHAL-SMSS03:10069 --attach 4589
The process starts, attachs to the program we wish to debug and awaits a connection from a remote/local gdb process.
Then, we fire up eclipse juno, create a Run/Debug configuration for C/C++ Remote Application and use the GDB (DSF) Remote application launcher where we specify the Host name and port that gdbserver is up awaiting connection.
We we hit Debug, in the debug log we see:
!ENTRY org.eclipse.cdt.dsf.gdb 4 5012 2012-10-23 07:54:19.969
!MESSAGE Error in final launch sequence
!STACK 1
org.eclipse.core.runtime.CoreException: Failed to execute MI command:
-target-select remote 192.62.246.19:10069
Error message from debugger back end:
192.62.246.19:10069: No route to host.
at org.eclipse.cdt.dsf.concurrent.Query.get(Query.java:115)
at org.eclipse.cdt.dsf.gdb.launching.GdbLaunchDelegate.launchDebugSession(GdbLaunchDelegate.java:231)
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 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:53)
Caused by: java.lang.Exception: 192.62.246.19:10069: No route to host.
at org.eclipse.cdt.dsf.mi.service.command.AbstractMIControl$RxThread.processMIOutput(AbstractMIControl.java:918)
at org.eclipse.cdt.dsf.mi.service.command.AbstractMIControl$RxThread.run(AbstractMIControl.java:747)
!SUBENTRY 1 org.eclipse.cdt.dsf.gdb 4 10004 2012-10-23 07:54:19.970
I have confirmed that the 2 systems can talk tcp/ip ok...
Tried using Hostname and IP address ...same issue.
Any thoughts on what I'm doing wrong?
Thx.
Wendell MacKenzie
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07493 seconds