0

In a user-defined commands of GDB, is it possible to define a struct? If not, any workaround?

e.g.

define myFunc
   # something like this
   typedef struct {
     int32_t f1;
     int32_t f2;
     ...
   } MyObj;
end

If use "typedef struct" in GDB, it would give below prompt:

Undefined command: "typedef". Try "help".
Employed Russian
  • 199,314
  • 34
  • 295
  • 362
Cary Xu
  • 11
  • 2

0 Answers0