This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Handling of structure dereferencing
- From: Tom Tromey <tromey at redhat dot com>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: gdb at sources dot redhat dot com
- Date: 06 Dec 2001 16:45:56 -0700
- Subject: Re: Handling of structure dereferencing
- References: <20011206120739.A1490@nevyn.them.org>
- Reply-to: tromey at redhat dot com
>>>>> "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