File tree 3 files changed +8
-12
lines changed
3 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -33,15 +33,17 @@ def get(self):
33
33
# don't have debug info for this type, so we have to poke blindly at
34
34
# memory.
35
35
#
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).
41
41
#
42
42
# TODO: it is not clear reading the spec how the first digit is mapped
43
43
# 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
+ )
45
47
data_ptr = self ._bignum_address .cast (uint32_t .pointer ())
46
48
47
49
info = data_ptr .dereference ()
Original file line number Diff line number Diff line change 1
1
driver : 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 1
1
driver : 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