forked from Imagelibrary/binutils-gdb
Fix gdb.Value->python conversion for large unsigned ints.
gdb/ChangeLog: * python/py-value.c (valpy_long): Handle unsigned values. gdb/testsuite/ChangeLog: * gdb.python/py-value.exp (test_value_creation): Add test for large unsigned 64-bit value.
This commit is contained in:
@@ -1518,7 +1518,10 @@ valpy_long (PyObject *self)
|
||||
}
|
||||
END_CATCH
|
||||
|
||||
return gdb_py_long_from_longest (l);
|
||||
if (TYPE_UNSIGNED (type))
|
||||
return gdb_py_long_from_ulongest (l);
|
||||
else
|
||||
return gdb_py_long_from_longest (l);
|
||||
}
|
||||
|
||||
/* Implements conversion to float. */
|
||||
|
||||
Reference in New Issue
Block a user