File tree Expand file tree Collapse file tree 3 files changed +8
-12
lines changed
Expand file tree Collapse file tree 3 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -33,15 +33,17 @@ def get(self):
3333 # don't have debug info for this type, so we have to poke blindly at
3434 # memory.
3535 #
36- # We consider that big number data is layed out as an array of uint32_t
37- # values. The first one gives the number N of 32-bit digits that make
38- # up this number (24 least significant bits) and whether that number is
39- # negative (25th bit). Then the next N uint32_t values are the 32-bit
40- # digits for the big number (most significant digits first).
36+ # We consider that big number data is layed out as an array of unsigned
37+ # 32-bit values. The first one gives the number N of 32-bit digits
38+ # that make up this number (24 least significant bits) and whether that
39+ # number is negative (25th bit). Then the next N unsigned values are
40+ # the 32-bit digits for the big number (most significant digits first).
4141 #
4242 # TODO: it is not clear reading the spec how the first digit is mapped
4343 # on big-endian systems.
44- uint32_t = gdb .lookup_type ('uint32_t' )
44+ uint32_t = gdb .selected_frame ().architecture ().integer_type (
45+ 32 , signed = False
46+ )
4547 data_ptr = self ._bignum_address .cast (uint32_t .pointer ())
4648
4749 info = data_ptr .dereference ()
Original file line number Diff line number Diff line change 11driver : python
2- control :
3- # TODO: remove this limitation once UA22-033 is implemented
4- - [XFAIL, "env.target.os.name == 'windows'", "uint32_t not available on Windows"]
Original file line number Diff line number Diff line change 11driver : python
2- control :
3- # TODO: remove this limitation once UA22-033 is implemented
4- - [XFAIL, "env.target.os.name == 'windows'", "uint32_t not available on Windows"]
You can’t perform that action at this time.
0 commit comments