Comment 2 for bug 1241668

Revision history for this message
David Coles (dcoles) wrote :

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.