From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.bugs Subject: bug#557: gud/gdb not interacting properly with remote source file Date: Wed, 16 Jul 2008 09:35:02 +1200 Message-ID: <18557.6150.742821.13783@kahikatea.snap.net.nz> References: <920211.73907.qm@web44910.mail.sp1.yahoo.com> Reply-To: Nick Roberts , 557@emacsbugs.donarmstrong.com 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 1216158459 9881 80.91.229.12 (15 Jul 2008 21:47:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jul 2008 21:47:39 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: vapnik spaknik , 557@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 15 23:48:26 2008 Return-path: Envelope-to: geb-bug-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 1KIsNg-0002FL-8o for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Jul 2008 23:48:20 +0200 Original-Received: from localhost ([127.0.0.1]:50381 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIsMo-0000M1-0L for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Jul 2008 17:47:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KIsMh-0000Ka-Vz for bug-gnu-emacs@gnu.org; Tue, 15 Jul 2008 17:47:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KIsMh-0000Jo-Ge for bug-gnu-emacs@gnu.org; Tue, 15 Jul 2008 17:47:19 -0400 Original-Received: from [199.232.76.173] (port=38607 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIsMh-0000Jf-BZ for bug-gnu-emacs@gnu.org; Tue, 15 Jul 2008 17:47:19 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:39118) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KIsMh-0002xT-1Y for bug-gnu-emacs@gnu.org; Tue, 15 Jul 2008 17:47:19 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m6FLlGm9005005; Tue, 15 Jul 2008 14:47:16 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m6FLj3B5003906; Tue, 15 Jul 2008 14:45:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Nick Roberts Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 15 Jul 2008 21:45:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 557 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 557-submit@emacsbugs.donarmstrong.com id=B557.12161577162600 (code B ref 557); Tue, 15 Jul 2008 21:45:03 +0000 Original-Received: (at 557) by emacsbugs.donarmstrong.com; 15 Jul 2008 21:35:16 +0000 Original-Received: from viper.snap.net.nz (viper.snap.net.nz [202.37.101.25]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m6FLZB7B002205 for <557@emacsbugs.donarmstrong.com>; Tue, 15 Jul 2008 14:35:13 -0700 Original-Received: from kahikatea.snap.net.nz (124.31.255.123.static.snap.net.nz [123.255.31.124]) by viper.snap.net.nz (Postfix) with ESMTP id B558A3DAEAD; Wed, 16 Jul 2008 09:35:05 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 189A68FC6D; Wed, 16 Jul 2008 09:35:03 +1200 (NZST) In-Reply-To: <920211.73907.qm@web44910.mail.sp1.yahoo.com> X-Mailer: VM 7.19 under Emacs 22.2.50.3 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Tue, 15 Jul 2008 17:47:19 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:18734 Archived-At: > In GNU Emacs 21.4.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) ... > Please describe exactly what actions triggered the bug > and the precise symptoms of the bug: > > I open a remote c file using tramp. > >From within that buffer I do: M-x gdb > and invoke gdb on the executable associated with the c file > (the executable contains appropriate debugging symbols) > The gud buffer opens correctly and typing "list" and "info source" > indicates that gdb has the correct source file loaded. > I go to the source buffer in emacs and set a breakpoint using C-x > in the gud buffer I see that the breakpoint has been set correctly. > But then when I try stepping through the code using "next", > a new empty buffer is created whose file path (according to the buffer list) > is similar to the path of the remote source, except that it is local, > i.e. instead of "me@remote:/home/me/file.c" it is "/home/me/file.c" > Any further stepping through the code in the gud buffer brings up the new empty > buffer which contains a small white arrow in the left margin as it would > do normally, except this time it is pointing to an empty line. > The buffer containing the remote source file does not indicate the point of execution, > but still allows me to set breakpoints with C-x . > > If I try debugging with a local file it works fine. This looks like Joe Bloggs (bogus e-mail address) earlier report. It doesn't work with Emacs 21.4 and it is necessary to upgrade to 22.2 and ensure that Emacs picks up the version of Tramp that comes with that version of Emacs. Can someone please close this bug and/or tell me if/how I can close it? -- Nick http://www.inet.net.nz/~nickrob