|
Suppose the source text looked like this: |
#include |
|
we have a disassembly like this: |
|
|
|
![]() |
|
We create the union members using the regular data definition commands. (press D repeatedly to define a field, N to rename it) we obtain : urecord_t union ;
(sizeof=0x4) chr ----------------------------------- record_t struc ;
(sizeof=0x8) Switching to the disassembly window (or closing the enumeration window with Alt-F3), we apply the defined structure through the Edit|Operand types|Struct offset menu item and select the proper representation for the operand. In the union type case, it may be necessary to select the desired union member with the Edit|Structs|Select union member command. The final disassembly looks like this:
|
![]() |
|
That's all folks !
|