6

I manage my structures in C files, the header might look like this:

#pragma pack(0)

typedef struct
{
    short important_value;
    char  _A[2]; // unknown
    int   interesting_value;
} STRUCT;

I loaded this into IDA via Ctrl+F9. Now I find out more about the structure, seeing that _A contains short imaginary_value.

When I try to reload this in IDA via Ctrl+F9, nothing happens. When I delete the structure in IDA, parse the C file and re-create the structure, I see the new structure, however all instances of STRUCT in the database are deleted.

So the question is, how do I reload the structure without removing all instances from the database.

heinrich5991
  • 627
  • 11
  • 21

1 Answers1

6

Go to the Local Types (View->Open Subviews->Local Types or Shift + F1) window and then edit it from there by right clicking and clicking on edit on your structure's entry on the list.

shebaw
  • 685
  • 6
  • 13