From unknown Mon Aug 11 19:04:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12358: 24.2; M-x gud-gdb on remote binary does not work Resent-From: Paul K Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Sep 2012 15:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12358 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 12358@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.134686044611827 (code B ref -1); Wed, 05 Sep 2012 15:55:01 +0000 Received: (at submit) by debbugs.gnu.org; 5 Sep 2012 15:54:06 +0000 Received: from localhost ([127.0.0.1]:40608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9Hva-00034h-2A for submit@debbugs.gnu.org; Wed, 05 Sep 2012 11:54:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38292) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9HrG-0002xV-08 for submit@debbugs.gnu.org; Wed, 05 Sep 2012 11:49:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9Hr2-00083a-W7 for submit@debbugs.gnu.org; Wed, 05 Sep 2012 11:49:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:58221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9Hr2-00083U-TX for submit@debbugs.gnu.org; Wed, 05 Sep 2012 11:49:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9Hqw-0002gI-MZ for bug-gnu-emacs@gnu.org; Wed, 05 Sep 2012 11:49:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9Hqv-000827-AW for bug-gnu-emacs@gnu.org; Wed, 05 Sep 2012 11:49:18 -0400 Received: from mail-pb0-f41.google.com ([209.85.160.41]:44679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9Hqv-00081s-4C for bug-gnu-emacs@gnu.org; Wed, 05 Sep 2012 11:49:17 -0400 Received: by pbbro12 with SMTP id ro12so1273428pbb.0 for ; Wed, 05 Sep 2012 08:49:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=NRB/AQVkGpo/vf0OB6xMylv1mQ9M+aT32LuPRyma/nE=; b=ti54Bjh7j+ff5kk+Qvokj0H6pf+g3QB0ozzGbON8kMXhkGRCuKToFNQJr7PPvHLOKx uNXaQMn/HIKIf0l3JM+MYsyDUqO7vq0ZuM2TwzOG9m5xDg+bKXW6leHXHBDaSSDUJPq5 d3AKXAeepJS8105GEFe2KQMDtt8t6xHWRXCLMbKQvfUlVczP91vWPgoi+fwpAPtS5fzD DhPdz4dCjcvcHxBaqQbbfPSYmIFzlIdM+wxoSLSohhJWx2rMDDeQRQu0xyTJDGpOZLMn rCPXF/iBQyf9aaFXIpRT8qGy3/k93tut2XbizK0O8+634g0vSRfLqPW8XQRcdSmmxLWt QYxw== MIME-Version: 1.0 Received: by 10.68.240.236 with SMTP id wd12mr56277437pbc.83.1346860155793; Wed, 05 Sep 2012 08:49:15 -0700 (PDT) Received: by 10.68.73.37 with HTTP; Wed, 5 Sep 2012 08:49:15 -0700 (PDT) Date: Wed, 5 Sep 2012 17:49:15 +0200 Message-ID: From: Paul K Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Mailman-Approved-At: Wed, 05 Sep 2012 11:54:04 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) How to reproduce the problem: prompt$ emacs --eval '(toggle-debug-on-error)' then within emacs visit directory with some binary You want to debug on some remote machine (my remote machine is running RH6, but it probably does not matter) and issue: M-x gud-gdb: theBinary You will receive following error: Debugger entered--Lisp error: (void-variable gdb-active-process) (if gdb-active-process "Continue" "Run") Please DO NOT try to issue `M-x gdb` before, because this hides the problem. Following are the data produced by M-x report-emacs-bug: In GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2) of 2012-09-05 on blackCat Windowing system distributor `The X.Org Foundation', version 11.0.11103000 Configured using: `configure '--with-x-toolkit=gtk3'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Debugger Minor modes in effect: shell-dirtrack-mode: t tooltip-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 Recent input: x g d b g u d - g d b . / r t m x r e p o r t - e m a Recent messages: Debug on Error enabled globally Tramp: Opening connection for Remote-Host using scpc... Opening connection for Remote-Host using scpc... \ Tramp: Opening connection for Remote-Host using scpc...done Tramp: Opening connection for Remote-Host using scpc... Opening connection for Remote-Host using scpc... \ Tramp: Opening connection for Remote-Host using scpc...done Entering debugger... Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils debug gud easy-mmode dired tramp-cache tramp-sh tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv macroexp assoc gnus-util mm-util mail-prsvr password-cache shell pcomplete comint ansi-color ring format-spec advice help-fns advice-preload tramp-loaddefs regexp-opt cus-start cus-load time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-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 loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From unknown Mon Aug 11 19:04:37 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Paul K Subject: bug#12358: closed (Re: bug#12358: 24.2; M-x gud-gdb on remote binary does not work) Message-ID: References: X-Gnu-PR-Message: they-closed 12358 X-Gnu-PR-Package: emacs Reply-To: 12358@debbugs.gnu.org Date: Tue, 23 Oct 2012 17:53:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1351014782-24377-1" This is a multi-part message in MIME format... ------------=_1351014782-24377-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #12358: 24.2; M-x gud-gdb on remote binary does not work which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 12358@debbugs.gnu.org. --=20 12358: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D12358 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1351014782-24377-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 12358-done) by debbugs.gnu.org; 23 Oct 2012 17:52:50 +0000 Received: from localhost ([127.0.0.1]:58095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TQien-0006Kl-15 for submit@debbugs.gnu.org; Tue, 23 Oct 2012 13:52:49 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:46372 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TQiek-0006Kc-SN for 12358-done@debbugs.gnu.org; Tue, 23 Oct 2012 13:52:48 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TQicv-0004sM-8V; Tue, 23 Oct 2012 13:50:53 -0400 From: Glenn Morris To: 12358-done@debbugs.gnu.org Subject: Re: bug#12358: 24.2; M-x gud-gdb on remote binary does not work References: X-Spook: Capricorn John Kerry Glock Exon Shell plutonium mania X-Ran: m5i6lT)HK=5yc\0+'#p?EJ",mUuA-Zx;&oWT%KpT~aZP"%qy]my2B&4rc+Y&fUJP;=b5-9 X-Hue: green X-Attribution: GM Date: Tue, 23 Oct 2012 13:50:53 -0400 In-Reply-To: (Paul K.'s message of "Wed, 5 Sep 2012 17:49:15 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: 12358-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) Version: 24.3 Paul K wrote: > prompt$ emacs --eval '(toggle-debug-on-error)' > > then within emacs visit directory with some binary You want to debug > on some remote machine (my remote machine is running RH6, but > it probably does not matter) and issue: > > M-x gud-gdb: theBinary > > You will receive following error: > Debugger entered--Lisp error: (void-variable gdb-active-process) Thanks. I installed a fix for this, which is not restricted to remote binaries, but does only show up when debug-on-error is non-nil. ------------=_1351014782-24377-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 5 Sep 2012 15:54:06 +0000 Received: from localhost ([127.0.0.1]:40608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9Hva-00034h-2A for submit@debbugs.gnu.org; Wed, 05 Sep 2012 11:54:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38292) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9HrG-0002xV-08 for submit@debbugs.gnu.org; Wed, 05 Sep 2012 11:49:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9Hr2-00083a-W7 for submit@debbugs.gnu.org; Wed, 05 Sep 2012 11:49:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:58221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9Hr2-00083U-TX for submit@debbugs.gnu.org; Wed, 05 Sep 2012 11:49:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9Hqw-0002gI-MZ for bug-gnu-emacs@gnu.org; Wed, 05 Sep 2012 11:49:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9Hqv-000827-AW for bug-gnu-emacs@gnu.org; Wed, 05 Sep 2012 11:49:18 -0400 Received: from mail-pb0-f41.google.com ([209.85.160.41]:44679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9Hqv-00081s-4C for bug-gnu-emacs@gnu.org; Wed, 05 Sep 2012 11:49:17 -0400 Received: by pbbro12 with SMTP id ro12so1273428pbb.0 for ; Wed, 05 Sep 2012 08:49:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=NRB/AQVkGpo/vf0OB6xMylv1mQ9M+aT32LuPRyma/nE=; b=ti54Bjh7j+ff5kk+Qvokj0H6pf+g3QB0ozzGbON8kMXhkGRCuKToFNQJr7PPvHLOKx uNXaQMn/HIKIf0l3JM+MYsyDUqO7vq0ZuM2TwzOG9m5xDg+bKXW6leHXHBDaSSDUJPq5 d3AKXAeepJS8105GEFe2KQMDtt8t6xHWRXCLMbKQvfUlVczP91vWPgoi+fwpAPtS5fzD DhPdz4dCjcvcHxBaqQbbfPSYmIFzlIdM+wxoSLSohhJWx2rMDDeQRQu0xyTJDGpOZLMn rCPXF/iBQyf9aaFXIpRT8qGy3/k93tut2XbizK0O8+634g0vSRfLqPW8XQRcdSmmxLWt QYxw== MIME-Version: 1.0 Received: by 10.68.240.236 with SMTP id wd12mr56277437pbc.83.1346860155793; Wed, 05 Sep 2012 08:49:15 -0700 (PDT) Received: by 10.68.73.37 with HTTP; Wed, 5 Sep 2012 08:49:15 -0700 (PDT) Date: Wed, 5 Sep 2012 17:49:15 +0200 Message-ID: Subject: 24.2; M-x gud-gdb on remote binary does not work From: Paul K To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 05 Sep 2012 11:54:04 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) How to reproduce the problem: prompt$ emacs --eval '(toggle-debug-on-error)' then within emacs visit directory with some binary You want to debug on some remote machine (my remote machine is running RH6, but it probably does not matter) and issue: M-x gud-gdb: theBinary You will receive following error: Debugger entered--Lisp error: (void-variable gdb-active-process) (if gdb-active-process "Continue" "Run") Please DO NOT try to issue `M-x gdb` before, because this hides the problem. Following are the data produced by M-x report-emacs-bug: In GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2) of 2012-09-05 on blackCat Windowing system distributor `The X.Org Foundation', version 11.0.11103000 Configured using: `configure '--with-x-toolkit=gtk3'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Debugger Minor modes in effect: shell-dirtrack-mode: t tooltip-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 Recent input: x g d b g u d - g d b . / r t m x r e p o r t - e m a Recent messages: Debug on Error enabled globally Tramp: Opening connection for Remote-Host using scpc... Opening connection for Remote-Host using scpc... \ Tramp: Opening connection for Remote-Host using scpc...done Tramp: Opening connection for Remote-Host using scpc... Opening connection for Remote-Host using scpc... \ Tramp: Opening connection for Remote-Host using scpc...done Entering debugger... Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils debug gud easy-mmode dired tramp-cache tramp-sh tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv macroexp assoc gnus-util mm-util mail-prsvr password-cache shell pcomplete comint ansi-color ring format-spec advice help-fns advice-preload tramp-loaddefs regexp-opt cus-start cus-load time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-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 loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) ------------=_1351014782-24377-1--