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: [RFC] Don't allow setting register in non-innermost frame


> Date: Fri, 7 Sep 2012 21:12:54 +0800
> From: Yao Qi <yao@codesourcery.com>
> CC: <dje@google.com>, <tromey@redhat.com>, <gdb-patches@sourceware.org>
> 
> On 09/07/2012 07:27 PM, Eli Zaretskii wrote:
> >> >How about them below?
> >> >
> >> >* GDB will display a warning when assigning to registers, for example
> >> >    "set $eax=0x1", in non-innermost frames.
> >> >
> >> >or
> >> >
> >> >* GDB will display a warning when assigning to registers by command
> >> >    "set" in non-innermost frames.
> > If "set" is the only command, then the second variant is better.  But
> > isn't the same true of the MI equivalent?
> 
> It is true to the MI command "-var-assign".  How about this?
> 
> * GDB will display a warning when assigning to registers by CLI command
>    "set" or MI command "-var-assign" in non-innermost frames.

Fine, thanks.


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