Strangeness in set command

Daniel Jacobowitz drow@false.org
Mon Apr 7 08:47:00 GMT 2008


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".


-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb mailing list