Handling of structure dereferencing

Tom Tromey tromey@redhat.com
Thu Dec 6 15:41:00 GMT 2001


>>>>> "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



More information about the Gdb mailing list