Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Target Management » cannot run and debug remotely linux to linux with chroot
cannot run and debug remotely linux to linux with chroot [message #1404906] Wed, 06 August 2014 05:48
Stella Levin is currently offline Stella LevinFriend
Messages: 89
Registered: July 2009
Hi, my working environment is Linux/Debian and my target is Linux/Centos. I get target env with "chroot" command on the same host. The file system is shared in sub-tree: /home/user/a/b/c/d is translated to /c/d on the target. I use Luna/RemoteProject. The problem: I get errors when try to run or debug remotely. My questions:

1. No need for RSE server, because the files are visible on both hosts. I defined connection via SSH. Am I right?

2. Run configuration:
Connection: Local
C++ application: /home/user/a/b/c/d/myappl
Remote C++ application: /c/d/myappl
Command to be executed before application: cd /home/user/a/; chroot b

The result is eclipse get stopped, when return it to fg, I get shell of target. When running it: error while loading shared libraries...
How to define it correctly?

3. Manual Debug configuration:
Connection: Local
C++ application: /home/user/a/b/c/d/myappl
Manual remote debugging launcher
Debugger: Connection: TCP, Hostname: Localhost, Port num: 2345
Source: Path Mapping: 
Compilation Path: c/d/ Local File Path: /home/user/a/b/c/d 

I start manually on target:
gdbserver localhost:2345 ./myappl

The result:
Error in final launch sequence
No debugger path for breakpoint

4. Automatic Debug Configuration:
Error during file upload.
Daemon failed to launch server on SLEVIN-DEBIAN using port 0

Sorry for a long post. Any help how to proceed will be appreciated.
Thanks, Stella
Previous Topic:Eclipse does not save passwords for remote systems
Next Topic:How to open shell and invoke commands programmatically
Goto Forum:

Current Time: Sat Nov 26 11:40:31 GMT 2022

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

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

Back to the top