I've made a very trivial C program which throws a struct on the heap and then diassembled it. Surprisingly, IDA Pro actually identified the struct as soon as I added it by name using the Structures tab. However, when I try to label the struct in the disassembly code, it only gives me the option of parsing the first member, even for subsequent members. In this example, the first structure member is called
name and the second,
hair_color. But as you see in screenshot 2, I've already labeled the first member of the struct, but when I try to use the
T hotkey to label the
hair_color, it only gives me the option to keep labeling everything as PERSON.name. Why is this and how can I properly label these members?
To be more specific: I would expect to label the first member as "name" and have IDA automatically label the remaining members properly due to their offsets in relation to "name"/the beginning of the PERSON struct.