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] |
On Sat, Apr 05, 2008 at 08:12:43PM +0300, Eli Zaretskii wrote:Does anyone object to improving the error message to mention "set variable"?
I don't think it will help; it's just luck you got an ambiguity since there are two commands starting with s. You could get any number of other errors, or even silent success. Like:
(gdb) set ser.a = 1 Undefined set serial command: ".a = 1". Try "help set serial". (gdb) set args.a = 1 (gdb) show args Argument list to give program being debugged when it is started is ".a = 1".
(gdb) set ser.a = 1 => set serial .a = 1 Undefined set serial command: ".a = 1". Try "help set serial". (gdb) set args.a = 1 => set args .a = 1 (gdb) show args Argument list to give program being debugged when it is started is ".a = 1".
(gdb) set index = 1 => set variable index = 1
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |