Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Using gdb debugger for remote session with gdbserver(Problem using gdb from within CDT remotely in eclipse juno)
Using gdb debugger for remote session with gdbserver [message #955103] Tue, 23 October 2012 14:09 Go to next message
Wendell MacKenzie is currently offline Wendell MacKenzieFriend
Messages: 9
Registered: October 2012
Junior Member
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
Re: Using gdb debugger for remote session with gdbserver [message #956376 is a reply to message #955103] Wed, 24 October 2012 13:06 Go to previous messageGo to next message
Marc Khouzam is currently offline Marc KhouzamFriend
Messages: 357
Registered: July 2009
Senior Member
Looks like GDB cannot connect to your target. To confirm this start GDB directly from the command line on your host and try to connect to your target. If you get the same error, you have a problem connecting from host to target.

On target:
# gdbserver CAHAL-SMSS03:10069 --attach 4589

On host:
> gdb
(gdb) target remote CAHAL-SMSS03:10069

(you can use the IP address instead of the hostname if you want).

Marc


Re: Using gdb debugger for remote session with gdbserver [message #958381 is a reply to message #956376] Fri, 26 October 2012 00:29 Go to previous messageGo to next message
Wendell MacKenzie is currently offline Wendell MacKenzieFriend
Messages: 9
Registered: October 2012
Junior Member
It was the server firewall...Sad

Working great now.
Re: Using gdb debugger for remote session with gdbserver [message #1057826 is a reply to message #958381] Thu, 09 May 2013 06:13 Go to previous message
nagaraj sherigar is currently offline nagaraj sherigarFriend
Messages: 5
Registered: May 2013
Junior Member
Even i have a problem with remote debugging .In eclipse juno CDT i get this error
"warning: A handler for the OS ABI "GNU/Linux" is not built into this configuration
of GDB. Attempting to continue with the default i386 settin
gs."
Previous Topic: remote debugging in eclipse cdt from linux server using cygwin
Next Topic:Make All Doesn't Work (C:\Program:)
Goto Forum:
  


Current Time: Fri Apr 19 04:21:26 GMT 2024

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

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

Back to the top