This is the mail archive of the
mailing list for the GDB project.
Re: PATCH: gdbserver: Clear regcache if buf is NULL
On Saturday 16 October 2010 23:02:27, H.J. Lu wrote:
> > Does that sound good? Or do you think keep using 0 would
> > be better in this case?
> Values in vector registers are invalid, not unavailable. OS
> initializes them to zero when they are set the firs time in
> a program. I prefer *value not valid".
Ah, yes, agreed. Okay, that's a different state from the
"unavailable" in traceframe's (which really means the register
exists, and its value also exists, but hasn't been collected
by the tracepoint actions, so we don't know what it was).
I'll adjust my patches to keep using 0 for now in cases like
the vector case we're discussing then. Thanks!
> GDB may update vector registers before they are set by program.
> GDB sets proper bits in XSAVE area to tell OS/hardware that vector
> registers now have valid values.