This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Emit a warning for ineffective set VAR = EXP command
> Ok with one more change.
>
> -gdb_test "set language ada" ".*" "set language ada"
> +gdb_test_no_output "set language ada"
There is going to be some output, because this command is forcing
a language which does not match the frame.
> [I'm assuming the warning test has the desired affect. I don't know ada. :-)]
Correct, it's a `='/`==' vs `:='/'=' confusion. In Ada, the comparison
operator is "=". The user should have used the assignment operator which
is ":=". The number of times I got bitten by this....
--
Joel