Looks like the cause of the "'gdb.Value' object cannot be interpreted as
an integer" error is the range function not being able to turn a
gdb.Value into an int. Put an explicit `int(val)` in there and I can get
py-bt and py-list to work again.

I've attached a patch with the changes I've made, but I want to check
that this doesn't break Python 2.7 support and clean it up a bit more
(pretty sure that `long` and `int` have been unified for a while now)
before submitting this upstream.

** Patch added: "Python 3 support"
   
https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1241668/+attachment/3884699/+files/python3-support.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1241668

Title:
  gdb embeds python3.3, but support scripts are not compatible

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1241668/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to