This is the mail archive of the gdb@sourceware.cygnus.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]

Re: Hardware watchpoints



> > One question that I still can't figure out is why does GDB at all
> > _need_ to have the parent struct on the value chain?  Where is that
> > information used?
> 
> GDB doesn't *need* it, per se.

Sorry --- there's a better answer to that question.

In evaluating the expression x.y, the value chain will contain a value
for the entire structure x, and a value for the member, x.y.  The
former value is needed by the '.' operator; the operator extracts the
'y' member from it.

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