Skip to content

Commit

Permalink
base/database: added missing support for decoding pointer types (PR #157
Browse files Browse the repository at this point in the history
) to the `get.structure` function.
  • Loading branch information
arizvisa committed Jul 28, 2022
1 parent 02ee5f9 commit 8411220
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions base/database.py
Expand Up @@ -8060,6 +8060,12 @@ def structure(cls, ea, identifier):
(int, -4) : ctypes.c_int32, (int, 4) : ctypes.c_uint32,
(int, -8) : ctypes.c_int64, (int, 8) : ctypes.c_uint64,
(float, 4) : ctypes.c_float, (float, 8) : ctypes.c_double,

# pointer types, would be cool if we could have variable-sized pointers..but we don't.
(builtins.type, -1) : ctypes.c_int8, (builtins.type, 1) : ctypes.c_uint8,
(builtins.type, -2) : ctypes.c_int16, (builtins.type, 2) : ctypes.c_uint16,
(builtins.type, -4) : ctypes.c_int32, (builtins.type, 4) : ctypes.c_uint32,
(builtins.type, -8) : ctypes.c_int64, (builtins.type, 8) : ctypes.c_uint64,
}

res = {}
Expand Down

0 comments on commit 8411220

Please sign in to comment.