From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: William Xu Newsgroups: gmane.emacs.bugs Subject: bug#44151: trmap: remote gdb with ssh doesn't work Date: Thu, 22 Oct 2020 21:01:26 +0200 Organization: the Church of Emacs Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2546"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) To: 44151@debbugs.gnu.org Cancel-Lock: sha1:wRD/50V2GynpBJ8/CW+mPo9kmHk= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 22 21:14:52 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kVg31-0000Xz-60 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Oct 2020 21:14:51 +0200 Original-Received: from localhost ([::1]:54368 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVg30-0008LH-6Z for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Oct 2020 15:14:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVfqe-0004sK-3b for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2020 15:02:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42283) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kVfqb-00088Z-Pg for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2020 15:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kVfqb-0006ao-OS for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2020 15:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: William Xu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Oct 2020 19:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44151 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160339329925309 (code B ref -1); Thu, 22 Oct 2020 19:02:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Oct 2020 19:01:39 +0000 Original-Received: from localhost ([127.0.0.1]:53829 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVfqF-0006a9-H5 for submit@debbugs.gnu.org; Thu, 22 Oct 2020 15:01:39 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:43822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVfqD-0006a1-VT for submit@debbugs.gnu.org; Thu, 22 Oct 2020 15:01:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVfqC-0004gR-SF for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2020 15:01:37 -0400 Original-Received: from static.214.254.202.116.clients.your-server.de ([116.202.254.214]:32892 helo=ciao.gmane.io) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVfqB-00087W-Bj for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2020 15:01:36 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1kVfq6-0006Ta-TO for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2020 21:01:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/22 12:34:22 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:191307 Archived-At: Hi, I tried to run the debug remote program with gdb via ssh. I followed the instructions from the [[info:tramp#Remote processes][info:tramp#Remote processes]]: ,---- | 5.5.5 Running a debugger on a remote host | ----------------------------------------- | | ‘gud.el’ provides a unified interface to symbolic debuggers (*note | (emacs)Debuggers::). TRAMP can run debug on remote hosts by calling | ‘gdb’ with a remote file name: | | M-x gdb | Run gdb (like this): gdb -i=mi /ssh:host:~/myprog `---- However, after the program to debug is read, it looks like there is some error setting up gdb's inferior tty? ---------------------------------8<------------------------------------- For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /home/wx/tmp/a.out... Debugger entered--Lisp error: (wrong-type-argument "consp nil") signal(wrong-type-argument ("consp nil")) tramp-signal-hook-function(wrong-type-argument (consp nil)) signal(wrong-type-argument (consp nil)) tramp-sh-handle-make-process(:name "gdb-inferior" :buffer #> :command nil :stderr nil :noquery nil :file-handler t) apply(tramp-sh-handle-make-process (:name "gdb-inferior" :buffer #> :command nil :stderr nil :noquery nil :file-handler t)) tramp-sh-file-name-handler(make-process :name "gdb-inferior" :buffer #> :command nil :stderr nil :noquery nil :file-handler t) apply(tramp-sh-file-name-handler make-process (:name "gdb-inferior" :buffer #> :command nil :stderr nil :noquery nil :file-handler t)) tramp-file-name-handler(make-process :name "gdb-inferior" :buffer #> :command nil :stderr nil :noquery nil :file-handler t) 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) gdb-init-1() gdb-update() gdb("gdb -i=mi /ssh:wx@SERVER:/home/wx/tmp...") funcall-interactively(gdb "gdb -i=mi /ssh:wx@SERVER:/home/wx/tmp...") call-interactively(gdb record nil) command-execute(gdb record) execute-extended-command(nil "gdb" nil) funcall-interactively(execute-extended-command nil "gdb" nil) call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command) ---------------------------------8<------------------------------------- I tested it with `-Q' by building the latest emacs in the git: GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G6032)) of 2020-10-22 -- William