From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22657: 24.5; "Python Exception name 'long' is not defined" while using gdb registers buffer Date: Sun, 14 Feb 2016 20:11:10 +0200 Message-ID: <8337svyxfl.fsf@gnu.org> References: <83fuwvz1wr.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1455473544 29237 80.91.229.3 (14 Feb 2016 18:12:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Feb 2016 18:12:24 +0000 (UTC) Cc: 22657@debbugs.gnu.org To: douglas.j.anderson@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 14 19:12:12 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 1aV19X-00088h-E2 for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Feb 2016 19:12:11 +0100 Original-Received: from localhost ([::1]:52612 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV19W-0002c3-D3 for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Feb 2016 13:12:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV19R-0002Zq-Do for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2016 13:12:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aV19O-0005d3-5x for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2016 13:12:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV19O-0005cz-2h for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2016 13:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aV19N-0002V5-Sl for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2016 13:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Feb 2016 18:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22657 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22657-submit@debbugs.gnu.org id=B22657.14554734789561 (code B ref 22657); Sun, 14 Feb 2016 18:12:01 +0000 Original-Received: (at 22657) by debbugs.gnu.org; 14 Feb 2016 18:11:18 +0000 Original-Received: from localhost ([127.0.0.1]:39034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aV18f-0002U9-Mm for submit@debbugs.gnu.org; Sun, 14 Feb 2016 13:11:17 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53204) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aV18e-0002Tx-3i for 22657@debbugs.gnu.org; Sun, 14 Feb 2016 13:11:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aV18V-0005XE-O7 for 22657@debbugs.gnu.org; Sun, 14 Feb 2016 13:11:10 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59367) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV18V-0005XA-Kc; Sun, 14 Feb 2016 13:11:07 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3311 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aV18U-00086I-Ry; Sun, 14 Feb 2016 13:11:07 -0500 In-reply-to: (message from Douglas Anderson on Sun, 14 Feb 2016 10:22:40 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113029 Archived-At: > From: Douglas Anderson > Date: Sun, 14 Feb 2016 10:22:40 -0700 > Cc: 22657@debbugs.gnu.org > > I did `$ sudo apt-get purge emacs && sudo apt-get update && sudo apt-get install emacs` to make sure my > installation wasn't corrupted. I suggest to do the same for your GDB installation. The exceptions come from the GDB Python support files, so maybe they are misconfigured. > $ gdb --version > GNU gdb (Ubuntu 7.10-1ubuntu2) 7.10 I also use GDB 7.10. > $ gcc --version > gcc (Ubuntu 5.2.1-22ubuntu2) 5.2.1 20151010 My GCC is 4.8.1, not sure if this is related. > $ gcc test.c > > M-x gdb > Run gdb (like this): gdb -i=mi a.out > (If it opens in many-windows mode, continue on, if not, do M-x gdb-display-registers-buffer) > > (gdb) b main > Breakpoint 1 at 0x40053a > (gdb) r > Starting program:[...]/a.out > > Breakpoint 1, 0x000000000040053a in main () > (gdb) Python Exception name 'long' is not defined: > Python Exception name 'long' is not defined: > Python Exception name 'long' is not defined: > Python Exception name 'long' is not defined: > > (I hit Enter a few times) > > Starting program: [...]/a.out > > Breakpoint 1, 0x000000000040053a in main () > (gdb) Python Exception name 'long' is not defined: > Python Exception name 'long' is not defined: > Python Exception name 'long' is not defined: > Python Exception name 'long' is not defined: > > Breakpoint 1, 0x000000000040053a in main () > Python Exception name 'long' is not defined: > Python Exception name 'long' is not defined: > Python Exception name 'long' is not defined: > Python Exception name 'long' is not defined: > > In the status line, it says, "error in process filter: Bad string format: "doesn't start with '\"\!" > > If you still can't reproduce, maybe it's a bug for the ubuntu package maintainer. I still cannot reproduce this. If updating GDB (perhaps to the latest version 7.10.1) doesn't help, please take it up with the Ubuntu package maintainers. Thanks.