From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 14 02:09:14 2016 Received: (at submit) by debbugs.gnu.org; 14 Feb 2016 07:09:14 +0000 Received: from localhost ([127.0.0.1]:38477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aUqnx-0002Ye-Nk for submit@debbugs.gnu.org; Sun, 14 Feb 2016 02:09:14 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47872) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aUooD-0007nz-7n for submit@debbugs.gnu.org; Sun, 14 Feb 2016 00:01:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUoo6-0004uv-8h for submit@debbugs.gnu.org; Sun, 14 Feb 2016 00:01:16 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: **** X-Spam-Status: No, score=4.3 required=5.0 tests=BAYES_50,FREEMAIL_FROM, FREEMAIL_REPLYTO,HTML_MESSAGE,SPOOFED_FREEM_REPTO,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUoo6-0004ur-5T for submit@debbugs.gnu.org; Sun, 14 Feb 2016 00:01:14 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUoo4-0007rh-FM for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2016 00:01:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUoo2-0004uH-MT for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2016 00:01:12 -0500 Received: from mail-lf0-x22d.google.com ([2a00:1450:4010:c07::22d]:35332) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUoo2-0004ts-8v for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2016 00:01:10 -0500 Received: by mail-lf0-x22d.google.com with SMTP id l143so72316612lfe.2 for ; Sat, 13 Feb 2016 21:01:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:from:date:message-id:subject:to:content-type; bh=dbF/K30atJvTEIhDR7qM60hyWXVWSgUq46SNxhFXRFg=; b=v29RlLaNRfQrj5w97iTx5yeqbzA/GrYEJwC95cNXtcbPb1QNQh6rEmTR9GS2HeO+SZ riVhtRfzs5W8kQGXzrcOvSdWzNEEGpcuiA95vRi/KZukdtEyXEfhDpsQYj4YtDmekZkv CfQ0Jr7N99F5ZcIVBqB5eCBoOCtThq3cUx/KDfjT2GTVkSPCzU5EV8nA/Q4qQfHYVoIz FM6dwiAeLy7EZI9gmZPIYLFC9VfVr73RURD3tGi14Wy/UFtz/pHgYqPby8QUhbMhmG2Z ZNx+Kptti2RczL5u59LBKICfyIAcHqLbvVuo6+Hebf2LO4cO5DzO9FSiAnmAcaieSLse WXgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to:content-type; bh=dbF/K30atJvTEIhDR7qM60hyWXVWSgUq46SNxhFXRFg=; b=KLvMH3+g6QyUBwoyglxsaD9NICi1TwokIsVJrlKmKXQV8134vt5ZT+U3qQP0QAqKxk iz5q5pTMY2jw6TEbRw36Qe5j+kYNNmKLBc8WtK87+Zg5zt1fcZrgNUUJyMgs1T6xozLU Jvjx8UufRuIDk3nqz/xgLB5VrvvefVnXCNKLau8R0KCDzpiF7Xr/xPRuPmVMaO59yC/G rIBz4uXaXh/gItgX9XSHl1Mf/GCsKV8s4toZsZkqki9gUvadb0T5kkHiZabNvAikLjCy SxnS9mhKtQft616C/g0Y45dZ4sZ3+i7QS60qKaJiHxjGiBPS57bIp8U7rMbc91v+VTO3 BaVg== X-Gm-Message-State: AG10YOT/HaLWsYalAU1mMCZPy9vls/fbOWD5AQZYuhXxEF2cEgS1jDFWaXgHBCOmkNwbzApubBZoPKc3lQHsMg== X-Received: by 10.25.44.213 with SMTP id s204mr4018419lfs.148.1455426068785; Sat, 13 Feb 2016 21:01:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.215.215 with HTTP; Sat, 13 Feb 2016 21:00:49 -0800 (PST) From: Douglas Anderson Date: Sat, 13 Feb 2016 22:00:49 -0700 Message-ID: Subject: 24.5; "Python Exception name 'long' is not defined" while using gdb registers buffer To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001a113db70ad3af98052bb3c954 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 14 Feb 2016 02:09:12 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: douglas.j.anderson@gmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a113db70ad3af98052bb3c954 Content-Type: text/plain; charset=UTF-8 Hello, I'm using current stable on Ubuntu 15.10. Steps to reproduce: - open emacs gdb-many-windows mode (I only hit this bug if the registers buffer is open) - set a breakpoint - run The following text appears in the gud window: (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: Hitting enter reruns the program from the beginning. -Doug ---- In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.16.6) of 2015-09-17 on lgw01-52, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11702000 System Description: Ubuntu 15.10 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=-D_FORTIFY_SOURCE=2 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'' Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Debugger Minor modes in effect: gdb-many-windows: t shell-dirtrack-mode: t delete-selection-mode: t electric-pair-mode: t show-paren-mode: t electric-layout-mode: t electric-indent-mode: t mouse-wheel-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 column-number-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Making completion list... Quit Making completion list... Complete, but not unique Making completion list... Complete, but not unique ~/dev/hw/cu/computer_systems/2_bomblab/bomb122 Target doesn't support non-stop mode. Turning it off. Gdb-Many-Windows mode enabled Switched to thread 1 completing-read-default: Command attempted to use minibuffer while in minibuffer Load-path shadows: /usr/share/emacs/24.5/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils thingatpt pcase vc-git ggtags etags compile ewoc disp-table cc-langs cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs pcmpl-unix gdb-mi bindat json gud easy-mmode init shell pcomplete comint ansi-color ring delsel fill-column-indicator flycheck find-func help-mode rx subr-x seq dash server exec-path-from-shell wombat-theme elec-pair cus-start cus-load paren edmacro kmacro cl-loaddefs cl-lib saveplace ido info easymenu package epg-config 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 217848 73052) (symbols 48 29676 1) (miscs 40 285 586) (strings 32 56149 52692) (string-bytes 1 1626801) (vectors 16 28647) (vector-slots 8 1284058 121485) (floats 8 117 570) (intervals 56 830 86) (buffers 960 26) (heap 1024 71315 3522)) --001a113db70ad3af98052bb3c954 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

I'm using current stable on Ubuntu = 15.10.

Steps to reproduce:
=C2=A0- open emacs gdb-many-windows mo= de (I only hit this bug if the registers
buffer is open)
=C2=A0- set = a breakpoint
=C2=A0- run

The following text appears in the gud wi= ndow:
(gdb) Python Exception <class 'NameError'> name '= ;long' is not defined:
Python Exception <class 'NameError= 9;> name 'long' is not defined:
Python Exception <class &= #39;NameError'> name 'long' is not defined:
Python Excep= tion <class 'NameError'> name 'long' is not defined: =

Hitting enter reruns the program from the beginning.

-= Doug
----
In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version= 3.16.6)
=C2=A0of 2015-09-17 on lgw01-52, modified by Debian
Windowin= g system distributor `The X.Org Foundation', version 11.0.11702000
S= ystem Description:=C2=A0=C2=A0=C2=A0 Ubuntu 15.10

Configured using:<= br>=C2=A0`configure --build x86_64-linux-gnu --prefix=3D/usr
=C2=A0--sha= redstatedir=3D/var/lib --libexecdir=3D/usr/lib
=C2=A0--localstatedir=3D/= var/lib --infodir=3D/usr/share/info
=C2=A0--mandir=3D/usr/share/man --wi= th-pop=3Dyes
=C2=A0--enable-locallisppath=3D/etc/emacs24:/etc/emacs:/usr= /local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/sha= re/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp
=C2=A0--build x86_64-= linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib
=C2=A0--libexecdir= =3D/usr/lib --localstatedir=3D/var/lib
=C2=A0--infodir=3D/usr/share/info= --mandir=3D/usr/share/man --with-pop=3Dyes
=C2=A0--enable-locallisppath= =3D/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/sit= e-lisp
=C2=A0--with-x=3Dyes --with-x-toolkit=3Dgtk3 --with-toolkit-scrol= l-bars
=C2=A0'CFLAGS=3D-g -O2 -fstack-protector-strong -Wformat
= =C2=A0-Werror=3Dformat-security -Wall' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2=
=C2=A0'LDFLAGS=3D-Wl,-Bsymbolic-functions -Wl,-z,relro''
Important settings:
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 va= lue of $XMODIFIERS: @im=3Dibus
=C2=A0 locale-coding-system: utf-8-unix
Major mode: Debugger

Minor modes in effect:
=C2=A0 gdb-many= -windows: t
=C2=A0 shell-dirtrack-mode: t
=C2=A0 delete-selection-mod= e: t
=C2=A0 electric-pair-mode: t
=C2=A0 show-paren-mode: t
=C2=A0= electric-layout-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-= wheel-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock= -mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2= =A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 au= to-compression-mode: t
=C2=A0 column-number-mode: t
=C2=A0 line-numbe= r-mode: t
=C2=A0 transient-mark-mode: t

Recent messages:
Makin= g completion list...
Quit
Making completion list...
Complete, but = not unique
Making completion list...
Complete, but not unique
~/de= v/hw/cu/computer_systems/2_bomblab/bomb122
Target doesn't support n= on-stop mode.=C2=A0 Turning it off.
Gdb-Many-Windows mode enabled
Swi= tched to thread 1
completing-read-default: Command attempted to use mini= buffer while in minibuffer

Load-path shadows:
/usr/share/emacs/24= .5/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup=

Features:
(shadow sort gnus-util mail-extr emacsbug message form= at-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2= 231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums = mm-util
help-fns mail-prsvr mail-utils thingatpt pcase vc-git ggtags eta= gs
compile ewoc disp-table cc-langs cc-mode cc-fonts cc-guess cc-menuscc-cmds cc-styles cc-align cc-engine cc-vars cc-defs pcmpl-unix gdb-mibindat json gud easy-mmode init shell pcomplete comint ansi-color ring
= delsel fill-column-indicator flycheck find-func help-mode rx subr-x seq
= dash server exec-path-from-shell wombat-theme elec-pair cus-start
cus-lo= ad paren edmacro kmacro cl-loaddefs cl-lib saveplace ido info
easymenu p= ackage epg-config time-date tooltip electric uniquify
ediff-hook vc-hook= s lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image regexp-o= pt fringe tabulated-list newcomment lisp-mode
prog-mode register page me= nu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock synt= ax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnames= e 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 c= us-face macroexp files
text-properties overlay sha1 md5 base64 format en= v 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 217848 73052)
=C2=A0(symbols 48 296= 76 1)
=C2=A0(miscs 40 285 586)
=C2=A0(strings 32 56149 52692)
=C2= =A0(string-bytes 1 1626801)
=C2=A0(vectors 16 28647)
=C2=A0(vector-sl= ots 8 1284058 121485)
=C2=A0(floats 8 117 570)
=C2=A0(intervals 56 83= 0 86)
=C2=A0(buffers 960 26)
=C2=A0(heap 1024 71315 3522))

--001a113db70ad3af98052bb3c954-- From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 14 11:34:34 2016 Received: (at 22657) by debbugs.gnu.org; 14 Feb 2016 16:34:34 +0000 Received: from localhost ([127.0.0.1]:38962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aUzd4-0000Bi-30 for submit@debbugs.gnu.org; Sun, 14 Feb 2016 11:34:34 -0500 Received: from eggs.gnu.org ([208.118.235.92]:34590) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aUzd2-0000BV-Qi for 22657@debbugs.gnu.org; Sun, 14 Feb 2016 11:34:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUzcu-0001hj-Jq for 22657@debbugs.gnu.org; Sun, 14 Feb 2016 11:34:27 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUzcu-0001hf-GF; Sun, 14 Feb 2016 11:34:24 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3112 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aUzct-0002KJ-RG; Sun, 14 Feb 2016 11:34:24 -0500 Date: Sun, 14 Feb 2016 18:34:28 +0200 Message-Id: <83fuwvz1wr.fsf@gnu.org> From: Eli Zaretskii To: douglas.j.anderson@gmail.com In-reply-to: (message from Douglas Anderson on Sat, 13 Feb 2016 22:00:49 -0700) Subject: Re: bug#22657: 24.5; "Python Exception name 'long' is not defined" while using gdb registers buffer References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22657 Cc: 22657@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Douglas Anderson > Date: Sat, 13 Feb 2016 22:00:49 -0700 > > I'm using current stable on Ubuntu 15.10. > > Steps to reproduce: > - open emacs gdb-many-windows mode (I only hit this bug if the registers > buffer is open) > - set a breakpoint > - run > > The following text appears in the gud window: > (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: > > Hitting enter reruns the program from the beginning. I cannot reproduce this. Please show the exact sequence of commands you used, including the program which you ran under the debugger, for me to be sure I did the same. Also, what is your GDB version? IME, Python exceptions in GDB usually mean your Python support files are from a different GDB version, so perhaps double-check your GDB installation. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 14 12:23:08 2016 Received: (at 22657) by debbugs.gnu.org; 14 Feb 2016 17:23:08 +0000 Received: from localhost ([127.0.0.1]:39009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aV0O3-0001KK-Vq for submit@debbugs.gnu.org; Sun, 14 Feb 2016 12:23:08 -0500 Received: from mail-lb0-f181.google.com ([209.85.217.181]:35035) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aV0O2-0001Jc-92 for 22657@debbugs.gnu.org; Sun, 14 Feb 2016 12:23:06 -0500 Received: by mail-lb0-f181.google.com with SMTP id bc4so67443524lbc.2 for <22657@debbugs.gnu.org>; Sun, 14 Feb 2016 09:23:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=CczH5bAycT/LHIfB+udiwPSFqUV1lPrazpbKc0tIzWA=; b=QY9nh+x/LOKUH0zRGMN6a6DKs4LblR6uVvpHCxw8mR/r/rjHDegh6VO0NnYak48lfh opuO09GAuaBMtVqG5VLc2U/3dZ9UZjxdSHWeu2Lt5XOKFyX4sWrBZGBTWtDOjKx4JKeG YHGrHqFrYzOE6vBQ4073AeDCLel5vmFX1I5YZCMhctIUOX5+p5IcMfch4S2ppb5fu4cc ngNJasdyhz/i23vdA2LlxAhr9TIZ7PBbkRdn0426npaJ5m3uBR2YkWbaJ9KU2NEWfVsA lvzjbOkJG0G41FGCAbR+wiU147/EZYCb7P1Y5Ysw6GNhCycUTod8V4uAjhl2etWHrzve xqXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=CczH5bAycT/LHIfB+udiwPSFqUV1lPrazpbKc0tIzWA=; b=DODMJGpNcll+vm+Y6O0vf4rQETBHerwCfxeD228JXgMsqdbfWqS1+o9g+EcJn1rUgq BmjNCwkyP48I/tgDEn71H8hf6/kiS/WdogJUP6Yn2Da+Fy+EuX1xJgheXS/7nydF3kmF /oPsOc9eTZLbPas3Crlc+gPiv5vL3JZHAz/sOytTWy8JQO55+hwjwX897vJxJbldpScK GNsyJtUqvwbSqkzQDg7l0EICdx74qbRcl9yic3FW26FBmE+V/g9xsOaynNt5wWJWOc60 llQFanOd0S+ONCL1/lLE+weAMOhV80rbdsLa5nhwk2uR9rwAmc5Q7dV2naOxqldNEIdj AVSw== X-Gm-Message-State: AG10YORodbBxTIACMPMHrtTfGAZfneD83aOG+etR4W2QUM8ssB/C/UBencNFypYisr1yn4KTVl63l+QWMXba7Q== X-Received: by 10.112.161.198 with SMTP id xu6mr1812192lbb.131.1455470580394; Sun, 14 Feb 2016 09:23:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.215.215 with HTTP; Sun, 14 Feb 2016 09:22:40 -0800 (PST) In-Reply-To: <83fuwvz1wr.fsf@gnu.org> References: <83fuwvz1wr.fsf@gnu.org> From: Douglas Anderson Date: Sun, 14 Feb 2016 10:22:40 -0700 Message-ID: Subject: Re: bug#22657: 24.5; "Python Exception name 'long' is not defined" while using gdb registers buffer To: Eli Zaretskii Content-Type: multipart/alternative; boundary=001a11c3c7c8ecf13f052bbe26d2 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 22657 Cc: 22657@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: douglas.j.anderson@gmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --001a11c3c7c8ecf13f052bbe26d2 Content-Type: text/plain; charset=UTF-8 Thanks Eli, 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 don't have any gdb-specific lines in my init.el $ gdb --version GNU gdb (Ubuntu 7.10-1ubuntu2) 7.10 [...] $ cat test.c #include int main() {printf("Testing...\n");} $ gcc --version gcc (Ubuntu 5.2.1-22ubuntu2) 5.2.1 20151010 $ 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. Thanks, -Doug On Sun, Feb 14, 2016 at 9:34 AM, Eli Zaretskii wrote: > > From: Douglas Anderson > > Date: Sat, 13 Feb 2016 22:00:49 -0700 > > > > I'm using current stable on Ubuntu 15.10. > > > > Steps to reproduce: > > - open emacs gdb-many-windows mode (I only hit this bug if the registers > > buffer is open) > > - set a breakpoint > > - run > > > > The following text appears in the gud window: > > (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: > > > > Hitting enter reruns the program from the beginning. > > I cannot reproduce this. Please show the exact sequence of commands > you used, including the program which you ran under the debugger, for > me to be sure I did the same. > > Also, what is your GDB version? > > IME, Python exceptions in GDB usually mean your Python support files > are from a different GDB version, so perhaps double-check your GDB > installation. > > Thanks. > --001a11c3c7c8ecf13f052bbe26d2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks Eli,

I did `$ sudo apt-get purge emacs && sudo apt-get update &am= p;& sudo apt-get install emacs` to make sure my installation wasn't= corrupted.

I don't have any gdb-specific lines in my= init.el

$ gdb --version
GNU gdb (Ubuntu 7.10-1ubuntu2= ) 7.10
[...]

$ cat test.c
#include <stdio.h>
int mai= n() {printf("Testing...\n");}

$ gcc --version
gcc (Ubun= tu 5.2.1-22ubuntu2) 5.2.1 20151010

$ gcc test.c

M-x gdb=
Run gdb (like this): gdb -i=3Dmi a.out
(If it opens= in many-windows mode, continue on, if not, do M-x gdb-display-registers-bu= ffer)

(gdb) b main
Breakpoint 1 at 0x40053a
(gdb) r
S= tarting program:[...]/a.out

Breakpoint 1, 0x000000000040053a in mai= n ()
(gdb) Python Exception <class 'NameError'> name '= long' is not defined:
Python Exception <class 'NameError'= ;> name 'long' is not defined:
Python Exception <class &#= 39;NameError'> name 'long' is not defined:
Python Except= ion <class 'NameError'> name 'long' is not defined: <= br>
(I hit Enter a few times)

Starting program: [...]/a.out=

Breakpoint 1, 0x000000000040053a in main ()
(gdb) Python Except= ion <class 'NameError'> name 'long' is not defined: <= br>Python Exception <class 'NameError'> name 'long' i= s not defined:
Python Exception <class 'NameError'> name = 'long' is not defined:
Python Exception <class 'NameErro= r'> name 'long' is not defined:


Breakpoint 1, 0x= 000000000040053a in main ()
Python Exception <class 'NameError= 9;> name 'long' is not defined:
Python Exception <class &= #39;NameError'> name 'long' is not defined:
Python Excep= tion <class 'NameError'> name 'long' is not defined: =
Python Exception <class 'NameError'> name 'long' = is not defined:

In the status line, it says, "error in p= rocess filter: Bad string format: "doesn't start with '\"= \!"

If you still can't reproduce, maybe it's= a bug for the ubuntu package maintainer.
Thanks,
-Doug<= br>

On Sun, = Feb 14, 2016 at 9:34 AM, Eli Zaretskii <eliz@gnu.org> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">> From: Douglas Anderson <douglasjanderson@gmail.com>
> Date: Sat, 13 Feb 2016 22:00:49 -0700
>
> I'm using current stable on Ubuntu 15.10.
>
> Steps to reproduce:
> - open emacs gdb-many-windows mode (I only hit this bug if the registe= rs
> buffer is open)
> - set a breakpoint
> - run
>
> The following text appears in the gud window:
> (gdb) Python Exception <class 'NameError'> name 'lon= g' is not defined:
> Python Exception <class 'NameError'> name 'long'= is not defined:
> Python Exception <class 'NameError'> name 'long'= is not defined:
> Python Exception <class 'NameError'> name 'long'= is not defined:
>
> Hitting enter reruns the program from the beginning.

I cannot reproduce this.=C2=A0 Please show the exact sequence of commands you used, including the program which you ran under the debugger, for
me to be sure I did the same.

Also, what is your GDB version?

IME, Python exceptions in GDB usually mean your Python support files
are from a different GDB version, so perhaps double-check your GDB
installation.

Thanks.

--001a11c3c7c8ecf13f052bbe26d2-- From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 14 13:11:17 2016 Received: (at 22657) by debbugs.gnu.org; 14 Feb 2016 18:11:18 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 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 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 Date: Sun, 14 Feb 2016 20:11:10 +0200 Message-Id: <8337svyxfl.fsf@gnu.org> From: Eli Zaretskii To: douglas.j.anderson@gmail.com In-reply-to: (message from Douglas Anderson on Sun, 14 Feb 2016 10:22:40 -0700) Subject: Re: bug#22657: 24.5; "Python Exception name 'long' is not defined" while using gdb registers buffer References: <83fuwvz1wr.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22657 Cc: 22657@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 14 13:21:02 2016 Received: (at 22657) by debbugs.gnu.org; 14 Feb 2016 18:21:02 +0000 Received: from localhost ([127.0.0.1]:39038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aV1I6-0004Jv-KR for submit@debbugs.gnu.org; Sun, 14 Feb 2016 13:21:02 -0500 Received: from mail-wm0-f51.google.com ([74.125.82.51]:35294) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aV1I5-0004JK-30 for 22657@debbugs.gnu.org; Sun, 14 Feb 2016 13:21:01 -0500 Received: by mail-wm0-f51.google.com with SMTP id c200so84659238wme.0 for <22657@debbugs.gnu.org>; Sun, 14 Feb 2016 10:21:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=lPpjYnlS1sE8uCDSfEnYE7D873MHapWzxPF5DLbTNgU=; b=LjkjBlsLRTLoMk2zrcvBWI5TtKLQCW7bRJkvt3Y40Z+5x41fkkx4Ch7rpvKJigxjdf 5CJd49wywJsLAPBx0+AmFrOLv3vymk5sGa65nCHejB94eIQzBRIA/Zr9ONTmCVDt8lv1 p6LKU/kQAeqfMl4WnBqvwit7SJiqVVw51Xbp/IT7jEj+eOdgE4sh2bpiF1AT1AeZ/yhV qG0wJQ/NUkTkAkFkBawUy3ETYiKKBodlY+a68hAs7GtGgdlZMwMfhLgB6ujpamHNGCDh P31zP1vioqYS0F4xTj7rWO3EdLx/xN8iS2YUXRVZIOvyYNuXZvjtnawuy0GTTolcvp89 Qu/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=lPpjYnlS1sE8uCDSfEnYE7D873MHapWzxPF5DLbTNgU=; b=EqAKICFyQRDqo9yWfk9cutSFRVo9rsijnQ9R95hEx4gahs+uxEL2JagYTXNZBvebRd F2B7K+UZc1jFnUs8USuCduLm01QlH6vTphjWRaPo9QnzLY34hswBv4/2EibFTyjE6jB8 nhJDVyZdiMKfrU/A6zAMDhlnHGJAJy06BkEhF9yM+i8y6e+HNN4YEl2tto4k0jMTPAD8 CGJA/G3o+bteJjIICZFzGUYqwcU0JT9RN+YX8IB9lOgR/jHWB9oE0GFm/1Likxakd7T0 EOBchff+NdQm6b52VkBqgKXPp3d2I0F1BlunxBq6z7B+TJaIbBLahEV7GXpjgOvJ8Q5O +XJA== X-Gm-Message-State: AG10YOQZERbSUEgYxJKk+2m9h9hmg26ga1ZGVGbBEMj91lCOCusrgW3zPOApmJhSwVlBglqLIQSuiifOVbTmuw== MIME-Version: 1.0 X-Received: by 10.28.182.139 with SMTP id g133mr8155358wmf.70.1455474055418; Sun, 14 Feb 2016 10:20:55 -0800 (PST) Received: by 10.28.232.79 with HTTP; Sun, 14 Feb 2016 10:20:55 -0800 (PST) In-Reply-To: <8337svyxfl.fsf@gnu.org> References: <83fuwvz1wr.fsf@gnu.org> <8337svyxfl.fsf@gnu.org> Date: Sun, 14 Feb 2016 21:20:55 +0300 X-Google-Sender-Auth: sc0hF2usLjGRjaKTcvWEsL421ag Message-ID: Subject: Re: bug#22657: 24.5; "Python Exception name 'long' is not defined" while using gdb registers buffer From: immerrr again To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22657 Cc: douglas.j.anderson@gmail.com, 22657@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Sun, Feb 14, 2016 at 9:11 PM, Eli Zaretskii wrote: >> >> 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: >> NameError means something is undefined, so probably gdb is executing scripts using python3 and some script doesn't account for the fact that only "long" and "int" types got merged in Python3 world and "long" no longer exists. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 14 14:23:14 2016 Received: (at 22657) by debbugs.gnu.org; 14 Feb 2016 19:23:14 +0000 Received: from localhost ([127.0.0.1]:39058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aV2GI-0005iw-94 for submit@debbugs.gnu.org; Sun, 14 Feb 2016 14:23:14 -0500 Received: from mail-lb0-f169.google.com ([209.85.217.169]:34416) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aV2GG-0005ij-9W for 22657@debbugs.gnu.org; Sun, 14 Feb 2016 14:23:12 -0500 Received: by mail-lb0-f169.google.com with SMTP id ap4so10502610lbd.1 for <22657@debbugs.gnu.org>; Sun, 14 Feb 2016 11:23:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=BlNXC1M/1IAGnySJ3TkvjRjprh42ZsnvaIvJcmlIPS0=; b=nkgZZBnITB+tm/gbsW6om8NcEy0aIwc40GNiiXvEtCNYpp6t5QUvzi1xJUz/uhBOVX J1kUqIki8ZMWVDmupT9ARDPZg4gP1Z16wMWXvhenClSE9mXPsGkMCrKKmC29qRDimwoT bD9B8+IYVTLKmfrcUWYsdsTwoBldudd9SmDgBtCGJAjvyU5oizCcGppNZjhmId5JwkfW dlZd/BbCIZIgS4TpsyakK0VaBnBCDWQSJD/WRTW/kmwWTwyJcKaIz8YaFglwiolKiFfS M0J8so8m/sVs8D0FO6Y/Z63kSi2BHWVUhyjI5C5eSJS7AISszu9roejvHWCtJhQSV+Kj fwYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=BlNXC1M/1IAGnySJ3TkvjRjprh42ZsnvaIvJcmlIPS0=; b=I+AQCX3HauCChN5EEYvy057jroq1nESmG0Jtdyd1u1ADZTPwwJTK0ZndRFUuBWKmfn hGRJ+anTLRAFsTnVFXKpPpbDxNp6ONEvxFJBUC2U0rBR80M2Pgd7hKR32gSFXFyJLyfP 05gGhcDW5yLEWC53762RBuC5CdwCOIz/7NEThOTM1W6Dx46goqEHUvLpyAc0EuoujkuB HX9di/xG16UxQcWJmlztXNc5T1JSUyRdhfTOG1l/vKZJXjjTnoI1mN/MUcUC9MqpYLHP Fh6v74f1JMKF2DtrQNHOiEM+XNHpYo7drUEM/uwJQE/aBHrF7CNH3w822If7KAuKtLjf 4EqQ== X-Gm-Message-State: AG10YORWoKgN2cJHKN4t5EJqCZHyDGnGpgRQMxExddfNod2CURGDMuYL4+7MENts/uG8eDWFb1K1tHIdq8M6Nw== X-Received: by 10.112.162.168 with SMTP id yb8mr4877789lbb.36.1455477786547; Sun, 14 Feb 2016 11:23:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.215.215 with HTTP; Sun, 14 Feb 2016 11:22:47 -0800 (PST) In-Reply-To: References: <83fuwvz1wr.fsf@gnu.org> <8337svyxfl.fsf@gnu.org> From: Douglas Anderson Date: Sun, 14 Feb 2016 12:22:47 -0700 Message-ID: Subject: Re: bug#22657: 24.5; "Python Exception name 'long' is not defined" while using gdb registers buffer To: immerrr again Content-Type: multipart/alternative; boundary=089e0116008e721ac3052bbfd42c X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 22657 Cc: 22657@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: douglas.j.anderson@gmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --089e0116008e721ac3052bbfd42c Content-Type: text/plain; charset=UTF-8 Nice hint, yeah that helped me find it: index 9ff94aa..63b3fdf 100644 --- a/gdb/python/lib/gdb/printer/bound_registers.py +++ b/gdb/python/lib/gdb/printer/bound_registers.py @@ -25,7 +25,7 @@ class MpxBound128Printer: def to_string (self): upper = self.val["ubound"] lower = self.val["lbound"] - size = (long) ((upper) - (lower)) + size = (int) ((upper) - (lower)) if size > -1: size = size + 1 result = '{lbound = %s, ubound = %s} : size %s' % (lower, upper, size) I'll submit that patch to gdb, that fixed the exception. Thanks, -Doug On Sun, Feb 14, 2016 at 11:20 AM, immerrr again wrote: > On Sun, Feb 14, 2016 at 9:11 PM, Eli Zaretskii wrote: > >> > >> 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: > >> > > NameError means something is undefined, so probably gdb is executing > scripts using python3 and some script doesn't account for the fact > that only "long" and "int" types got merged in Python3 world and > "long" no longer exists. > --089e0116008e721ac3052bbfd42c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Nice hint, yeah that helped me find it:
=
index 9ff94aa..63b3fdf 100644
--- a/gdb/python/lib/gdb/printer/bound= _registers.py
+++ b/gdb/python/lib/gdb/printer/bound_registers.py
@@ = -25,7 +25,7 @@ class MpxBound128Printer:
=C2=A0=C2=A0=C2=A0=C2=A0 def to= _string (self):
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 upper = =3D self.val["ubound"]
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 lower =3D self.val["lbound"]
-=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 size=C2=A0 =3D (long) ((upper) - (lower))
+=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 size=C2=A0 =3D (int) ((upper) - (lower= ))
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if size > -1:
= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 si= ze =3D size + 1
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 result = =3D '{lbound =3D %s, ubound =3D %s} : size %s' % (lower, upper, siz= e)

I'll submit that patch to gdb, that fixed the exception= .

Thanks,
-Doug
<= br>
On Sun, Feb 14, 2016 at 11:20 AM, immerrr aga= in <immerrr@gmail.com> wrote:
On Sun, Feb 14, 2016 at 9:11 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>>
>> Breakpoint 1, 0x000000000040053a in main ()
>> (gdb) Python Exception <class 'NameError'> name '= ;long' is not defined:
>> Python Exception <class 'NameError'> name 'long&= #39; is not defined:
>> Python Exception <class 'NameError'> name 'long&= #39; is not defined:
>> Python Exception <class 'NameError'> name 'long&= #39; is not defined:
>>

NameError means something is undefined, so probably gdb is executing=
scripts using python3 and some script doesn't account for the fact
that only "long" and "int" types got merged=C2=A0 in Py= thon3 world and
"long" no longer exists.

--089e0116008e721ac3052bbfd42c-- From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 14 14:29:06 2016 Received: (at 22657-done) by debbugs.gnu.org; 14 Feb 2016 19:29:06 +0000 Received: from localhost ([127.0.0.1]:39066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aV2Ly-0005rJ-62 for submit@debbugs.gnu.org; Sun, 14 Feb 2016 14:29:06 -0500 Received: from eggs.gnu.org ([208.118.235.92]:37263) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aV2Lw-0005qp-9S for 22657-done@debbugs.gnu.org; Sun, 14 Feb 2016 14:29:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aV2Lo-0003k0-4k for 22657-done@debbugs.gnu.org; Sun, 14 Feb 2016 14:28:59 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV2Lo-0003jw-14; Sun, 14 Feb 2016 14:28:56 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3467 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aV2Ln-0007lm-5D; Sun, 14 Feb 2016 14:28:55 -0500 Date: Sun, 14 Feb 2016 21:28:59 +0200 Message-Id: <83y4anxf9g.fsf@gnu.org> From: Eli Zaretskii To: douglas.j.anderson@gmail.com In-reply-to: (message from Douglas Anderson on Sun, 14 Feb 2016 12:22:47 -0700) Subject: Re: bug#22657: 24.5; "Python Exception name 'long' is not defined" while using gdb registers buffer References: <83fuwvz1wr.fsf@gnu.org> <8337svyxfl.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22657-done Cc: 22657-done@debbugs.gnu.org, immerrr@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Douglas Anderson > Date: Sun, 14 Feb 2016 12:22:47 -0700 > Cc: Eli Zaretskii , 22657@debbugs.gnu.org > > Nice hint, yeah that helped me find it: > > index 9ff94aa..63b3fdf 100644 > --- a/gdb/python/lib/gdb/printer/bound_registers.py > +++ b/gdb/python/lib/gdb/printer/bound_registers.py > @@ -25,7 +25,7 @@ class MpxBound128Printer: > def to_string (self): > upper = self.val["ubound"] > lower = self.val["lbound"] > - size = (long) ((upper) - (lower)) > + size = (int) ((upper) - (lower)) > if size > -1: > size = size + 1 > result = '{lbound = %s, ubound = %s} : size %s' % (lower, upper, size) > > I'll submit that patch to gdb, that fixed the exception. Thanks, closing. From unknown Thu Aug 21 12:12:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 14 Mar 2016 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator