Suppose I am debugging a crash in optimized code. I look at the disassembly, and I see the following:
lea eax,[edi+8Ch]
Now let's say I know what structure is stored in edi, in which case it is a slightly larger structure. Large enough so that I could not immediately understand in which field the offset 8Ch corresponds.
What I am doing is simply opening my viewport in Visual Studio and manually doing the pointer arithmetic on the hidden NULL pointer (so that the offset macro would do it) until I get the one that matches, but this is tedious. Is there any way I can quickly determine which field is being accessed?
source share