In gdb is there any way to get base data types of a structure ?
suppose for following structure
typedef struct _trial
{
int i;
double j;
}trial_t;
in gdb
(gdb) whatis trial_t
type = struct _trial
(gdb) whatis _trial
No symbol "_trial" in current context.
(gdb)
any workarounds ?
I know this works for simple typedefs
typedef unsigned char BYTE;
BYTE var;
(gdb)whatis var
type = BYTE
(gdb)whatis BYTE
BYTE = unsigned char
You probably want
ptypeOr even: