help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to edit+compile+debug without leaving GNU/Emacs


From: venk
Subject: Re: how to edit+compile+debug without leaving GNU/Emacs
Date: 21 Feb 2006 20:41:47 -0800
User-agent: G2/0.2

Colin S. Miller wrote:
> If there's a shared directory that each machine can access,
> and they are mounted on the same point on each machine, then
>
all directories are mounted on the same point across these machines.

> 1) run emacs on edit.example.com
> 2) to build, use
> M-x compile RET
> ssh build.example.com "cd /remote-home/venk/src/ ; make -k"
>
> 3) to debug, use gdbserver.
> This means that gdb runs on edit.example.com,
> but it controls a debugger on debug.example.com
>
> You then log into debug.example.com and run
> gdbserver :9999 /remote-home/venk/build/myprog
> This starts gdbserver, and it listens on port 9999
>
> Then in gdb, enter
> target remote debug:9999
> sym /remote-home/venk/build/myprog
>
> which will connect gdbserver and start debugging.
> The port 9999 is arbitrary, you can use any port
> that is free.
>
wow! i never thought this way.. Thank you

> You said that "ssh appears to be closed", how do you normally
> access the build-host?
>
did I? it should have been because of my poor English(it happens to be
the third language I speak). I meant ssh is open and telnet and rlogin
appears to be closed. So, ssh is the way i access these machines.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]