From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nickrob@snap.net.nz (Nick Roberts) Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#4604: 23.1.50; tramp + remote debugging works no longer Date: Thu, 1 Oct 2009 16:14:35 +1300 Message-ID: <19140.7835.581534.413411@totara.tehura.co.nz> References: Reply-To: Nick Roberts , 4604@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 1254367648 28743 80.91.229.12 (1 Oct 2009 03:27:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Oct 2009 03:27:28 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: Michal , 4604@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 01 05:27:21 2009 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 1MtCK8-0007Tq-Mm for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Oct 2009 05:27:21 +0200 Original-Received: from localhost ([127.0.0.1]:43695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtCK8-0002xZ-4i for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Sep 2009 23:27:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtCK3-0002xM-Qz for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 23:27:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtCJz-0002wz-4E for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 23:27:15 -0400 Original-Received: from [199.232.76.173] (port=37700 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtCJy-0002wv-Tz for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 23:27:10 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:49823) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MtCJy-0000GR-9x for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2009 23:27:10 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n913R7oo006308; Wed, 30 Sep 2009 20:27:08 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n913K44l005134; Wed, 30 Sep 2009 20:20:04 -0700 Resent-Date: Wed, 30 Sep 2009 20:20:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: nickrob@snap.net.nz (Nick Roberts) Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 01 Oct 2009 03:20:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4604 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12543668924418 (code B ref -1); Thu, 01 Oct 2009 03:20:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 1 Oct 2009 03:14:52 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n913EpNA004415 for ; Wed, 30 Sep 2009 20:14:52 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:40800 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MtC82-0004MB-He for emacs-pretest-bug@gnu.org; Wed, 30 Sep 2009 23:14:50 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MtC80-00071m-8F for emacs-pretest-bug@gnu.org; Wed, 30 Sep 2009 23:14:49 -0400 Original-Received: from mx.southnet.co.nz ([202.37.101.20]:47963 helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MtC7y-00070M-8b for emacs-pretest-bug@gnu.org; Wed, 30 Sep 2009 23:14:48 -0400 Original-Received: from totara (30.63.255.123.dynamic.snap.net.nz [123.255.63.30]) by viper.snap.net.nz (Postfix) with ESMTP id BD5C73DA613; Thu, 1 Oct 2009 16:14:36 +1300 (NZDT) Original-Received: by totara (Postfix, from userid 1000) id A5134C167; Thu, 1 Oct 2009 16:14:35 +1300 (NZDT) In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.2.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 30 Sep 2009 23:27:15 -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:31610 gmane.emacs.pretest.bugs:25088 Archived-At: Remote debugging generally means that the program and the debugger run on different machines (see the Emacs or GDB manual). Tramp just allows you debug programs on remote hosts > I just upgraded from emacs 23.1 (version from web site, not from cvs) to 23.1.50.1. > Then tried to debug some simple program: > M-x gdb: gdb -i=mi /n.10.3.rh73:/tmp/p1 > > failed as You can see. > > Additionaly I just invoked it again, this time with "debug-on-error". This is result: > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > string-match("[^-0-9a-zA-Z_./]" nil 0) > shell-quote-argument(nil) > tramp-shell-quote-argument(nil) > mapconcat(tramp-shell-quote-argument (nil) " ") > tramp-handle-start-file-process("gdb-inferior" # nil) > apply(tramp-handle-start-file-process ("gdb-inferior" # nil)) > tramp-sh-file-name-handler(start-file-process "gdb-inferior" # nil) > apply(tramp-sh-file-name-handler start-file-process ("gdb-inferior" # nil)) > tramp-file-name-handler(start-file-process "gdb-inferior" # nil) > apply(tramp-file-name-handler start-file-process "gdb-inferior" # nil nil) > start-file-process("gdb-inferior" # nil) > apply(start-file-process "gdb-inferior" # nil nil) > comint-exec-1("gdb-inferior" # nil nil) > comint-exec(# "gdb-inferior" nil nil nil) > make-comint-in-buffer("gdb-inferior" # nil) > gdb-inferior-io-mode() > gdb-get-buffer-create(gdb-inferior-io) Yes, it appears to be broken now. Emacs now lets GDB to take control of the terminal associated with the I/O buffer for it's own child process (the program being debugged)and always has a separate I/O buffer. In fact, it looks like previously GDB in Emacs didn't work with tramp when it had a separate I/O buffer (gdb-use-separate-io-buffer is t). PROGRAM is nil in make-comint-in-buffer (third arg - also see start-process) which means just create a pty. > gdb-init-1() > gdb-update() > gdb("gdb -i=mi /n.10.3.rh73:/tmp/p1") > call-interactively(gdb t nil) > execute-extended-command(nil) > call-interactively(execute-extended-command nil nil) > > in previous emacs I used to do: > 1) visit /n.10.3.rh73:/tmp directory > 2) M-x gdb: gdb --annotate=3 ./p1 > > for emacs 23.1.50.1 I also tried this command, but no success. That must have been in emacs 23.1. For now, you're better off using that version with tramp ... or you can always try to write a patch for 23.1.50. That would be great! -- Nick http://users.snap.net.nz/~nickrob