struct S
{
int _i;
long _l;
};
struct S s[] = {{4, 5}, {94, 34}, {83, 95}};
int main()
{
return s[0]._i + s[2]._l;
}
When trying to print only the _i member:
(gdb) dl s[..3]._i
Expected '#' or '.' or '->' or '-->' or '@' or '[' or '[[' or '(' or '/' or '*' or '%' or '-' or '+' or '<<' or '>>' or '..' or '<=?' or '>=?' or '<?' or '>?' o
r '<=' or '>=' or '<' or '>' or '==?' or '!=?' or '==' or '!=' or '&' or '^' or '|' or '&&' or '||' or '?' or ',' or '=>' or ';' or EOF at position (1, 9) => 's
[..3]._*i'.
In this example:
When trying to print only the
_i
member:With this possible fix ...:
... it looks better: