Re: Handling of structure dereferencing

Tom Tromey
2001-12-06T23:41:48Z

>>>>> "Daniel" == Daniel Jacobowitz <drow@mvista.com> writes:

Daniel> Right now, and historically, gdb has accepted things like:
Daniel> struct foo {char a} *b, **c, ***d;

Daniel> (gdb) print b.a

Daniel> So, straw poll: how would people feel about:
Daniel> - not letting this happen; only explicit dereferencing

I use `p PTR.field' instead of `p PTR->field' all the time in gdb.
I'd prefer to keep it if possible.
However, I do notice that I only use this in the `b' case.
I don't recall ever using it when there is more than one level of
indirection involved.

Tom