From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Marston Newsgroups: gmane.emacs.bugs Subject: bug#23608: 24.5; Breakpoints don't show in GDB over TRAMP Date: Tue, 24 May 2016 09:35:25 +0100 Message-ID: <20160524083525.GA27607@waxworlds.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1464104158 19088 80.91.229.3 (24 May 2016 15:35:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 May 2016 15:35:58 +0000 (UTC) To: 23608@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 24 17:35:46 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b5EMy-0005h5-Ul for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 May 2016 17:35:45 +0200 Original-Received: from localhost ([::1]:53994 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5EMy-0001g8-61 for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 May 2016 11:35:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5EJT-0006xy-EK for bug-gnu-emacs@gnu.org; Tue, 24 May 2016 11:32:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5EJP-0006PY-6k for bug-gnu-emacs@gnu.org; Tue, 24 May 2016 11:32:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5EJO-0006PS-K4 for bug-gnu-emacs@gnu.org; Tue, 24 May 2016 11:32:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b5EJO-0005Th-GR for bug-gnu-emacs@gnu.org; Tue, 24 May 2016 11:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tim Marston Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 May 2016 15:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23608 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.146410386720974 (code B ref -1); Tue, 24 May 2016 15:32:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 May 2016 15:31:07 +0000 Original-Received: from localhost ([127.0.0.1]:36542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b5EIR-0005SB-CG for submit@debbugs.gnu.org; Tue, 24 May 2016 11:31:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b57oY-0002Xs-5p for submit@debbugs.gnu.org; Tue, 24 May 2016 04:35:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b57oR-0003SJ-46 for submit@debbugs.gnu.org; Tue, 24 May 2016 04:35:40 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:37959) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b57oR-0003S7-0K for submit@debbugs.gnu.org; Tue, 24 May 2016 04:35:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b57oO-0005mi-7V for bug-gnu-emacs@gnu.org; Tue, 24 May 2016 04:35:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b57oI-0003Ps-Vr for bug-gnu-emacs@gnu.org; Tue, 24 May 2016 04:35:35 -0400 Original-Received: from oak.waxworlds.org ([82.68.58.113]:39612) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b57oI-0003PA-DF for bug-gnu-emacs@gnu.org; Tue, 24 May 2016 04:35:30 -0400 Original-Received: from waxworlds.org (tims-pc.localnet [192.168.2.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by oak.waxworlds.org (Postfix) with ESMTPSA id A0F16A781A9 for ; Tue, 24 May 2016 09:35:26 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ed.am; s=mail; t=1464078926; bh=JqgCW71nqm4inAyCKkysJyli/1P9cgSi0p1p3Tm1zCw=; h=Date:From:To:Subject:From; b=Utxt3qqKj+RxiPA2qukUFty3YtqadcFR1YZCN8GHidyQqUTjy5tbHvMdLZWpgrFTE XYmtlxeopiae5m7tOrte5yzF+Q0W9I8O9uA6DgGRhTrXh/niR5H/EOugpeIjlZq07d qAvP+11ilW3EcO6GEDgFA4EflU1Qgcbe/oD4xWfk/2AKVV4fWQCIsjJkf/LK+oWcTK vCcSDP8YMEnAlu2ZesdzjVFjjC3HXZjBe12jZzTM72pl2h+RzGL3ojk5dzWGJnzk8j IPQFoWz2uGqGfNkdOkOA2CYJlmIrEn5ldtvAUPYI0bW9KPG06yQZrMVuTxR1mSas8m +Y3LKPi5MYfwA== Content-Disposition: inline User-Agent: Mutt/1.6.0 (2016-04-01) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Tue, 24 May 2016 11:31:02 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:118619 Archived-At: Hi, I've noticed that breakpoints don't show up in the source code when running GDB over TRAMP. It's quite reproducible. Steps to reproduce: 1/ run emacs $ emacs -q 2/ visit a some remote source code C-x C-f /laptop:/home/edam/src/lang/c++/hello-world/hw.cc 3/ run GDB M-x gdb RET RET 4/ switch back to source code window C-x b RET 5/ add breakpoint C-x C-a C-b What happens: The breakpoint doesn't show up in the source code buffer. When you run the program, the breakpoint still works. And when the program "breaks out", you get a current line indicator, showing you where execution is at. But no breakpoint. If you do the same as above, but with a local file (i.e., not via TRAMP), breakpoints show up as expected. Another detail, which may be related, is that if I try to set another breakpoint on the same line, I get this message: File /scp:laptop:/home/edam/src/lang/c++/hello-world/"/home/edam/data/dev/lang/c++/hello-world/hw.cc" no longer exists! Which would seem to indicate that emacs is becoming confused about file file names over TRAMP. In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-04-08 on binet, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11803000 System Description: Debian GNU/Linux unstable (sid) Configured using: `configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Important settings: value of $LANG: en_GB.utf8 locale-coding-system: utf-8-unix Major mode: C++/l Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent messages: Tramp: Opening connection for laptop using scp...done Target doesn't support non-stop mode. Turning it off. Command: break hw.cc:5 Use M-x make-directory RET RET to create the directory and its parents Tramp: Checking `vc-registered' for /scp:laptop:/home/edam/src/lang/c++/hello-world/"/home/edam/data/dev/lang/c++/hello-world/hw.cc"...done Use M-x make-directory RET RET to create the directory and its parents Tramp: Checking `vc-registered' for /scp:laptop:/home/edam/data/dev/lang/c++/hello-world/"/home/edam/data/dev/lang/c++/hello-world/hw.cc"...done Use M-x make-directory RET RET to create the directory and its parents Load-path shadows: /usr/share/emacs24/site-lisp/emacs-goodies-el/all hides /usr/share/emacs/24.5/site-lisp/elpa/company-0.8.12/all /usr/share/emacs24/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs/24.5/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs24/site-lisp/psgml/psgml-init hides /usr/share/emacs/site-lisp/psgml/psgml-init /usr/share/emacs24/site-lisp/psgml/psgml-sysdep hides /usr/share/emacs/site-lisp/psgml/psgml-sysdep /usr/share/emacs24/site-lisp/psgml/psgml-edit hides /usr/share/emacs/site-lisp/psgml/psgml-edit /usr/share/emacs24/site-lisp/psgml/psgml-dtd hides /usr/share/emacs/site-lisp/psgml/psgml-dtd /usr/share/emacs24/site-lisp/psgml/psgml hides /usr/share/emacs/site-lisp/psgml/psgml /usr/share/emacs24/site-lisp/psgml/psgml-info hides /usr/share/emacs/site-lisp/psgml/psgml-info /usr/share/emacs24/site-lisp/psgml/psgml-parse hides /usr/share/emacs/site-lisp/psgml/psgml-parse /usr/share/emacs24/site-lisp/psgml/psgml-ids hides /usr/share/emacs/site-lisp/psgml/psgml-ids /usr/share/emacs24/site-lisp/psgml/psgml-other hides /usr/share/emacs/site-lisp/psgml/psgml-other /usr/share/emacs24/site-lisp/psgml/psgml-api hides /usr/share/emacs/site-lisp/psgml/psgml-api /usr/share/emacs24/site-lisp/psgml/psgml-charent hides /usr/share/emacs/site-lisp/psgml/psgml-charent Features: (shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils gdb-mi bindat json gud cc-langs cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs help-mode easymenu tramp-cache tramp-sh tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cl-extra cl-loaddefs cl-lib cconv eieio-core gnus-util mm-util mail-prsvr password-cache tramp-loaddefs trampver shell pcomplete comint ansi-color ring format-spec advice help-fns s ucs-normalize psgml-init emacs-goodies-el emacs-goodies-custom emacs-goodies-loaddefs easy-mmode devhelp dash-functional dash time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 257936 12358) (symbols 48 24798 0) (miscs 40 133 191) (strings 32 34368 8660) (string-bytes 1 1117099) (vectors 16 40099) (vector-slots 8 806756 6357) (floats 8 639 156) (intervals 56 543 1441) (buffers 960 22) (heap 1024 26132 1165)) -- Tim Marston ed.am