From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.help Subject: Re: gdb with tramp problem Date: Mon, 14 Jul 2008 20:29:58 +1200 Message-ID: <18555.3718.809141.349978@kahikatea.snap.net.nz> 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 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216028548 24920 80.91.229.12 (14 Jul 2008 09:42:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jul 2008 09:42:28 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 14 11:43:12 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 1KIKaN-0001xg-Ij for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jul 2008 11:43:11 +0200 Original-Received: from localhost ([127.0.0.1]:45074 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIKZU-0006HD-Dd for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jul 2008 05:42:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KIKUF-0005vN-39 for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 05:36:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KIKU9-0005ul-Lf for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 05:36:46 -0400 Original-Received: from [199.232.76.173] (port=47915 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIKU5-0005uW-Oc for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 05:36:42 -0400 Original-Received: from viper.snap.net.nz ([202.37.101.25]:60331) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KIKU5-0004eq-8R for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 05:36:41 -0400 Original-Received: from kahikatea.snap.net.nz (89.30.255.123.static.snap.net.nz [123.255.30.89]) by viper.snap.net.nz (Postfix) with ESMTP id A90FC3DABE8; Mon, 14 Jul 2008 20:30:20 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id AB5DD8FC6D; Mon, 14 Jul 2008 20:29:59 +1200 (NZST) In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.2.50.3 X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:55534 Archived-At: 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