This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix gdb.Value->python conversion for large unsigned ints


Hi Doug,

On 03/30/2016 07:57 AM, Doug Evans wrote:
> Hi.
> 
> I was seeing this in gdb:
> 
> (gdb) py print long(gdb.Value(18446744071563607160))
> -2145944456
> 
> whereas with plain python:
> 
> (gdb) py print long(18446744071563607160)
> 18446744071563607160
> 

Looks like this fell through the cracks?

LGTM.

> 2016-03-29  Doug Evans  <dje@google.com>
> 
>     * python/py-value.c (valpy_long): Handle unsigned values.
> 
>     testsuite/
>     * gdb.python/py-value.exp (test_value_creation): Add test for large
>     unsigned 64-bit value.

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]