This is the mail archive of the gdb-patches@sourceware.org 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: [PATCHv4] gdb: Add default frame methods to gdbarch


>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:

Simon> Ok, that's interesting.  My hypothesis is that when GDB needs to watch
Simon> an expression (a + b + c), it probably looks at the all_values chain
Simon> to know all the intermediary values (that represent a memory location
Simon> or a register) that were read from the target to evaluate that
Simon> expression.  It then puts some hardware or software watches on these
Simon> memory locations or registers.  So if the values chain contains a
Simon> value representing something we don't really watch to watch (such as
Simon> fp or sp, according to the comment), GDB would watch it, even though
Simon> it doesn't really affect the result of the expression.  That's just my
Simon> guess.

Yes, that's correct.

Simon> I am fine with that (unless someone who really knows this comes up
Simon> with a better explanation).  Since it just causes the value we don't
Simon> need anymore to be deleted immediatly, it should be harmless.

I agree.

Tom


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