bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22657: 24.5; "Python Exception <class 'NameError'> name 'long' is no


From: Eli Zaretskii
Subject: bug#22657: 24.5; "Python Exception <class 'NameError'> name 'long' is not defined" while using gdb registers buffer
Date: Sun, 14 Feb 2016 21:28:59 +0200

> From: Douglas Anderson <douglasjanderson@gmail.com>
> Date: Sun, 14 Feb 2016 12:22:47 -0700
> Cc: Eli Zaretskii <eliz@gnu.org>, 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]