From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Bloggs Newsgroups: gmane.emacs.help Subject: Re: gdb with tramp problem Date: Mon, 14 Jul 2008 14:52:38 +0100 Message-ID: <87mykkshcp.fsf@DEBLAP1.BeNet> References: <87mykmii58.fsf@DEBLAP1.BeNet> <8763r919w1.fsf@DEBLAP1.BeNet> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216046449 31350 80.91.229.12 (14 Jul 2008 14:40:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jul 2008 14:40:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 14 16:41:35 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KIPF8-0006j9-Jz for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jul 2008 16:41:34 +0200 Original-Received: from localhost ([127.0.0.1]:37145 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIPEG-00014e-24 for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jul 2008 10:40:40 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Mon, 14 Jul 2008 08:52:39 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:O6GOYHrWTggzNuPgsVU7aV3pLFg= Original-Lines: 39 X-Usenet-Provider: http://www.giganews.com Original-X-Trace: sv3-X489SeMPd93ZWpAJ+Ttx1oY+u55p7jKbTjtpzltfO4bDY0+Gb7B+/NNYGcL/qJP5c1LUidxz9WcHUCA!rm3Cq78xu/GD+DFWh2eZ/71S5Qg4EQYCNYcJNulCihLNUq+VufhI Original-X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Original-Xref: news.stanford.edu gnu.emacs.help:160203 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:55554 Archived-At: Nick Roberts writes: > Michael Albinus writes: > > Joe Bloggs writes: > > > > > Emacs 21.4.1 on Debian Etch with gdb 6.4.90-debian, and using cc-mode version 5.31.3 > > > 'info source' from within gdb gives the correct path to the source file. > > > Strange thing is I can set the breakpoint from within the source buffer with C-x > > > > Which version of Tramp do you use? I would expect that you need Tramp > > 2.1; Tramp 2.0 (as offered by Debian) is not sufficient AFAIK. > > > > I also remember some tuning in Emacs 23 wrt cooperation of gdb and > > Tramp. Nick shall know it better than I do :-) but likely Emacs 23 is > > the best choice for this task. > > I think it needs this change: > > 2007-07-11 Michael Albinus > > * progmodes/gud.el (gud-file-name): When `default-directory' is a > remote file name, prepend its remote part to the filename. > (gud-common-init): When `default-directory' is a remote file name, > make the filename relative to it. > > which missed 22.1 but is part of Emacs 22.2. > > -- > Nick http://www.inet.net.nz/~nickrob Does that mean I need to upgrade to Emacs > 22.2 to get it work properly? If so can you give me any tips on tranferring packages, setting load-path, etc. I have 22.2 installed but don't use it as I have had some problems: An error has occurred while loading `/home/me/.emacs': File error: Cannot open load file, tramp-gw thanks.