From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "venk" Newsgroups: gmane.emacs.help Subject: Re: how to edit+compile+debug without leaving GNU/Emacs Date: 21 Feb 2006 20:41:47 -0800 Organization: http://groups.google.com Message-ID: <1140583307.265681.78250@o13g2000cwo.googlegroups.com> References: <1140246333.821824.80470@o13g2000cwo.googlegroups.com> <43fa13ad$0$15784$14726298@news.sunsite.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1140629012 9040 80.91.229.2 (22 Feb 2006 17:23:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Feb 2006 17:23:32 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 22 18:23:31 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FBxhg-00048N-0o for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Feb 2006 18:23:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FBxhd-0006Ng-Su for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Feb 2006 12:23:01 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!news.glorb.com!postnews.google.com!o13g2000cwo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: 220.225.142.21 Original-X-Trace: posting.google.com 1140583312 29747 127.0.0.1 (22 Feb 2006 04:41:52 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 22 Feb 2006 04:41:52 +0000 (UTC) In-Reply-To: <43fa13ad$0$15784$14726298@news.sunsite.dk> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; InfoPath.1; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.0 CHNISA01 Complaints-To: groups-abuse@google.com Injection-Info: o13g2000cwo.googlegroups.com; posting-host=220.225.142.21; posting-account=0xsslA0AAABLugRmSvSKrBJlt5k0-AUz Original-Xref: shelby.stanford.edu gnu.emacs.help:137737 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:33360 Archived-At: 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.