0

Can anyone please explain how can i parse array of structure for getting fields of structure.

Using script mentioned in this gdb python : Can anyone explain me how to use this script written in this post?

Trying to parse below structure:

typedef struct Q 
{
    int a;
    int b;
}Q;

typedef struct T 
{
    int x,
    int y;
    Q q;
}T;

struct S 
{
    T t[10];
    char b;
};
  • You probably want to replace "int x," by "int x;" in struct T definition. – darcamo Oct 15 '19 at 19:44
  • Can you clarify what you mean by "fields of structure"? Do you want a the value of a specific field for each of the `T` structures in `t[10]` contained in `S`? – darcamo Oct 15 '19 at 19:47

0 Answers0