unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: douglas.j.anderson@gmail.com
Cc: 22657@debbugs.gnu.org
Subject: bug#22657: 24.5; "Python Exception <class 'NameError'> name 'long' is not defined" while using gdb registers buffer
Date: Sun, 14 Feb 2016 20:11:10 +0200	[thread overview]
Message-ID: <8337svyxfl.fsf@gnu.org> (raw)
In-Reply-To: <CAFBY8F3WpdaA8+MCgBju5g5Qi3xnL5sY9ZerR6dfumD_sMM_Rw@mail.gmail.com> (message from Douglas Anderson on Sun, 14 Feb 2016 10:22:40 -0700)

> From: Douglas Anderson <douglasjanderson@gmail.com>
> 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 <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: 
> Python Exception <class 'NameError'> name 'long' is not defined: 
> 
> (I hit Enter a few times)
> 
> Starting program: [...]/a.out 
> 
> Breakpoint 1, 0x000000000040053a in main ()
> (gdb) 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: 
> Python Exception <class 'NameError'> name 'long' is not defined: 
> 
> Breakpoint 1, 0x000000000040053a in main ()
> 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: 
> Python Exception <class 'NameError'> 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.





  reply	other threads:[~2016-02-14 18:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-14  5:00 bug#22657: 24.5; "Python Exception <class 'NameError'> name 'long' is not defined" while using gdb registers buffer Douglas Anderson
2016-02-14 16:34 ` Eli Zaretskii
2016-02-14 17:22   ` Douglas Anderson
2016-02-14 18:11     ` Eli Zaretskii [this message]
2016-02-14 18:20       ` immerrr again
2016-02-14 19:22         ` Douglas Anderson
2016-02-14 19:28           ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8337svyxfl.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=22657@debbugs.gnu.org \
    --cc=douglas.j.anderson@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).