aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhugsy2020-06-06 17:20:15 -0700
committerhugsy2020-06-06 17:20:15 -0700
commit11bfee3fb8f97a3fdb686114be4ff653853b26d4 (patch)
tree50eebc644003db5d873887db977ec3e736c96a31
parent448f1e16608b583997dbbd405ffa330f6acc47d2 (diff)
downloadgef-11bfee3fb8f97a3fdb686114be4ff653853b26d4.tar.gz
gef-11bfee3fb8f97a3fdb686114be4ff653853b26d4.zip
[pcustom] added recursive structure support
-rw-r--r--gef.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gef.py b/gef.py
index bf7be7f..82f3478 100644
--- a/gef.py
+++ b/gef.py
@@ -4722,6 +4722,9 @@ class PCustomCommand(GenericCommand):
if issubclass(_type, ctypes.Structure):
self.apply_structure_to_address(mod_name, _type.__name__, addr + _offset, depth + 1)
+ elif _type.__name__.startswith("LP_"): # hack
+ __sub_type_name = _type.__name__.replace("LP_", "")
+ self.apply_structure_to_address(mod_name, __sub_type_name, addr + _offset, depth + 1)
return