Hex-Rays' blog

Easy structure types – Hex Rays

Written by   Ilfak Guilfanov | Feb 17, 2008

I’m happy to tell you that a new build of the decompiler is ready! It introduces new easily
accessible commands to manipulate structure pointers. First, a variable can be converted into a
structure pointer with one click. Also, new the structure types can be build on the fly by the decompiler.
As usual, any type or name can be modified any time. All this makes using the decompiler really agreeable.

Another nice improvement is how the decompiler handles zero offset fields in structure types. Below are two screenshots.

Before:

After:

Please note that all casts has gone. They have been replaced by direct references to the first field
of the structure type. Needless to say, the second text is much clearer than the first one.

As usual, all discovered and reported bugs have been fixed. If you have an old version, please update (especially before sending us bug reports).

Thank you!