Spotted an interesting problem when trying to determine which type of structure (since
True) is defined at the given address in the DB. Reading through
idc.py didn't help much.
- Define a
structin the "structures" window.
- It gets assigned a
structID, so, it can be accessed from IDC/Python scripts.
- Now, define a
structvariable somewhere in e.g. the
A solid example:
# Some Python code strid = idaapi.get_struc_id('_s__RTTIClassHierarchyDescriptor') size = idaapi.get_struc_size(strid) idaapi.doStruct(ea, size, strid)
How, knowing the
ea, do I get the
strid value ?