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: [PATCH] init-if-undefined command


Andrew Stubbs wrote:
The attached patch adds a new CLI command named 'init-if-undefined'.

This is essentially the same a 'set variable' (for convenience variables only), but does not set the variable if it already has a value.

It is useful in scripts whose values can be overridden, or as an approximation of a statically initialised variable.

Here's another one that ought to be easy to approve/reject.


The docs have been approved and we have decided that this should be mentioned in the NEWS if/when it goes in, but nobody has said anything about the code.

I don't think this one should be too much trouble because it does not change existing behaviour or do much out of keeping with other commands.

Is it OK?

Thanks

Andrew Stubbs


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