This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Handling of structure dereferencing


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]