Re: [RFC] Don't allow setting register in non-innermost frame

Yao Qi
2012-09-09T02:31:29Z

On 09/08/2012 12:45 AM, Jan Kratochvil wrote:
> (gdb) set variable i=20
> warning: Assigning to register in non-innermost frame.
>
> Why?
>

That is a surprise to me.

> I would find correct to print such warning for:
> (gdb) set $rbx=20
> There it should happen only if user has explicitly specified the register
> itself.

That is my original motivation of this patch. I'll go back to see how
to differentiate register and variables in evaluation.

--
Yao