This is the mail archive of the gdb@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: Strangeness in set command


> From: Andreas Schwab <schwab@suse.de>
> Cc: gdb@sources.redhat.com
> Date: Sat, 05 Apr 2008 18:45:04 +0200
> 
> >   (gdb) set s.st_mode=0x1ff
> >   Ambiguous set command "s.st_mode=0x1ff"
> >
> > But this succeeds:
> >
> >   (gdb) set (&s)->st_mode=0x1ff
> >
> > How come we are smart enough to support the latter, but not the
> > former?
> 
> Because there are several set commands beginning with s.  Use set
> variable to avoid the ambiguity.

Thanks.

Does anyone object to improving the error message to mention "set
variable"?


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