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 10:19:44 +1200 Message-ID: <18554.32640.748553.845320@kahikatea.snap.net.nz> References: <87mykmii58.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 1215987641 28975 80.91.229.12 (13 Jul 2008 22:20:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Jul 2008 22:20:41 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Joe Bloggs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 14 00:21:26 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 1KI9wZ-000556-HG for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jul 2008 00:21:23 +0200 Original-Received: from localhost ([127.0.0.1]:45463 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KI9vh-000138-CZ for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Jul 2008 18:20:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KI9vP-00012B-6r for help-gnu-emacs@gnu.org; Sun, 13 Jul 2008 18:20:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KI9vN-00011i-PG for help-gnu-emacs@gnu.org; Sun, 13 Jul 2008 18:20:10 -0400 Original-Received: from [199.232.76.173] (port=58967 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KI9vN-00011f-HB for help-gnu-emacs@gnu.org; Sun, 13 Jul 2008 18:20:09 -0400 Original-Received: from viper.snap.net.nz ([202.37.101.25]:42833) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KI9vN-0005gi-18 for help-gnu-emacs@gnu.org; Sun, 13 Jul 2008 18:20:09 -0400 Original-Received: from kahikatea.snap.net.nz (151.31.255.123.static.snap.net.nz [123.255.31.151]) by viper.snap.net.nz (Postfix) with ESMTP id 25BB33DB472; Mon, 14 Jul 2008 10:20:03 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id C4E4A8FC6D; Mon, 14 Jul 2008 10:19:45 +1200 (NZST) Original-Newsgroups: gnu.emacs.help In-Reply-To: <87mykmii58.fsf@DEBLAP1.BeNet> 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:55522 Archived-At: > When I load a remote c file with tramp, and run gdb through emacs on the > corresponding executable, tramp runs gdb on the remote machine as required. > However when I set a breakpoint and try stepping through the code, it fails > to indicate the current position in the buffer containing the remote source > (as it would if I ran gdb locally with a local source file). Instead it opens > a new empty buffer, and gives it the same name as the remote source file, > and with a local path (e.g. instead of /me@remote:/home/me/file.c > it's listed as /home/me/file.c). > Can anyone tell me how to fix this? It works for me. What version of Emacs are you using? What version of GDB? What platform? It's best if you report a bug using M-x report-emacs-bug. After GDB stops at the breakpoint What does "info source" give? -- Nick http://www.inet.net.nz/~nickrob